Skip to content

About

One consistent, typed way to define, throw, catch, show and translate errors in Convex apps.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

convex-errors: typed errors for Convex, from throw to toast

npm version MIT license

convex-errors

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

Develop

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

About

One consistent, typed way to define, throw, catch, show and translate errors in Convex apps.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages