An @effect/ui + Vite template hardened to Elm-level strictness, demonstrated with a localStorage todo app featuring cross-tab sync, async Web Crypto SHA-256 fingerprinting, and clipboard copy.
- Strictest TypeScript (
tsconfig.json): extends@tsconfig/strictestwithverbatimModuleSyntax. - No type-checker escape hatches (
oxlint.config.ts): lint-bansany, all type assertions (as/<T>), non-null assertions (!), and@ts-*comments, plus checks Tailwind classes viaeslint-plugin-better-tailwindcss. - Exhaustive Elm-style updates (
src/App.ts):updateuses one handler perAppMessagetag with no catch-alls. - Plain
Schemamodels, validated at boundaries (src/Todo.ts,src/services/TodoStorage.ts):AppModelholds plainSchemadata;localStorageJSON is decoded throughSchema.fromJsonString(Schema.Array(Todo))on both initial load and cross-tabstorageevents. - I/O only at explicit effect boundaries (
src/services/TodoStorage.ts,src/services/Hasher.ts,src/services/Clipboard.ts,src/App.ts,src/index.ts):init,update,view, andheadare pure; side effects live inLayers,Command.Services,Subscriptions, and the mount entry point.
pnpm watch # start dev server with live typechecking
pnpm check # run tsc --noEmit && oxlint
pnpm lint # run oxlint
pnpm typecheck # run tsc --noEmit
pnpm build # production build