Open History to see the last commit
ts-remix-chat Agent Guide#
This app was scaffolded with remix new. Use these conventions when continuing to build it out.
Commands#
npm i
npm run dev
npm run hmr
npm run start
npm test
npm run typecheck
Building Features#
Refer to ./.agents/skills/remix/SKILL.md
Starter Layout#
app/actions/controller.tsxowns the top-level route actionsapp/actions/home-page.tsxandapp/actions/document.tsxrender the route-owned starter UIapp/actions/public/contains the browser runtime entry and interactive prompt buttonapp/routes.tsdefines the shared route contract used by server and browser modules for type-safe hrefsapp/router.tswires routes to route handlers and installs the standard Remix UI renderer used by actionsapp/assets.tsowns the server-side asset pipeline used by the asset route and render middleware- Root
public/contains static files served unchanged from the app root
Route Ownership#
- Start from
app/routes.tsand map each route to the narrowest owner on disk. - Put top-level route actions in
app/actions/controller.tsx. - Add
app/actions/<route-key>/controller.tsxfor nested route maps that need their own actions or middleware. - Keep route-owned page modules next to the route that owns them.
- Move shared UI to
app/ui/, notapp/actions/.
Build-Out Notes#
- This starter intentionally begins small; add directories like
app/data/andtest/only when you need them. - Prefer putting code in the narrowest owner before introducing shared modules.
- Avoid generic dumping-ground directories like
app/lib/orapp/components/.