README.md30 lines · main
1# briven examples
2
3each subdirectory is a self-contained briven project you can copy as a starting point. all examples target the latest `@briven/cli`. license: MIT.
4
5| example | what it covers |
6|---|---|
7| [counter](./counter) | the smallest possible briven app: one row, two functions, reactive query end-to-end |
8| [todo-app](./todo-app) | the canonical hello-world: schema, four mutations + one reactive query, the react client |
9| [realtime-chat](./realtime-chat) | two-table schema + per-room reactive queries — a multi-room chat in ~80 lines |
10| [auth-pilot](./auth-pilot) | smallest Briven Auth wiring: middleware proxy, `@briven/auth` client, hosted sign-in button |
11| (more on the way — file-uploads) | |
12
13## use one of these
14
15```sh
16# 1. copy the example into a new folder
17cp -r examples/todo-app my-todo-app
18cd my-todo-app
19
20# 2. link it to a briven project (requires `briven login` first)
21briven link
22
23# 3. push schema + functions
24briven deploy
25
26# 4. invoke and verify
27briven invoke listTodos
28```
29
30each example ships its own `README.md` with a 30-second tour.
Preview

briven examples

each subdirectory is a self-contained briven project you can copy as a starting point. all examples target the latest @briven/cli. license: MIT.

examplewhat it covers
counterthe smallest possible briven app: one row, two functions, reactive query end-to-end
todo-appthe canonical hello-world: schema, four mutations + one reactive query, the react client
realtime-chattwo-table schema + per-room reactive queries — a multi-room chat in ~80 lines
auth-pilotsmallest Briven Auth wiring: middleware proxy, @briven/auth client, hosted sign-in button
(more on the way — file-uploads)

use one of these

# 1. copy the example into a new folder
cp -r examples/todo-app my-todo-app
cd my-todo-app

# 2. link it to a briven project (requires `briven login` first)
briven link

# 3. push schema + functions
briven deploy

# 4. invoke and verify
briven invoke listTodos

each example ships its own README.md with a 30-second tour.