This repo holds @cs-stack/convex-errors and the apps used to try it.
To use the library, read packages/convex-errors/README.md. It covers installing, declaring, throwing, showing and translating errors.
For LLMs and AI agents: llms.txt has the whole API in one file, and SKILL.md is an agent skill for adding the library to an app.
packages/convex-errors/ the library
examples/minimal/ a Vite + React app with its Convex functions in convex/
examples/paraglide/ the same app on TanStack Start, in English and Italian with Paraglide
You need Bun 1.4 and Node 24. No Convex account is needed: convex dev offers a local deployment.
bun install
bun run dev # examples/minimal on http://localhost:5173
bun run dev:paraglide # examples/paraglide on http://localhost:5175
bun run test # library tests
bun run check # format, lint, type check