Astro + Sanity + Lumos

Skip the setup. Ship the site.

Astrokit is the boilerplate that already did the boring parts: CMS, blocks, forms, consent, SEO and motion. You bring the good ideas.

git clone https://github.com/szsoma/astrokit.git my-site

Zero to live

From git clone to “it's live” in four scrolls

Keep scrolling. The terminal is doing the typing.

  1. Clone it with its history

    Start from the real repo, not a template button, so future updates merge cleanly.

    $ git clone astrokit my-site
    $ git remote rename origin astrokit
    $ pnpm install
    ✔ 612 packages, 0 regrets
  2. Run it with demo content

    No keys, no accounts. Fixtures render the whole site on the first try.

    $ pnpm dev
      ready in 1.2s
      ➜ http://localhost:4321
    ✔ home + /styleguide on fixtures
  3. Point it at Sanity

    Answer the prompts once; Astrokit writes the config and the env placeholders.

    $ pnpm astrokit init
    ? Content › Use Sanity project
    ? Consent › builtin
    ✔ astrokit.config.ts saved
  4. Publish and deploy

    Hit publish in the Studio and the deploy hook rebuilds the site on Vercel.

    $ pnpm astrokit doctor
    ✔ config  ✔ sanity  ✔ forms
    $ git push
    ▲ deployed. go touch grass.

What you get

Everything you would have built anyway. Already built.

Watch it cycle, or poke a tab. Either way, none of this is on your to-do list anymore.

Sections that know where their content lives

Every block ships as five tidy files: component, fixtures, schema, query and metadata. Add a folder and it shows up in the Studio. No registry to babysit.

  • One command scaffolds a block
  • Fixtures make /styleguide work offline
  • Types fail loudly if schema and props drift

A CMS your client can actually use

Pages are lists of sections. Editors reorder, edit and publish; developers keep the markup. Drafts preview live in the embedded Studio.

  • Page builder + site settings out of the box
  • Presentation tool for click-to-edit previews
  • Redirects managed as content

Forms that send somewhere real

Build a form in the Studio, drop it on a page and pick a destination: email, HubSpot or a webhook. Validation, honeypot and Turnstile are already wired.

  • Resend, HubSpot or webhook
  • Server-side zod validation

GSAP, ScrollTrigger and Lenis on a switch

Flip three booleans in one config file. Reduced-motion visitors get none of it, and the page still looks finished without it.

One repo, two Vercel projects

A public site for the world and a protected preview for drafts. Publish in Sanity, a deploy hook rebuilds the site.

In the box

Swipe through the stuff you will not have to write

Drag, scroll or use the arrows. We will not judge.

01Content

Pages as building blocks

A page is an ordered list of sections. Editors rearrange, you keep the markup.

02CMS

Sanity Studio, embedded

Edit drafts side by side with the live preview, then publish when it feels right.

03Setup

One config file

Analytics, consent, forms and motion all switch on from astrokit.config.ts.

04Leads

Forms with destinations

Email, HubSpot or a webhook, with spam protection ready when you are.

05Polish

Scroll animation

GSAP, ScrollTrigger and Lenis, off until you need them, quiet for reduced motion.

06Launch

Vercel, twice

A public production project and a protected preview project from one repository.

FAQ

Questions you were about to ask

Is this a theme or a framework?

Neither, really. It is a clone-and-go starter: Astro for the site, Sanity for the content, Lumos for the components, plus the glue you would otherwise write yourself.

Do I need a Sanity account to try it?

No. With no keys, the site runs on built-in fixtures. Connect Sanity when you want real editing.

Can I add my own sections?

Run pnpm astrokit new block my-block --section. You get a component, fixtures, schema and query, and the section appears in the Studio automatically.

How do I get updates?

Your clone keeps Astrokit's history. Fetch the astrokit remote and merge it whenever you fancy the latest.

Does it work with AI coding tools?

Yes, vibe coders welcome. The repo ships agent instructions and a block-building skill, so your assistant follows the same conventions you do.

Your move

Build the site. Skip the scaffolding.

Clone Astrokit, run pnpm dev and have a working site before your coffee cools.