The Orbit planet

Orbit

Markdown in. Fast sites out.

A web framework written in Tish. You get file-based routes, collections, islands, Tailwind-style utilities, SEO and feeds, and every route can be static, server-rendered or incremental.

pages/blog/[slug].tish
// pages/blog/[slug].tish
export let render = 'isr'
export let revalidate = 3600

export fn paths(ctx) {
  return ctx.collections.blog.map(p => ({ params: { slug: p.slug } }))
}
export fn load(ctx) {
  let post = ctx.bySlug(ctx.collections.blog, ctx.params.slug)
  return post === null ? { notFound: true } : { props: { post } }
}
export fn page(ctx, props) {
  return <article>{raw(props.post.html)}</article>
}

WHAT YOU GET

A whole site from one Tish codebase.

File-based routing

pages/ becomes your routes: [slug] and [...path] segments, nested layouts, redirects and trailing-slash rules.

blog/[slug].tish → /blog/:slug

Markdown collections

Frontmatter, tags, drafts, pagination and prev/next from a folder of .md files.

ctx.collections.blog

Rendering per route

Static HTML at build time, server-rendered per request, or cached and revalidated.

export let render = 'isr'

Streaming

The shell flushes at once; slow parts stream in when they resolve.

defer(slow(), <Spinner />)

Islands

JavaScript ships only to the pages that use it, loaded on idle, on view or right away.

island('chart', props)

Tailwind built in

Utilities generated from the classes you actually use, with variants and dark mode.

class="p-4 dark:bg-slate-900"

SEO and feeds

Canonical, Open Graph, Twitter, JSON-LD, sitemap.xml, robots.txt, RSS and Atom.

orbit build

Deploy anywhere

Vercel Build Output, a Node server, or any static host, at the root or a sub-path.

orbit build --target vercel

GET STARTED

A site in one command.

The starter comes with a blog, an island and a server-rendered page. orbit dev reloads as you save.

$npx @tishlang/orbit new my-site
$cd my-site && npm install && npx orbit dev
orbit dev → http://localhost:3000

Built with Orbit

space.la prerenders every screen with Orbit and plays them in a WebGPU island. This site is built with Orbit too.

Written in Tish

The same page code runs under tish run for tests and under Node or Vercel in production.

Open source

MIT licensed, on GitHub and npm.