{"_id":"@afosto/create-shop","_rev":"3-988b2b5b40b9e8f767865ae8e46c7c67","name":"@afosto/create-shop","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"@afosto/create-shop","version":"0.0.1","_id":"@afosto/create-shop@0.0.1","maintainers":[{"name":"rapid0o","email":"gertjan@afosto.io"},{"name":"gijsbotje","email":"gijs@afosto.io"},{"name":"robinstikfort","email":"robin@afosto.com"}],"bin":{"create-shop":"dist/index.js"},"dist":{"shasum":"87f54f679358791c29cca2a3e5387b3375afad28","tarball":"https://registry.npmjs.org/@afosto/create-shop/-/create-shop-0.0.1.tgz","fileCount":159,"integrity":"sha512-k4RhT8b05dl/ymDb/tYyxCT3t8Eh0Z27X4ifLjyIKI6cyXhJRkGKz749C99zGvwq24l62/rwHm7l6NlHHUGxog==","signatures":[{"sig":"MEUCIQD85WxM2y6fTVDNI41PzH5wUd50eusJwisYpSnnzVHyswIgXGx6IMNkGrc90SJjs4sNCge7w58yTWVYXCGIdg4uFDk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":817129},"main":"dist/index.js","engines":{"node":">=18.0.0"},"gitHead":"f4af0a0d3598619a491c66a3259d2ece7d2ed07b","scripts":{"dev":"node build.mjs --watch","build":"node build.mjs","typecheck":"tsc --noEmit"},"_npmUser":{"name":"gijsbotje","email":"gijs@afosto.io"},"_npmVersion":"10.9.7","description":"Create a new Afosto shop project","directories":{},"_nodeVersion":"22.22.2","dependencies":{"tar":"^7.5.7","ignore":"^7.0.5","prompts":"^2.4.2","commander":"^12.1.0","fast-glob":"^3.3.1","picocolors":"^1.1.1","cross-spawn":"^7.0.3","validate-npm-package-name":"^5.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.25.0","@types/tar":"^6.1.13","typescript":"^5.8.0","@types/node":"^22.0.0","@types/prompts":"^2.4.9","@types/cross-spawn":"^6.0.6"},"_npmOperationalInternal":{"tmp":"tmp/create-shop_0.0.1_1779967184582_0.6564471217452759","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@afosto/create-shop","version":"0.0.2","_id":"@afosto/create-shop@0.0.2","maintainers":[{"name":"rapid0o","email":"gertjan@afosto.io"},{"name":"gijsbotje","email":"gijs@afosto.io"},{"name":"robinstikfort","email":"robin@afosto.com"}],"bin":{"create-shop":"dist/index.js"},"dist":{"shasum":"2494e60201de85c0d8426ca74fa94f6615dd7b39","tarball":"https://registry.npmjs.org/@afosto/create-shop/-/create-shop-0.0.2.tgz","fileCount":159,"integrity":"sha512-9N9PzCozIlW6jLCW4UUBZObT11XKIF0h83SGgRZXkt7gwu4svJmgB23ru1JfUiHeVRbeScfuFFLyRA6cyhTJTA==","signatures":[{"sig":"MEUCIQCfUhWlhHElMyuxu3LNcLbsh2h6cef4yUTlya/UqkjIzgIgNVfA8Csl0O7LH4Znz1BAvUPNB2l0yMao9yh7y9oNg/Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":718400},"main":"dist/index.js","engines":{"node":">=18.0.0"},"gitHead":"b5d88ba5e008e3b5c9b0eed4c42cdcd97df2758e","scripts":{"dev":"node build.mjs --watch","build":"node build.mjs","typecheck":"tsc --noEmit"},"_npmUser":{"name":"gijsbotje","email":"gijs@afosto.io"},"_npmVersion":"10.9.7","description":"Create a new Afosto shop project","directories":{},"_nodeVersion":"22.22.2","dependencies":{"tar":"^7.5.7","ignore":"^7.0.5","prompts":"^2.4.2","commander":"^14.0.3","picocolors":"^1.1.1","tinyglobby":"^0.2.13","cross-spawn":"^7.0.3","validate-npm-package-name":"^8.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.25.0","@types/tar":"^6.1.13","typescript":"^5.8.0","@types/node":"^22.0.0","@types/prompts":"^2.4.9","@types/cross-spawn":"^6.0.6"},"_npmOperationalInternal":{"tmp":"tmp/create-shop_0.0.2_1779978040160_0.060428986801534856","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@afosto/create-shop","version":"0.0.3","license":"MIT","description":"Create a new Afosto shop project","main":"dist/index.js","bin":{"create-shop":"dist/index.js"},"scripts":{"build":"node build.mjs","dev":"node build.mjs --watch","typecheck":"tsc --noEmit"},"dependencies":{"commander":"^14.0.3","cross-spawn":"^7.0.3","ignore":"^7.0.5","picocolors":"^1.1.1","prompts":"^2.4.2","tar":"^7.5.7","tinyglobby":"^0.2.13","validate-npm-package-name":"^8.0.0"},"devDependencies":{"@types/cross-spawn":"^6.0.6","@types/node":"^22.0.0","@types/prompts":"^2.4.9","@types/tar":"^6.1.13","esbuild":"^0.25.0","typescript":"^5.8.0"},"publishConfig":{"access":"public"},"engines":{"node":">=20.0.0"},"_id":"@afosto/create-shop@0.0.3","gitHead":"13afb637ad9f1ea787423f1957608ee96aff84e7","_nodeVersion":"22.22.2","_npmVersion":"10.9.7","dist":{"integrity":"sha512-6N4LMEAdzxLtnvclrQaOQPJysFuO77XCylqqz/B78GqeBPyJ1qaXQEnzqSePt58S/yRsGHv3+Sgmj4STNcu79g==","shasum":"0a3c55625c7de3137ed0e2b346d0f41493b3dedd","tarball":"https://registry.npmjs.org/@afosto/create-shop/-/create-shop-0.0.3.tgz","fileCount":159,"unpackedSize":718346,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCFYDjYI/7Bmjljjwwz/ck8fhkpE+67fAsFliDxERecnwIgLUhglmiIl7cuF94G0WUN3vHxZcmHbcffDfKOwxS35q0="}]},"_npmUser":{"name":"gijsbotje","email":"gijs@afosto.io"},"directories":{},"maintainers":[{"name":"rapid0o","email":"gertjan@afosto.io"},{"name":"gijsbotje","email":"gijs@afosto.io"},{"name":"robinstikfort","email":"robin@afosto.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/create-shop_0.0.3_1779982910642_0.6574293668397575"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-28T11:19:44.488Z","modified":"2026-05-28T15:41:50.952Z","0.0.1":"2026-05-28T11:19:44.799Z","0.0.2":"2026-05-28T14:20:40.316Z","0.0.3":"2026-05-28T15:41:50.842Z"},"description":"Create a new Afosto shop project","maintainers":[{"name":"rapid0o","email":"gertjan@afosto.io"},{"name":"gijsbotje","email":"gijs@afosto.io"},{"name":"robinstikfort","email":"robin@afosto.com"}],"readme":"# @afosto/create-shop\n\nThe easiest way to scaffold a new Afosto storefront. This CLI sets up a production-ready shop connected to your Afosto backend — with routing, i18n, and a component library already wired up.\n\n## Prerequisites\n\n- **Node.js** 20 or later\n- An **Afosto account** — you need two things:\n  - A storefront token → create an account at [afosto.com/register](https://afosto.com/register/)\n  - A backend domain → create an account at [app.afosto.com/signup](https://app.afosto.com/signup)\n\n## Getting started\n\n### Interactive\n\n```bash\nnpm create @afosto/shop@latest\n# or\npnpm create @afosto/shop@latest\n# or\nyarn create @afosto/shop@latest\n# or\nbunx @afosto/create-shop@latest\n```\n\nYou will be asked for the name of your project. The package manager is detected automatically from the command you used to run the CLI — no prompt needed.\n\n### Non-interactive\n\nYou can also pass arguments to skip the prompts:\n\n```bash\nnpm create @afosto/shop@latest my-shop -- --use-pnpm --yes\n```\n\nSee all options with `--help`:\n\n```bash\nUsage: @afosto/create-shop [directory] [options]\n\nOptions:\n  -v, --version        output the version number\n  --use-npm            use npm as the package manager\n  --use-pnpm           use pnpm as the package manager\n  --use-yarn           use yarn as the package manager\n  --use-bun            use bun as the package manager\n  -y, --yes            accept all defaults and skip prompts\n  -e, --example <url>  GitHub URL of a template to bootstrap from\n  -h, --help           display help information\n```\n\n## After scaffolding\n\n1. Copy `.env.example` to `.env.local` and fill in your credentials:\n\n```bash\ncp .env.example .env.local\n```\n\n```env\nNEXT_PUBLIC_AFOSTO_BACKEND_DOMAIN_NL=https://...\nNEXT_PUBLIC_AFOSTO_BACKEND_DOMAIN_EN=https://...\nNEXT_PUBLIC_AFOSTO_STOREFRONT_TOKEN_NL=...\nNEXT_PUBLIC_AFOSTO_STOREFRONT_TOKEN_EN=...\nNEXT_PUBLIC_FRONTEND_DOMAIN_NL=https://...\nNEXT_PUBLIC_FRONTEND_DOMAIN_EN=https://...\n```\n\n2. Review `afosto.config.ts` — this file wires your env vars into the app. No changes needed if your `.env.local` is correct.\n\n3. Start the development server:\n\n```bash\nnpm run dev\n# or pnpm dev / yarn dev / bun dev\n```\n\n## What's included (default template)\n\nThe default template is a full Next.js storefront with:\n\n| What | Details |\n|---|---|\n| **Framework** | Next.js (App Router, TypeScript) |\n| **Styling** | Tailwind CSS + tailwind-variants |\n| **i18n** | next-intl — Dutch and English out of the box |\n| **Data fetching** | TanStack Query |\n| **Afosto SDK** | `@afosto/shop-react`, `@afosto/cms-client`, `@afosto/storefront` |\n| **UI primitives** | Base UI |\n| **Linting** | ESLint |\n\n> Using `--example` with a custom GitHub URL bootstraps from that repo instead — the contents depend on the example you choose.\n\n## Roadmap\n\nMore official templates are planned and will be selectable during the interactive setup:\n\n| Template | Status |\n|---|---|\n| Next.js (current) | Available |\n| Nuxt | Planned |\n| TanStack Start | Planned |\n","readmeFilename":"README.md","license":"MIT"}