Skip to content

Kody is live

Watch the launch video — what Kody is, and why it exists.

← Public packages

@kentcdodds/package-app-kit

Design tokens, PWA install/update, About/version, cache helpers, and optional realtime notes sync for Kody package apps.

starter-remix/app/routes.ts

15 lines · 516 B · TypeScript
import { packageContext } from 'kody:runtime'
import { form, route } from 'remix/routes'

// Hosted apps live under a mount (/packages/<leaf> on the subdomain).
// Prefix the contract so every href(), redirect, and form action stays inside it.
export const routes = route(packageContext?.appBasePath ?? '', {
	home: '/',
	about: '/about',
	notes: form('notes'),
	manifest: '/manifest.webmanifest',
	icon192: '/icons/icon-192.png',
	icon512: '/icons/icon-512.png',
	versionApi: '/api/version',
	health: '/health',
})