Astro电商启动器

kujera-furniture-starter — Astro 电商模板

作者 faruqso

基于 Astro 的家具电商前台启动模板,使用设计令牌与 Decap CMS 管理内容,包含商品列表、详情页和基于 localStorage 的演示购物车。

看看你的网站会是什么样

浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。

3 个预览视图
桌面端首页1 / 3
桌面端截图首屏预览

由服务器浏览器实际访问页面后截取。

全部页面与视图 3

截图用于了解视觉与布局,交互效果请以实际项目为准。

采集于 2026-10-02查看来源

值得关注的模板亮点

从已有项目资料中,快速了解它的特点。

01

Astro 静态生成,公开页面为预渲染 HTML,购物车等交互以 Preact 岛屿实现

02

CSS 设计令牌集中在 tokens.css,可整体替换颜色、字体、间距与阴影

03

Decap CMS 以 Git 为基础管理页面、商品与集合内容,后台入口为 /admin

04

提供商品列表、商品详情与基于 localStorage 的演示购物车

05

页面区块可组合,包含 Hero、Best Selling、Testimonials、About gallery 等

06

品牌名称、导航、页脚、SEO 与货币集中在 settings.json 配置

模板详细介绍

这是一个面向家具类电商的开源前台启动模板,使用 Astro 构建静态页面,并通过 Decap CMS 以 Git 为基础管理内容。仓库中提供商品集合、商品列表页(PLP)、商品详情页(PDP)以及一个使用 localStorage 保存状态的演示购物车,购物车抽屉以 Preact 岛屿形式实现,其余页面为预渲染的静态 HTML。

设计系统由 src/styles/tokens.css 中的 CSS 设计令牌驱动,颜色、字体、间距和阴影集中在此文件;品牌名称、导航、页脚、SEO 与货币等站点级配置位于 src/content/site/settings.json。页面区块以可组合组件形式提供,包括 Hero、Why Choosing Us、Best Selling、Testimonials 和 About gallery 等。

内容按类型分目录存放:页面为 Markdown,商品与集合为 JSON,站点设置为 JSON。CMS 后台位于 /admin,仓库中附带 Decap 集合 schema 与本地后端脚本,需按 docs/decap-setup.md 连接自己的 fork 后才能保存内容。模板未内置真实支付、库存或订单系统,购物车仅用于演示。

Astro电商启动器

适合你的项目吗?

适用场景

  • 搭建家具或家居类电商前台的静态展示站点
  • 以设计令牌为基础快速替换品牌视觉与排版
  • 用 Decap CMS 让非技术编辑维护商品与页面内容
  • 作为 Astro 静态站点与 Preact 岛屿混合架构的参考项目

适合人群

  • 需要家具电商前台起点并愿意自行接入支付与后端的开发者
  • 希望用 Git 型 CMS 管理商品与页面内容的团队
  • 想通过设计令牌统一控制站点视觉风格的前端项目
  • 以 Astro 为主要技术栈、接受静态生成模式的开发者

上手与定制指南

结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。

  1. 1

    克隆仓库后执行 npm install 与 npm run dev,开发服务器默认运行在 4321 端口

  2. 2

    品牌与站点信息在 src/styles/tokens.css 和 src/content/site/settings.json 中修改

  3. 3

    /admin 后台需按 docs/decap-setup.md 连接自己的 fork,本地保存内容需运行 npm run cms

  4. 4

    部署到 Vercel 时设置 SITE_URL 为生产域名,用于 canonical 与 OG 标签

  5. 5

    演示图片、字体、图标等第三方素材需按各自许可单独核对

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。

使用时需要遵守

  • 允许免费使用、修改、商用和分发该版本代码。
  • 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
  • 代码按现状提供;担保与责任限制以原许可证及适用法律为准。

额外费用与待核对事项

  • CMS 后台 /admin 默认无法保存内容,需先按 docs/decap-setup.md 连接自己的 fork 并完成配置;本地保存内容还需运行 npm run cms 启动 Decap 本地后端。
  • 在本地使用 CMS 保存内容时,必须额外运行 npm run cms 命令启动 Decap 本地后端,否则 /admin 只能浏览而无法保存。
  • 部署到 Vercel 等平台时需自行设置环境变量 SITE_URL 为生产域名,否则 canonical 与 OG 标签不会指向正确地址。
  • 购物车仅为基于 localStorage 的演示实现,不含真实支付、库存或订单系统,不能直接用于实际交易。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

fork + setup to enable saves (see [Decap setup](docs/decap-setup.md))

README 原文

run `npm run cms` locally for saves

README 原文

Set `SITE_URL` to your production domain for canonical and OG tags.

README 原文

a demo cart with localStorage

README 原文
https://github.com/faruqso/kujera-furniture-starter/blob/main/LICENSEhttps://github.com/faruqso/kujera-furniture-starter/blob/main/README.md

DeepSeek 根据仓库许可证和 README 整理 ·2026-10-02。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。

项目核对记录与介绍依据

模板资料

来源平台
GitHub
资料与维护参考分
资料较完整 · 85 / 100
技术栈
Astro
网站类型
电商 · 启动器
这个分数如何计算

本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。

这个项目需要核对什么

记录的仓库更新时间
2026-06-30
截图检查日期
2026-10-02

已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。

目录记录的主要技术栈是 Astro。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。

查看具体选型方法 →

介绍的制作与核对状态

介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。

已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。

查看当时使用的来源资料

SHA-256: 6fb32faee6de66b9b54c1a5f72ff10cce55357cf857855542280ed3a7e1cc91b

2026-10-02T19:48:49.252Z

来源文件 / 仓库
# Kujera Furniture Starter

An open-source furniture ecommerce starter built with **Astro**, **Decap CMS**, and a **token-driven design system**. Fork it, rebrand it, and launch your own storefront in minutes.

**Live demo:** [kujera-furniture-starter.vercel.app](https://kujera-furniture-starter.vercel.app)

## Features

- **CMS-driven pages** — browse the admin demo at `/admin`; fork + setup to enable saves (see [Decap setup](docs/decap-setup.md))
- **Product catalog** — collections, PLP, PDP, and a demo cart with localStorage
- **Design system** — rebrand the entire site by editing `src/styles/tokens.css`
- **Composable sections** — Hero, Why Choosing Us, Best Selling, Testimonials, About gallery, and more
- **Fully static** — fast pre-rendered HTML; Preact only for cart and small islands

## Quick start

```bash
git clone https://github.com/faruqso/kujera-furniture-starter.git
cd kujera-furniture-starter
npm install
npm run dev
```

- **Site:** [http://localhost:4321](http://localhost:4321)
- **Design system:** [http://localhost:4321/design-system](http://localhost:4321/design-system)
- **CMS admin:** [http://localhost:4321/admin](http://localhost:4321/admin) — see [Decap setup](docs/decap-setup.md) to connect your fork; run `npm run cms` locally for saves

## Rebrand in 2 files

| File | What it controls |
|------|------------------|
| `src/styles/tokens.css` | Colors, typography, spacing, shadows |
| `src/content/site/settings.json` | Brand name, nav, footer, SEO, currency |

See [docs/customization.md](docs/customization.md) for the full guide.

## Content

| Type | Location |
|------|----------|
| Site settings | `src/content/site/settings.json` |
| Pages | `src/content/pages/{slug}.md` |
| Products | `src/content/products/{slug}.json` |
| Collections | `src/content/collections/{slug}.json` |

## Scripts

| Command | Description |
|---------|-------------|
| `npm run dev` | Start dev server |
| `npm run build` | Build static site to `dist/` |
| `npm run preview` | Preview production build |
| `npm run cms` | Decap local backend for `/admin` saves |

## Tech stack

- [Astro 7](https://astro.build) — static site generator
- [Decap CMS](https://decapcms.org) — git-based CMS
- [Preact](https://preactjs.com) — cart drawer island
- CSS design tokens — no UI framework on the public site

## Project structure

```
src/
├── components/
│   ├── sections/       # Composable page blocks
│   ├── commerce/       # Shop, product detail, cart
│   └── ui/             # Button, Badge, PillTabs, …
├── content/            # Pages, products, site settings
├── cms/                # Decap collection schemas (config at /admin/config.yml)
├── styles/tokens.css   # Design tokens (rebrand here)
└── pages/              # Routes + catch-all shop router
docs/
├── customization.md
└── decap-setup.md
```

## Deploy

Import the repo on [Vercel](https://vercel.com/new). Astro is auto-detected. Set `SITE_URL` to your production domain for canonical and OG tags.

## License

MIT — see [LICENSE](LICENSE). Use freely for personal and commercial projects.

## Security

See [SECURITY.md](SECURITY.md) to report vulnerabilities privately.

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md). Use the [issue templates](https://github.com/faruqso/kujera-furniture-starter/issues/new/choose) for bugs and feature requests.
反馈内容错误

看看同类模板

对比同技术栈与用途的模板,找到更适合的视觉与内容结构。