Skip to content
SaaSLaunchKit
Documentation

Build, customize, deploy

Start with the quickstart, then dig into configuration, content, and deployment. Every guide is a static Astro page with copy-ready snippets.

Open the help center

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

FieldTypeDescription
namestringBrand name used in the navbar, footer, and meta titles.
tagline / descriptionLocalizedShort and long copy, in English and Arabic.
urlstringProduction origin used for canonical and Open Graph URLs.
localesobjectLanguage labels, direction, prefix, and OG locale.
nav / secondaryNavarrayHeader and footer links with an EN and AR route per item.
footer.showFooterCreditbooleanShow or hide the “Designed by OLIMAT” line.
search.providersarrayBYOK providers and model names shown in the search modal.
product.pricenumberPrice 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

FileControls
src/data/features.tsHome feature grid and the page map.
src/data/pricing.tsPlans, monthly/yearly prices, and pricing FAQ.
src/data/docs.tsDocs sidebar, config table, and API endpoints.
src/data/help.tsHelp categories and article cards.
src/data/changelog.tsVersioned release notes.
src/data/roadmap.tsShipped, in-progress, and planned items.
src/data/status.tsServices, uptime, and incident history.
src/data/dashboard.tsMetrics, projects, invoices, and inbox messages.
src/data/search.tsLocal search index used by the search modal.

Add a new page

  1. Create src/pages/your-page.astro.
  2. Add the Spanish and Arabic twins at src/pages/es/your-page.astro and src/pages/ar/your-page.astro.
  3. 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.

//ar/
/pricing/ar/pricing
/docs/api/ar/docs/api
/dashboard/ar/dashboard

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.

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.

Open the dashboard

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

Framework presetAstro
Build commandnpm run build
Output directorydist
Node version22
npm run build
# upload the dist/ folder
npx wrangler pages deploy dist --project-name your-project

The 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.

Open the help center

Search the kit

Instant results