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.

src/index.ts

40 lines · 1.2 KB · TypeScript
/**
 * Runtime design/PWA kit for Kody package apps.
 * Import concrete subpaths (`./styles`, `./create-package-app`, `./client`, …).
 * Library helpers for consumers live under `src/`. The live kit demo is Remix
 * export-shape under `app/` (`kody.app.entry` → `./app/router.ts`). Scaffolder
 * embeds `starter-remix/` only — not the live demo tree. `./client` remains the
 * interim Worker serve helper for apps still on the dual-path client recipe.
 */
export {
	designTokensCss,
	uiPrimitivesCss,
	TOKENS,
	TOKEN_LEAF_NAMES,
	tokenNames,
	UI_PRIMITIVE_CLASSES,
	uiPrimitiveClassNames,
} from './styles.ts'
export { default as themeCss } from './styles.ts'
export { getAppVersion, setAppVersion, normalizeVersion, emptyVersion } from './version.ts'
export type { AppVersion } from './version.ts'
export {
	clientBootResponse,
	clientModuleResponse,
	readClientModule,
	listClientModules,
	CLIENT_BOOT_PATH,
} from './client-assets.ts'
export {
	defaultManifestIcons,
	kitServedManifestIcons,
	iconPngResponse,
	pngIconBytes,
	kitIconSvg,
	iconSvgResponse,
	svgManifestIcon,
} from './icons.ts'
export { appShellHtml } from './app-shell.ts'
export type { PwaIconSize } from './icons.ts'

export { default } from './styles.ts'