@kentcdodds: This is pretty insane. You can run a full stack @remix_run app inside @kodykoala: https://kody.codes/@kentcdodds/packag…
Summary
Kent C. Dodds announces a package app kit for Kody that enables running full-stack Remix apps with integrated features like design tokens, PWA support, error handling, and realtime sync.
View Cached Full Text
Cached at: 09/16/26, 05:54 AM
This is pretty insane. You can run a full stack @remix_run app inside @kodykoala: https://t.co/1ByZtRWdjX
Kody packages run inside dynamic workers. It’s just so sick.
It has access to do anything your Kody account can do. Easiest way to build personal software. https://t.co/mZGKwm1VG5
@kentcdodds/package-app-kit — Kody public package
Source: https://kody.codes/@kentcdodds/package-app-kit ← Public packages
Design tokens, PWA install/update, About/version, cache helpers, and optional realtime notes sync for Kody package apps.
- Apps
- app
- pwa
- design
- cache
- kit
Version0.1.0LicensePublishedSeptember 15, 2026Pinned commit7ca952cRatingNo ratings yetForks0Adaptation effort—
@kentcdodds/package-app-kit
Runtime design/PWA kit for Kodypackage apps.
Intent
Give Kent (and future@kodyconsumers) one lean private kit so every package app can share:
- CSS custom-property design tokens (includingspacing scale
\-\-pak\-space\-1…8+pak\-stack/pak\-cluster/pak\-inset) and useful vanilla UI (including asonner-inspiredtoaster) - **Press feedback / optimistic UI:**immediate pending on tap; busy labels use spin-delay timing (no flash)
- **ErrorBanner:**shared alert for validation / About / SSR failures (
app/ui/error\-banner\.tsx+\./error\-display) - **Zero CLS preference:**update-available is a fixed dismissible toast (not an in-flow banner); ephemeral UI stays out of document flow
- Headerinstall icon(Lucide
download, reserved slot, no CLS) that triggers thenativeinstall prompt (beforeinstallprompt→event\.prompt\(\)), with iOS Add-to-Home-Screen only when the UA is actually iOS (fixed overlay). Tooltips for non-obvious / icon-only controls. /aboutpagewith commit sha/message, commit/publish dates + relative ages, package code link, and manual update check — via therecord-versionpattern (not dumped on home)- Remix recipelive demo under
app/(\{ fetch \}remount wrapper +remix/uiislands) showing tokens, Notes, install, About, and update check - Update check on visit → refresh affordance
- Double-checkhelpers for destructive ops (two-step + type-to-confirm; Notes uses
NotesDemo+DoubleCheckButtonwith PE + optimistic UI) packageStorageschema migrations(\./storage\-migrations) — stable kit subpath re-exporting@kentcdodds/package\-storage\-migrations(version key, orderedupsteps, isolate-memoized runner; caller always passes storage)- Optional realtime notes sync(
\./realtime+\./realtime\-client) — WorkerbroadcastNotesChanged/handleRealtimeEvent; browserconnectPackageRealtime(see AGENTSL3) - Lucide SVG icons(ISC) — checked-in under
app/icons/viascripts/add\-lucide\-icon\.mjs(no full Lucide runtime dep) - Client cache helpers (TanStack Query core + IndexedDB) and server cache (@epic-web/cachified+
packageStorage) - Service worker helpers with zombie protections (versioned caches, cleanup, careful
skipWaiting/clients\.claim, unregister stale SWs) - Desktop + mobile friendly layout (fluid width, large tap targets, no mobile-only copy)
Starter lives in this repoatstarter\-remix/(scaffolder embeds that directory into a new Artifacts package and renames placeholders). There isnoseparate@kentcdodds/package\-app\-starterpackage. This package’s own live demo (kody\.app→app/router\.ts) is Remix export-shape for the kit showcase and isnotwhat the scaffolder copies. Archived fetch template:starter\-fetch/. Archived pre-Remix kit demo:archive/fetch\-demo/.
Private@kentcdoddsfor now; promote to@kodylater.
Kit demo brand
The live kit demo usesrace-driver Kodyfor in-app logos (bust header, full-body hero)andfor the list/favicon/PWA mark (the racer bust — not the Remix R + rainbow stripes glyph). Design tokens default to Remix-dark (\#0a0a0a/\#121212) with cyan primary and stripe secondaries. Scaffolded apps still ship a placeholder\.kody/icon— generate a distinctive mark per the After scaffolding checklist.
Private hosted apps: open viaOpen Package Appfrom kody.codes. Re-open from the package page when you need a fresh session or service worker, then takeRefreshon the update toast when one appears.
**In-app logos:**serve header/hero/favicon marks from app routes that returnimage/png(same pattern asiconPngResponse//icons/…), and point markup atroutes\.…href\(\). Usepublic/+\_assetsfor CSS,sw\.js, and the client bundle.
Stack note
Live kit demois a Remixrecipeunder the framework-agnostic host contract (every entry is a fetch handler on the mount-stripped path):
"kody": {
"app": {
"entry": "./app/router.ts",
"client": "./app/assets/entry.ts",
"assets": "./public"
}
}
Recipe boilerplate the demo/starter own: roottsconfig\.jsonwith"jsx": "react\-jsx"+"jsxImportSource": "remix/ui", remount +export default \{ fetch \}inapp/router\.ts, andclientEntry\('kody:app\#Name', …\)islands with a browser registry. Nokody\.app\.runtime. Demo controllers import kit helpers withrelative\.\./src/\.\.\.paths (this package must not depend on itself viakody:@kentcdodds/package\-app\-kit).
Scaffolded appscopystarter\-remix/(same recipe) and import the kit withkody:@kentcdodds/package\-app\-kit/\.\.\..
Library consumersstill get Worker HTML helpers + optional dual-path client (packageContext\.clientModuleUrl, interim\./clientboot). Prefer platformremix/uifor Remix apps — do not add@remix\-run/uiimport maps or the fatremixmeta-package as a runtime dependency.
Install / import
import themeCss from 'kody:@kentcdodds/package-app-kit/styles'
import { toastCss, toastHostHtml } from 'kody:@kentcdodds/package-app-kit/ui'
import {
createDoubleCheck,
createTypeToConfirm,
} from 'kody:@kentcdodds/package-app-kit/double-check'
import { installChromeHtml } from 'kody:@kentcdodds/package-app-kit/install'
import { formatAboutPageData, aboutPageHtml } from 'kody:@kentcdodds/package-app-kit/about'
import { kitServedManifestIcons, iconPngResponse } from 'kody:@kentcdodds/package-app-kit/icons'
import { appShellHtml } from 'kody:@kentcdodds/package-app-kit/app-shell'
import { clientBootResponse, clientModuleResponse } from 'kody:@kentcdodds/package-app-kit/client'
import recordVersion from 'kody:@kentcdodds/package-app-kit/record-version'
import checkForUpdate from 'kody:@kentcdodds/package-app-kit/update-check'
import { createPersistedQueryClient } from 'kody:@kentcdodds/package-app-kit/client-cache'
import { createServerCachified } from 'kody:@kentcdodds/package-app-kit/server-cache'
import { renderServiceWorker, buildWebManifest } from 'kody:@kentcdodds/package-app-kit/sw'
import {
runPackageStorageMigrations,
createMigrationRunner,
} from 'kody:@kentcdodds/package-app-kit/storage-migrations'
import {
createNotesRealtimeHandler,
broadcastNotesChanged,
} from 'kody:@kentcdodds/package-app-kit/realtime'
import { connectPackageRealtime } from 'kody:@kentcdodds/package-app-kit/realtime-client'
Always build in-app URLs frompackageContext\.appBasePath+packageContext\.hostedUrl.
SeeAGENTS\.mdforADOPTION LAYERS(CSS-only → fetch-handler PWA → Remix → optional realtime L3), token/class contracts, install client requirements, and the scaffolder playbook. Fetch-handler apps can use\./app\-shell(appShellHtml) instead of hand-rolling the document.
After publish
Forthis kit(demo About / update checks), call the kit export:
import recordVersion from 'kody:@kentcdodds/package-app-kit/record-version'
await recordVersion({
sha: '<published_commit>',
message: '<commit subject>',
committedAt: '<optional ISO>',
})
Scaffolded consumer apps ship their own\./record\-versionthat writesthat app’spackageStorage(seestarter\-remix/src/record\-version\.ts). After publishing a scaffolded app, callkody:@scope/app/record\-version— not the kit’s export.
Icons + installability
**List/identity mark (packages, repos, community cards):**put\.kody/icon\.png(also\.svg/\.webp/\.jpg/\.jpeg). New packages use\.kody/icon— do not scaffold rootcommunity\-icon\.\*. Rooticon\.\*/community\-icon\.\*remain permanent platform aliases. Keep PWA icons (icons/icon\-192\.png,public/) out of\.kody/. This kit ships\.kody/icon\.png; the scaffolder emits\.kody/icon\.svg(text) becausepackageSavecannot write binaries.
PWA install (Chromium / Brave URL-bar):requires a manifest withname/short\_name,start\_url,display, andPNG icons at 192 and 512that actually 200. This kit embeds those PNGs and serves them through\./icons(iconPngResponse/kitServedManifestIcons) so apps do not need to commit binary PWA icon files. Designed/generated icons are still welcome for polish; emptyicons: \[\]will not be promoted.
buildWebManifestdefaults todisplay: "standalone"and acceptsfullscreen,orientation,categories, and extra manifest fields — useful when iOS Safari gestures would otherwise fight the app.
start\_url/scope/idstay under/packages/<kody\.id\>/. Every HTML page must<link rel="manifest" crossorigin="use\-credentials"\>. Manifest responses usecache\-control: no\-store. The SW precaches home,/about,/notes, icons, and the manifest, and fetches the manifest network-first without caching 403s.
Private hosted apps needOpen Package Apphandoff from kody.codes. An installed PWA can still show a cached HTML shell while brand/icon network fetches return 403 after the session cookie expires — reopen from the package page, then Refresh on the update toast.
Starter + scaffolder
Seestarter\-remix/STARTER\.md. Aftercreate\-package\-app, agents follow theAfter scaffoldingchecklist inAGENTS\.md(and the copy that lands in the new package’sAGENTS\.md): distinctive\.kody/iconlist mark, PWAicons/icon\-192\.png+icons/icon\-512\.png, titles/description, localrecord\-version, Remix recipe reminders, and manifest colors matching the mark.
Mint a new private Remix package app in one execute call:
import createPackageApp from 'kody:@kentcdodds/package-app-kit/create-package-app'
export default async function main() {
return await createPackageApp({
packageName: '@kentcdodds/my-notes', // or leaf `my-notes`
title: 'My Notes',
})
}
Lucide icons (checked-in SVG)
Default icon set:Lucide(repo) —ISClicense, consistent 24×24 stroke icons, plain SVG. Browse names athttps://lucide.dev/icons.
Add icons into the app (and starter twin) without bundling the full Lucide package:
node scripts/add-lucide-icon.mjs download trash-2 plus
# writes app/icons/{name}.svg + {name}.tsx and mirrors into starter-remix/app/icons/
Use the generated Remix Handle component (<IconDownload size=\{20\} /\>) next to a visible label, or alone withdata\-tip+aria\-labelwhen icon-only:
import { IconDownload } from '../icons/download.tsx'
import { IconTrash2 } from '../icons/trash-2.tsx'
<button class="pak-btn pak-btn-icon" type="button" data-tip="Install App" aria-label="Install App">
<IconDownload size={20} />
</button>
<button class="pak-btn pak-btn-danger" type="submit">
<span class="pak-cluster pak-gap-2"><IconTrash2 size={18} /> Delete</span>
</button>
Attribution note ships asapp/icons/ATTRIBUTION\.md.
packageStorage migrations
Evolve durablepackageStorageschemas with a version key + ordered migrations. The kit subpath re-exports@kentcdodds/package\-storage\-migrations; keep importingkody:@kentcdodds/package\-app\-kit/storage\-migrationsand always pass the caller’s storage. Run once per Worker isolate (memoized) on boot or the first request that needs the data:
import { packageStorage } from 'kody:runtime'
import {
createMigrationRunner,
} from 'kody:@kentcdodds/package-app-kit/storage-migrations'
const ensureSchema = createMigrationRunner({
storage: packageStorage(),
versionKey: 'my-app:schema-version',
migrations: [
{
version: 1,
name: 'notes-to-document',
async up(storage) {
const legacy = await storage.get('notes-v1')
if (Array.isArray(legacy)) {
await storage.set('notes', { items: legacy })
await storage.delete?.('notes-v1')
}
},
},
],
})
// in a loader / action:
await ensureSchema()
The live demo Notes storage (app/data/notes\.ts) shows this pattern end-to-end.
Report this listingLog into report this listing.
Similar Articles
@kentcdodds: Can you believe this was done in a single day by a solo dev? https://github.com/kentcdodds/kody/releases/tag/v2026.08.1…
Kody is a portable personal assistant platform for AI agents, built on Cloudflare Workers and Model Context Protocol, enabling memory, code, and automation management across hosts.
@kentcdodds: Quick demo showing you how I use @kodykoala package webhooks to use Kody with @raycast
Kent C. Dodds demonstrates how to use Kody package webhooks to integrate with Raycast for automation.
@kentcdodds: One nice thing about the way @kodykoala works is that it doesn't come with built-in integrations hosted by Kody. Instea…
Kody Koala is a developer tool that helps users create their own integrations rather than relying on hosted integrations, giving them complete control.
@kentcdodds: Turn any agent conversation into a mini-app that stays up to date https://kody.codes/features/apps It's like Claude art…
Kody introduces Package Apps, letting users turn any agent conversation into a hosted, shareable mini-app with persistent data, live updates, and optional public custom domains—similar to Claude artifacts but team-oriented.
@kentcdodds: I've got a small (~19k) video app I'll announcing this week. I had a bug that fable and I couldn't fix after several at…
Kent C. Dodds tweets that an AI coding assistant named Fable rewrote his small React video app to Remix, which resolved a persistent bug.