create-staycore-site
v0.3.0
Published
Scaffold a direct booking website wired to the Stay'Core PMS in seconds.
Maintainers
Readme
create-staycore-site
Scaffold a direct booking website wired to the Stay'Core PMS in seconds.
npx create-staycore-site@latest mon-site \
--org-slug=mon-org \
--preset=love-room
cd mon-site
npm install # if you used --no-install
npm run devWhat you get:
- A Vite + React + TypeScript + Tailwind project
- Pre-wired to
@staycore/booking-sdk(booking calendar, availability, price, Stripe checkout, payment confirmation) - Pre-filled with your org's properties (pulled live from the Stay'Core PMS at scaffold time)
- A theme picked from 4 production-ready presets: love-room, chateau-luxe, gite-nature, city-business
- GA4 Consent Mode v2 cookie banner ready, JSON-LD
LodgingBusinesson property pages, OG tags - Git repository initialised, one tidy initial commit
CLI flags
npx create-staycore-site@latest <name> [options]| Flag | Description |
|---|---|
| <name> | Project folder name (positional) |
| --org-slug=<slug> | Stay'Core organization slug (required) |
| --preset=<id> | Visual preset: love-room (default), chateau-luxe, gite-nature, city-business |
| --brand-name="My Brand" | Display name shown in titles, navbar, footer |
| --brand-tagline="..." | Short pitch for the hero + meta description |
| --api-base-url=<url> | Override API base URL (default: https://api.stay-core.com/api/v1) |
| --no-install | Skip npm install step |
| --no-git | Skip git init step |
| --non-interactive, -y | Use defaults / fail on missing required input |
| --help, -h | Show help |
| --version, -v | Print CLI version |
Non-interactive mode
Perfect for CI, agents (Claude Code, Codex, Cursor) and scripts:
npx create-staycore-site@latest my-site \
--org-slug=mon-org \
--preset=chateau-luxe \
--brand-name="Domaine de Saint-Roch" \
--brand-tagline="Demeures de caractère, accueil sur-mesure." \
--no-install \
--no-git \
--non-interactivePresets
| ID | Vibe | Palette | Fonts |
|---|---|---|---|
| love-room | Romantique, sensuel | Violet / or | Cormorant Garamond + Inter |
| chateau-luxe | Patrimoine, classique | Or / crème | Playfair Display + Lato |
| gite-nature | Authentique, vert | Terre / sauge | Lora + Source Sans 3 |
| city-business | Urbain, sobre | Bleu nuit / blanc | Manrope |
Each preset is a JSON file at templates/presets/<id>.json. Want a 5th preset? Open a PR.
After scaffolding
cd mon-site && npm install && npm run dev— verify the site boots- Edit
src/data/properties.tsto enrich your listings (photos, copy, amenities) - Tweak
src/index.cssandtailwind.config.jsfor a fully custom look - Set up GA4 in
index.html(replaceG-XXXXXXXXXX) - Deploy:
vercel deploy --prod - Add your custom domain in the Stay'Core dashboard (Settings → Custom domains) so CORS lets the API in
License
MIT © Keenqo — Stay'Core
