Astro static build; pages output as pure HTML at build time and can be deployed to any static host
astro-njx-boutique — Astro Ecommerce Template
By njbSaab
An editorial-style fashion ecommerce theme built on Astro, with built-in mock product data, switchable to the Shopify Storefront API via environment variables, and static build output.
Explore the design
Compare the page layouts and mobile experience. Open any screenshot for a closer look.
Actual screenshot captured by the server browser.
All pages & views 3
Screenshots show visual appearance; interactive behavior may differ.
What stands out
A quick read of the recorded project description.
Built-in JSON mock product catalog; the full storefront flow runs without external accounts
Switch between mock and Shopify Storefront API data sources via environment variables
Shopping bag persists via localStorage, supports quick add, quantity adjustment, and clear all, with checkout hosted by Shopify
Inline index search opens with the / key and makes no network requests; favorites have a count badge and a dedicated page
Site copy is centralized in two constant files, components.ts and pages.ts, for easy wholesale replacement
Template Details
astro-njx-boutique is a static storefront theme for small fashion brands, studios, and boutiques, built with Astro. Pages are rendered as pure HTML at build time. The project includes a JSON mock product catalog, so it runs locally without any external account. By setting the COMMERCE_PROVIDER environment variable, the same set of pages can switch to reading real products from the Shopify Storefront API, with checkout hosted by Shopify.
Feature-wise, the theme includes a full-width homepage, collection displays, a product catalog with client-side tag filtering and sorting, product detail pages with size and gallery lightbox, related recommendations, and a persistent shopping bag based on localStorage (supporting quick add, quantity adjustment, single-line removal, and clear all). Search uses an inline index, opens with the / key, and makes no network requests; favorites have a count badge and a dedicated page; light/dark theme switching has no flash on refresh. Site copy is centralized in two constant files for easy wholesale replacement of brand text.
Usage limitations: this entry is the free version under the MIT license from the public repository, and does not include the paid Pro upgrade mentioned in the materials (such as customer accounts, reviews, etc.). Third-party assets like demo images, fonts, and icons must be checked separately under their respective licenses; the code's MIT license alone is not sufficient to determine their status. Domains, hosting, Shopify, and other external services may incur separate charges. The theme's provider interface is located in src/lib/commerce/; the materials state that WooCommerce, Medusa, or a custom API can be integrated by implementing a TypeScript interface, but no ready-made implementations are provided.
Is it right for your project?
Use Cases
- Build a static product display and checkout storefront for a small fashion brand or boutique
- Quickly preview page structure and interactions with the mock catalog, then connect to real Shopify products
- An ecommerce frontend that needs editorial-style typography, full-width imagery, and light/dark theme switching
- Deploy the build output to Cloudflare Pages or other static hosting platforms
Suitable For
- Small fashion brands, studios, and boutiques
- Developers who want to run a storefront as a static site and avoid managing their own servers
- Merchants already using Shopify who want a custom editorial-style frontend
- Astro projects that need wholesale replacement of copy and design tokens
Getting started & customization
Use these recorded setup notes alongside the repository instructions for your chosen version.
- 1
After cloning the repository, run npm install, copy .env.example to .env, use the built-in mock catalog by default, and start local development with npm run dev
- 2
To connect to Shopify, create an app in the admin and grant Storefront API read permissions, set COMMERCE_PROVIDER to shopify, and fill in PUBLIC_SHOPIFY_DOMAIN and PUBLIC_SHOPIFY_STOREFRONT_TOKEN
- 3
Product data can be edited in src/data/mock-catalog.json, and images under public/products/ can be replaced
- 4
Brand copy is modified in src/constants/components.ts and src/constants/pages.ts; design tokens are adjusted in the @theme block of src/styles/global.css
- 5
When deploying to static hosting, configure the same environment variables in the platform dashboard; for Cloudflare Pages, use wrangler pages deploy to upload the dist directory
License & source material
Usage conditions & limitations
Free to use · keep license noticeThis entry is the free version under the MIT license from the public repository; the free scope covers that version's code and does not imply that external services or third-party assets are free.
Must comply with when using
- Free use, modification, commercial use, and distribution of this version's code are permitted.
- When distributing copies or substantial portions of the code, retain the original author's copyright notice and the full MIT license notice.
- The code is provided as is; warranties and limitations of liability are governed by the original license and applicable law.
Additional costs & items to verify
- The project materials mention an optional paid version or features; this entry only includes the public free code and does not include paid upgrades.
- Demo images, fonts, icons, and other third-party assets must be checked under their respective licenses; the code's MIT license alone is not sufficient to determine asset licensing.
- Domains, hosting, databases, payment, AI, and other external services may incur separate charges.
- The paid Pro version (including customer accounts, reviews, and more sections) is still in development and is not part of this free entry; the free version does not include these features.
- Connecting real products and checkout requires Shopify: you need to create an app in the Shopify admin, grant Storefront API permissions, and configure the domain and access token; Shopify services may incur separate charges.
- Demo images are from Unsplash and must be checked separately under Unsplash's own license; the code's MIT license alone is not sufficient to determine asset authorization.
View Original Text Basis
Permission is hereby granted, free of charge
Original License Text
An extended **Pro** version (customer accounts, reviews, more sections) is on the way — watch the repo to get notified.
Original README
then flip one environment variable and the same pages build from your **real Shopify store**, with Shopify's hosted checkout handling payments.
Original README
https://github.com/njbSaab/astro-njx-boutique/blob/main/LICENSEhttps://github.com/njbSaab/astro-njx-boutique/blob/main/README.mdPhotos: [Unsplash](https://unsplash.com).
Original README
Compiled by DeepSeek based on repository license and README ·2026-10-13. Results only cover the materials read; dependencies, images, fonts, and subsequent term changes are subject to their respective original texts.
Project checks & description sources
Template Information
- Source platforms
- GitHub
- Documentation and maintenance reference score
- More documented · 85 / 100
- Technologies
- Astro
- Website type
- E-commerce · Blog
How this score is calculated
Our heuristic uses license records (up to 30), a demo link (12), a preview (10), stars (15), recorded maintenance (15), description completeness (8), feature records (5) and classification data (5). It is not a code, security or performance test, or a Google score. A link does not establish tested functionality.
What to verify for this project
- Repository update recorded
- 2026-09-26
- Screenshot last checked
- 2026-10-13
A demo link is listed. Check it with your own content and viewport sizes; its presence does not confirm that forms, authentication or payments work.
The catalog identifies Astro as the primary stack. Check the actual dependency manifest and lockfile for versions and hosting requirements. These notes use recorded metadata, not a code audit or a deployment test.
Use a selection guide →How this description was prepared
AI-assisted description based on catalog records and repository material. Repository authors are not automatically the reviewers of this description.
Review declaration: [email protected] · 2026-10-13
Inspect the recorded source material
SHA-256: 90a4751b97e2dc05f7bb98a56d74b625ee579ce0a784e2d5c04c36e431f9bbcd
2026-10-13T00:30:21.690Z
Source file / repository# astro-njx-boutique — editorial fashion theme for Astro [](https://vercel.com/new/clone?repository-url=https://github.com/njbSaab/astro-njx-boutique) [](https://app.netlify.com/start/deploy?repository=https://github.com/njbSaab/astro-njx-boutique) > Part of **[njX Astro Themes](https://njxui.dev/themes)** — ecommerce storefronts & landing pages by one author, free today, Pro versions on the way. A complete boutique storefront built with **Astro 5 + Tailwind CSS v4**: serif editorial typography, full-bleed imagery, oxblood accents — wired for **Shopify** out of the box and deployable to **Cloudflare Pages** (or any static host) in minutes. **Live demo → [astro-njx-boutique.pages.dev](https://astro-njx-boutique.pages.dev)** Everything in the demo — bag, checkout, search, favorites, dark mode — is this theme running on mock data.  ## What is this? astro-njx-boutique is a **static storefront**: Astro renders every page to plain HTML at build time, so the site is fast by default and hosting is essentially free. Product data comes from a pluggable provider — start with the bundled JSON catalog, then flip one environment variable and the same pages build from your **real Shopify store**, with Shopify's hosted checkout handling payments. Made for small fashion brands, ateliers and boutiques that want an editorial custom storefront without running a server. ## Features - 👗 **Full boutique flow** — full-bleed hero, collection shelf, catalog with client-side tag filters (with piece counts) & sorting, product pages with sizes, sticky 3:4 gallery + lightbox, related pieces - 🛍 **Working bag** — persistent (localStorage), quick-add from cards, quantity controls, line remove, clear all; hands off to Shopify's hosted checkout - 🔌 **Two data providers, one switch** — `COMMERCE_PROVIDER=mock` (bundled JSON, no accounts needed) or `shopify` (live products over the Storefront API) - 🔎 **Instant search** — inline index, opens with `/`, zero network requests - ❤️ **Favorites** — heart any piece, badge counter, dedicated `/favorites` page - 🌗 **Light & dark theme** — one click, no flash on reload - 🤝 **Trust details on every product** — shipping, returns and repairs lines, all from config - 📝 **All copy in two constants files** — rebrand every text on the site without touching markup - 📄 **20 pages total** — about, contacts, FAQ, account UI, privacy, terms, honest 404 - ⚡️ **Zero client framework** — a few small vanilla scripts; no React/Vue/hydration cost | Catalog | Dark | | --- | --- | |  |  | ## Quick start ```bash git clone https://github.com/njbSaab/astro-njx-boutique.git my-boutique cd my-boutique npm install cp .env.example .env # defaults to the mock catalog npm run dev # http://localhost:4321 ``` That's it — the boutique runs on the bundled demo catalog (`src/data/mock-catalog.json`). Edit that file to see your own pieces immediately. ## Connect your Shopify store 1. In Shopify admin: **Settings → Apps and sales channels → Develop apps → Create an app.** 2. Give it the *Storefront API* scopes (unauthenticated read products/collections/checkouts). 3. Install the app and copy the **Storefront API access token** (this token is public-safe). 4. Update `.env`: ```bash COMMERCE_PROVIDER=shopify PUBLIC_SHOPIFY_DOMAIN=your-store.myshopify.com PUBLIC_SHOPIFY_STOREFRONT_TOKEN=xxxxxxxxxxxxxxxx ``` 5. `npm run build` — the same pages now build from your live catalog, and the bag creates a real Shopify cart and redirects to your hosted checkout. The provider interface lives in `src/lib/commerce/` — adding WooCommerce, Medusa or your own API means implementing one small TypeScript interface. ## Deploy Any static host works. For Cloudflare Pages: ```bash npm run build npx wrangler pages deploy dist --project-name my-boutique ``` Set the same env vars in your host's dashboard for CI builds. The whole boutique fits comfortably in Cloudflare's free tier. ## Make it yours - **All copy in two files** — every piece of text lives in `src/constants/components.ts` (header, footer, drawers, bag, search) and `src/constants/pages.ts` (home, about, FAQ, product page, …). Rebrand the whole boutique without touching a single component. - **Brand & colors** — design tokens in `src/styles/global.css` (`@theme` block, dark overrides in `.dark`; radius tokens are flattened for the editorial look — restore them for a softer feel). Fonts load in `src/layouts/Layout.astro`. - **Catalog** — `src/data/mock-catalog.json` + photos in `public/products/`, or connect Shopify. - **Layout & sections** — plain `.astro` files: header/footer/drawers in `src/layouts/Layout.astro`, one file per page in `src/pages/`. ## Project structure ``` src/ ├── constants/ │ ├── components.ts # all copy for the shell: header, footer, bag, search… │ └── pages.ts # all copy per page: home, about, FAQ, legal… ├── data/mock-catalog.json # demo pieces & collections ├── layouts/Layout.astro # header, footer, bag/nav drawers, search ├── components/ProductCard.astro ├── lib/ │ ├── commerce/ # provider interface + mock & shopify implementations │ ├── cart.ts # persistent bag (nanostores) │ └── favorites.ts # persistent favorites └── pages/ # index, collections/, products/, about, faq, … ``` ## Sibling theme & Pro Prefer a general-goods look? **[astro-njx-store](https://github.com/njbSaab/astro-njx-store)** is the same engine with a warm paper-and-pine design. An extended **Pro** version (customer accounts, reviews, more sections) is on the way — watch the repo to get notified. ## Credits Made by [njX](https://njxui.dev) — also the author of [njx-ui](https://njxui.dev), a classless-friendly CSS library for landings. Photos: [Unsplash](https://unsplash.com). If this theme saves you time, a ⭐️ on GitHub genuinely helps it reach more people.
Explore similar templates
Compare previews and descriptions within the same stack and category.

astrowind
AstroWind is a free, open-source Astro starter theme using Astro and Tailwind CSS, released under the MIT license.
Astro · Blog

astro-paper
AstroPaper is a minimal, responsive, accessible, and SEO-friendly Astro blog theme. Articles are stored as Markdown/MDX in src/content/posts/, with subdirectories affecting URLs.
Astro · Blog

fuwari
Fuwari is a static blog template built with Astro and Tailwind CSS for personal blogs. It manages posts as Markdown files in src/content/posts/, with frontmatter for title, date, description, cover, tags, categories, draft status, and language.
Astro · Blog

Firefly
Firefly is a clean personal blog theme forked from Astro and Fuwari, offering four background modes, single/double sidebar and list/grid layouts, Pagefind client-side full-text search, and a six-language UI.
Astro · Blog

astro-theme-cactus
Astro Cactus is an Astro-based blog and portfolio theme that uses Markdown/MDX content collections to manage posts, notes, and tags, with frontmatter type-checked by a schema.
Astro · Portfolio

astrofy
Astrofy is a free and open-source personal portfolio website template built with Astro and TailwindCSS, with built-in blog, CV timeline, project showcase, store, and RSS feed modules.
Astro · Portfolio
