Skip to content
BLOG · ASTRO ORBIT

Getting Started with Astro Orbit

Install Astro Orbit, run it on your computer and put it online on Vercel.

Hans Martens1 min read
Table of contentsShowHide

Astro Orbit is a free portfolio and blog theme for Astro. It’s MIT-licensed, so you can use it for your own website, change it and publish it.

What you need

  • Node 22.23.4 or later
  • pnpm 10
  • Git

Install it

git clone https://github.com/hansmartensdev/Astro-Orbit.git my-site
cd my-site
pnpm install
pnpm dev

The site runs at http://localhost:4321. When you save a change, the page in your browser updates.

The commands

Command What it does
pnpm dev Runs the site on your computer at http://localhost:4321
pnpm build Builds the static site, then the search index
pnpm preview Serves the build. Search only works here, not in pnpm dev
pnpm check Astro and TypeScript diagnostics
pnpm lint ESLint

Put it online

The theme is set up for Vercel. Push your copy to GitHub, import the repository in Vercel, and it builds. Every page is static, except the contact form’s endpoint, which runs as a Vercel function.

The contact form sends messages through Resend. Set these in Vercel’s environment variables:

Variable What it does
RESEND_API_KEY Your Resend API key. Without it, the form doesn’t send in production.
CONTACT_TO Where messages go. Defaults to the email in theme.config.ts.
CONTACT_FROM The sender, on a domain you’ve verified in Resend.

On the demo there’s no key, so the form accepts a message without sending it, and tells the visitor so.

Next

Most of what makes the site yours is in one file. That’s the next post: Make Astro Orbit Yours in One File.

Back to Blog
Share: