Quickstart
SaaSLaunchKit is a plain Astro project. Install dependencies, start the dev server, and open http://localhost:4321.
Requirements
- Node.js 20.19 or newer (22 recommended, see .nvmrc)
- npm 10 or newer
- Any static host — no PHP, database, or server runtime
npm install
npm run dev # http://localhost:4321
npm run build # static output in dist/Tip: Run npm run build before you zip or deploy. Astro catches broken imports and invalid frontmatter at build time.
Configuration
One config file controls the brand, domain, navigation, footer credit, and search providers. Design tokens live in global.css.
// src/config/site.config.ts
export const siteConfig = {
name: "YourProduct",
url: "https://yourdomain.com",
locales: { en: { ... }, ar: { ... } },
footer: { showFooterCredit: true, ... },
};site.config.ts fields
| Field | Type | Description |
|---|---|---|
| name | string | Brand name used in the navbar, footer, and meta titles. |
| tagline / description | Localized | Short and long copy, in English and Arabic. |
| url | string | Production origin used for canonical and Open Graph URLs. |
| locales | object | Language labels, direction, prefix, and OG locale. |
| nav / secondaryNav | array | Header and footer links with an EN and AR route per item. |
| footer.showFooterCredit | boolean | Show or hide the “Designed by OLIMAT” line. |
| search.providers | array | BYOK providers and model names shown in the search modal. |
| product.price | number | Price shown in the home-page CTA and docs. |
Design tokens
Change brand colors and fonts inside the @theme block in global.css. There is no tailwind.config.mjs.
/* src/styles/global.css */
@theme static {
--color-brand-600: #0d9488;
--font-arabic: "IBM Plex Sans Arabic", sans-serif;
}Content and data files
Pages are Astro files; repeating content is plain TypeScript. There is no CMS, database, or admin panel to learn.
Data files
| File | Controls |
|---|---|
| src/data/features.ts | Home feature grid and the page map. |
| src/data/pricing.ts | Plans, monthly/yearly prices, and pricing FAQ. |
| src/data/docs.ts | Docs sidebar, config table, and API endpoints. |
| src/data/help.ts | Help categories and article cards. |
| src/data/changelog.ts | Versioned release notes. |
| src/data/roadmap.ts | Shipped, in-progress, and planned items. |
| src/data/status.ts | Services, uptime, and incident history. |
| src/data/dashboard.ts | Metrics, projects, invoices, and inbox messages. |
| src/data/search.ts | Local search index used by the search modal. |
Add a new page
- Create src/pages/your-page.astro.
- Add the Spanish and Arabic twins at src/pages/es/your-page.astro and src/pages/ar/your-page.astro.
- Add the route to siteConfig.nav if it belongs in the menu.
Localized routes
English pages live at the root, Spanish under /es, and Arabic under /ar. Each layout sets lang and dir, and the language switcher maps the current route to its counterpart.
Unlayered RTL rules ensure Tailwind tracking and weight utilities never break Arabic glyphs.
Translations
Every interface string lives in src/i18n/ui.ts. The en object is the source of truth; the es and ar objects must match its shape.
Repeating page content (plans, articles, releases) lives in src/data and uses the Localized { en, es, ar } type.
// src/data/pricing.ts
title: { en: "Growth", ar: "النمو" }Interactive features
Dark mode, the language switcher, the pricing toggle, dashboard tabs, and the BYOK search modal are small vanilla scripts — no framework runtime.
Dark mode
A class on <html>, persisted in localStorage, with no flash.
Language switch
Maps every route to its localized counterpart automatically.
Pricing toggle
Flips monthly and yearly and updates every price.
Dashboard tabs
Client-side tabs with deep links through the hash.
Search modal (BYOK)
Local search works immediately from src/data/search.ts. AI answers are optional and use the visitor's own key.
- Open the modal with ⌘K or Ctrl+K.
- Open settings and pick OpenAI, Anthropic, or Gemini.
- Paste your key. It is stored in localStorage only and never bundled.
Your key is stored in localStorage and sent only to the provider you choose. It is never bundled with the template or sent to us.
Dashboard shell
Five UI screens in one page: Overview, Projects, Billing, Settings, and Inbox. Tabs use the hash, so every screen is linkable.
No auth, database, or payment integration. Data comes from src/data/dashboard.ts.
Deploy
npm run build produces a static dist/ folder. Cloudflare Pages, Netlify, Vercel, GitHub Pages, or any web server can host it.
Cloudflare Pages settings
npm run build
# upload the dist/ folder
npx wrangler pages deploy dist --project-name your-projectThe site is fully static. Any host that serves HTML, CSS, and JavaScript works — no PHP or database required.
Troubleshooting
npm install fails
Check Node 20.19+ first. If it persists, delete node_modules and package-lock.json and retry.
Styles are missing
Confirm src/styles/global.css is imported in the layout and tailwindcss() is in astro.config.mjs.
A route 404s after deploy
Most static hosts serve /pricing/ from pricing/index.html. Add the trailing slash or enable a rewrite.
Need a hand?
The help center covers setup, customization, and common questions.