create-usebecky 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/README.md +80 -2
  2. package/dist/create.js +842 -0
  3. package/dist/extension-skill/usebecky-extension/SKILL.md +181 -0
  4. package/dist/extension-skill/usebecky-extension/references/accounts.md +125 -0
  5. package/dist/extension-skill/usebecky-extension/references/dev-server.md +102 -0
  6. package/dist/extension-skill/usebecky-extension/references/manifest.md +104 -0
  7. package/dist/extension-skill/usebecky-extension/references/oauth-and-tokens.md +179 -0
  8. package/dist/extension-skill/usebecky-extension/references/partner-api.md +87 -0
  9. package/dist/extension-skill/usebecky-extension/references/submit-and-pricing.md +31 -0
  10. package/dist/extension-skill/usebecky-extension/references/ui.md +172 -0
  11. package/dist/extension-skill/usebecky-extension/references/webhooks.md +97 -0
  12. package/dist/index.js +10 -0
  13. package/dist/keys.js +72 -0
  14. package/dist/platform.js +104 -0
  15. package/dist/pm.js +69 -0
  16. package/dist/prompts.js +242 -0
  17. package/dist/scaffold.js +108 -0
  18. package/dist/setup.js +130 -0
  19. package/dist/shared/ai.js +203 -0
  20. package/dist/shared/extension-skill.js +107 -0
  21. package/dist/shared/framework.js +460 -0
  22. package/dist/shared/hosted.js +8 -0
  23. package/dist/shared/ui.js +141 -0
  24. package/dist/skill/usebecky/SKILL.md +339 -0
  25. package/dist/skill/usebecky/references/access-rules.md +307 -0
  26. package/dist/skill/usebecky/references/addons.md +68 -0
  27. package/dist/skill/usebecky/references/analytics.md +166 -0
  28. package/dist/skill/usebecky/references/android.md +434 -0
  29. package/dist/skill/usebecky/references/auth.md +379 -0
  30. package/dist/skill/usebecky/references/cache.md +51 -0
  31. package/dist/skill/usebecky/references/components.md +127 -0
  32. package/dist/skill/usebecky/references/emails.md +105 -0
  33. package/dist/skill/usebecky/references/expo.md +147 -0
  34. package/dist/skill/usebecky/references/functions.md +99 -0
  35. package/dist/skill/usebecky/references/hosting.md +119 -0
  36. package/dist/skill/usebecky/references/http-api.md +233 -0
  37. package/dist/skill/usebecky/references/ios.md +355 -0
  38. package/dist/skill/usebecky/references/payments.md +493 -0
  39. package/dist/skill/usebecky/references/realtime.md +143 -0
  40. package/dist/skill/usebecky/references/scheduled-jobs.md +82 -0
  41. package/dist/skill/usebecky/references/sdk.md +838 -0
  42. package/dist/skill/usebecky/references/storage.md +210 -0
  43. package/dist/skill/usebecky/references/templates.md +191 -0
  44. package/dist/skill/usebecky/references/wordpress.md +87 -0
  45. package/dist/templates.js +74 -0
  46. package/package.json +37 -4
  47. package/templates/expo/App.tsx +48 -0
  48. package/templates/expo/README.md +59 -0
  49. package/templates/expo/_env.example +4 -0
  50. package/templates/expo/_gitignore +12 -0
  51. package/templates/expo/app.json +25 -0
  52. package/templates/expo/assets/icon.png +0 -0
  53. package/templates/expo/brand.ts +7 -0
  54. package/templates/expo/components/Avatar.tsx +75 -0
  55. package/templates/expo/components/ui.tsx +57 -0
  56. package/templates/expo/index.ts +4 -0
  57. package/templates/expo/lib/theme.ts +43 -0
  58. package/templates/expo/lib/usebecky.ts +15 -0
  59. package/templates/expo/package.json +29 -0
  60. package/templates/expo/screens/Home.tsx +187 -0
  61. package/templates/expo/screens/SignIn.tsx +112 -0
  62. package/templates/expo/tsconfig.json +6 -0
  63. package/templates/expo/usebecky.template.json +36 -0
  64. package/templates/extension/README.md +128 -0
  65. package/templates/extension/_env.example +21 -0
  66. package/templates/extension/_gitignore +11 -0
  67. package/templates/extension/logo.svg +1 -0
  68. package/templates/extension/package.json +25 -0
  69. package/templates/extension/src/accounts.ts +90 -0
  70. package/templates/extension/src/app.ts +178 -0
  71. package/templates/extension/src/pages.ts +108 -0
  72. package/templates/extension/src/replay-guard.ts +17 -0
  73. package/templates/extension/src/server.ts +57 -0
  74. package/templates/extension/src/settings.ts +69 -0
  75. package/templates/extension/src/ui.ts +70 -0
  76. package/templates/extension/test/app.test.ts +222 -0
  77. package/templates/extension/tsconfig.json +16 -0
  78. package/templates/extension/usebecky-extension.json +36 -0
  79. package/templates/extension/usebecky.template.json +22 -0
  80. package/templates/landing/README.md +43 -0
  81. package/templates/landing/_env.example +4 -0
  82. package/templates/landing/_gitignore +9 -0
  83. package/templates/landing/index.html +16 -0
  84. package/templates/landing/package.json +28 -0
  85. package/templates/landing/public/icon.svg +1 -0
  86. package/templates/landing/src/App.tsx +97 -0
  87. package/templates/landing/src/components/Contact.tsx +43 -0
  88. package/templates/landing/src/components/Counter.tsx +34 -0
  89. package/templates/landing/src/components/Feedback.tsx +36 -0
  90. package/templates/landing/src/components/Logo.tsx +11 -0
  91. package/templates/landing/src/components/Receipt.tsx +128 -0
  92. package/templates/landing/src/components/Setup.tsx +20 -0
  93. package/templates/landing/src/components/fields.tsx +63 -0
  94. package/templates/landing/src/content.ts +22 -0
  95. package/templates/landing/src/index.css +119 -0
  96. package/templates/landing/src/lib/usebecky.ts +11 -0
  97. package/templates/landing/src/lib/waitlist.ts +46 -0
  98. package/templates/landing/src/main.tsx +12 -0
  99. package/templates/landing/src/vite-env.d.ts +6 -0
  100. package/templates/landing/tsconfig.json +19 -0
  101. package/templates/landing/usebecky.template.json +20 -0
  102. package/templates/landing/vite.config.ts +10 -0
  103. package/templates/notes/README.md +68 -0
  104. package/templates/notes/_env.example +4 -0
  105. package/templates/notes/_gitignore +9 -0
  106. package/templates/notes/index.html +15 -0
  107. package/templates/notes/package.json +28 -0
  108. package/templates/notes/public/icon.svg +1 -0
  109. package/templates/notes/src/App.tsx +35 -0
  110. package/templates/notes/src/brand.ts +7 -0
  111. package/templates/notes/src/components/Composer.tsx +113 -0
  112. package/templates/notes/src/components/NoteEntry.tsx +151 -0
  113. package/templates/notes/src/components/Notes.tsx +163 -0
  114. package/templates/notes/src/components/Setup.tsx +44 -0
  115. package/templates/notes/src/components/SignIn.tsx +112 -0
  116. package/templates/notes/src/components/icons.tsx +54 -0
  117. package/templates/notes/src/index.css +105 -0
  118. package/templates/notes/src/lib/notes.ts +68 -0
  119. package/templates/notes/src/lib/usebecky.ts +9 -0
  120. package/templates/notes/src/main.tsx +22 -0
  121. package/templates/notes/src/vite-env.d.ts +6 -0
  122. package/templates/notes/tsconfig.json +19 -0
  123. package/templates/notes/usebecky.template.json +34 -0
  124. package/templates/notes/vite.config.ts +10 -0
  125. package/templates/saas/README.md +69 -0
  126. package/templates/saas/_env.example +10 -0
  127. package/templates/saas/_gitignore +11 -0
  128. package/templates/saas/app/(app)/account/ManageBilling.tsx +26 -0
  129. package/templates/saas/app/(app)/account/page.tsx +71 -0
  130. package/templates/saas/app/(app)/dashboard/Projects.tsx +227 -0
  131. package/templates/saas/app/(app)/dashboard/page.tsx +21 -0
  132. package/templates/saas/app/(app)/layout.tsx +29 -0
  133. package/templates/saas/app/(app)/premium/page.tsx +62 -0
  134. package/templates/saas/app/auth/callback/page.tsx +33 -0
  135. package/templates/saas/app/globals.css +143 -0
  136. package/templates/saas/app/icon.svg +1 -0
  137. package/templates/saas/app/layout.tsx +20 -0
  138. package/templates/saas/app/page.tsx +87 -0
  139. package/templates/saas/app/pricing/Plans.tsx +133 -0
  140. package/templates/saas/app/pricing/TestCardHint.tsx +18 -0
  141. package/templates/saas/app/pricing/page.tsx +21 -0
  142. package/templates/saas/app/setup/page.tsx +34 -0
  143. package/templates/saas/app/sign-in/SignInForm.tsx +195 -0
  144. package/templates/saas/app/sign-in/page.tsx +21 -0
  145. package/templates/saas/brand.ts +10 -0
  146. package/templates/saas/components/AppNav.tsx +45 -0
  147. package/templates/saas/components/Logo.tsx +22 -0
  148. package/templates/saas/components/SiteHeader.tsx +50 -0
  149. package/templates/saas/components/Status.tsx +15 -0
  150. package/templates/saas/lib/session.ts +26 -0
  151. package/templates/saas/lib/usebecky.ts +11 -0
  152. package/templates/saas/next-env.d.ts +5 -0
  153. package/templates/saas/next.config.ts +5 -0
  154. package/templates/saas/package.json +26 -0
  155. package/templates/saas/postcss.config.mjs +3 -0
  156. package/templates/saas/tsconfig.json +21 -0
  157. package/templates/saas/usebecky.template.json +31 -0
@@ -0,0 +1,143 @@
1
+ # Realtime
2
+
3
+ One WebSocket per client carries everything: table changes, broadcast and presence. It opens on first use, closes about 1 s after the last subscription stops, reconnects with backoff, resubscribes after reconnecting and switches identity when the user signs in, refreshes or signs out.
4
+
5
+ ## 1. Table changes
6
+
7
+ ### Enable realtime for the table first
8
+
9
+ Add the table to `usebecky/config.json` and run `npx usebecky config push` yourself (`{"realtime": {"tables": ["messages"]}}`; `config pull` writes the file first). Or Dashboard → Realtime → toggle the table. The table needs a primary key. Migrations cannot enable it. Until enabled, subscriptions fail with `realtime_not_enabled`.
10
+
11
+ ### Subscribe
12
+
13
+ ```ts
14
+ import { baas } from './lib/usebecky'
15
+
16
+ const roomId = 42
17
+ const messages: { id: string; room_id: number; body: string }[] = []
18
+
19
+ const unsubscribe = baas.realtime.subscribe('messages', {
20
+ event: 'INSERT', // 'INSERT' | 'UPDATE' | 'DELETE' | '*' (default)
21
+ filter: `room_id=eq.${roomId}`, // optional, one condition
22
+ onSubscribed: () => console.log('live'),
23
+ onError: (error) => console.error(error.code, error.message, error.hint),
24
+ }, (change) => {
25
+ if (change.event === 'INSERT' && change.new) messages.push(change.new)
26
+ })
27
+ unsubscribe() // when you're done listening
28
+ // Short form: baas.realtime.subscribe('messages', (change) => {})
29
+ ```
30
+
31
+ Filters: `column=op.value` with `eq`, `neq`, `gt`, `gte`, `lt`, `lte`, or `column=in.(a,b,c)` (1 to 100 values, quote values with commas: `in.("a,b",c)`). One filter per subscription; subscribe twice or filter in the callback for more.
32
+
33
+ ### What `change` looks like
34
+
35
+ ```json
36
+ // INSERT
37
+ { "event": "INSERT", "table": "messages", "new": { "id": "9c1d...", "room_id": 42, "user_id": "0b6f...", "body": "hi", "created_at": "2026-11-12T10:00:00.120Z" }, "old": null, "commit_timestamp": "2026-11-12T10:00:00.121Z" }
38
+ // UPDATE: old holds only the primary key
39
+ { "event": "UPDATE", "table": "messages", "new": { "id": "9c1d...", "room_id": 42, "user_id": "0b6f...", "body": "hi (edited)", "created_at": "2026-11-12T10:00:00.120Z" }, "old": { "id": "9c1d..." }, "commit_timestamp": "2026-11-12T10:00:05.003Z" }
40
+ // DELETE: new is null, old holds only the primary key
41
+ { "event": "DELETE", "table": "messages", "new": null, "old": { "id": "9c1d..." }, "commit_timestamp": "2026-11-12T10:01:00.500Z" }
42
+ ```
43
+
44
+ - `new` is the row re-read with the subscriber's own permissions at delivery time; two quick updates may both show the latest state.
45
+ - Delivery follows RLS: subscribers only receive rows their SELECT policies allow. Signed-out subscribers receive what `anon` may see. DELETE is checked against the old row when it fits in a notification (about 8 KB); for larger rows, any SELECT policy that applies to the subscriber's role lets the primary key through.
46
+ - Do not use `old` for previous column values; it only identifies the row.
47
+
48
+ ### Patterns
49
+
50
+ ```ts
51
+ // src/live.ts: two React hooks
52
+ import { useEffect, useState } from 'react'
53
+ import { baas } from './lib/usebecky'
54
+
55
+ type Todo = { id: string; title: string; done: boolean }
56
+ type Message = { id: string; room_id: number; body: string }
57
+
58
+ // Simplest and always correct: refetch on any change
59
+ export function useLiveTodos() {
60
+ const [todos, setTodos] = useState<Todo[]>([])
61
+ useEffect(() => {
62
+ const load = () => baas.from('todos').select('id, title, done').order('created_at').then(({ data, error }) => { if (!error) setTodos(data) })
63
+ load()
64
+ return baas.realtime.subscribe('todos', load) // the unsubscribe function is the effect's cleanup
65
+ }, [])
66
+ return todos
67
+ }
68
+
69
+ // Patch local state by primary key (load the initial rows with a normal query, then apply changes)
70
+ export function useLiveMessages(roomId: number, initial: Message[]) {
71
+ const [messages, setMessages] = useState<Message[]>(initial)
72
+ useEffect(() => baas.realtime.subscribe('messages', { filter: `room_id=eq.${roomId}` }, (c) => {
73
+ setMessages((list) => {
74
+ if (c.event === 'INSERT') return [...list, c.new!]
75
+ if (c.event === 'UPDATE') return list.map((m) => (m.id === c.new!.id ? c.new! : m))
76
+ return list.filter((m) => m.id !== c.old!.id)
77
+ })
78
+ }), [roomId])
79
+ return messages
80
+ }
81
+ ```
82
+
83
+ Load the initial rows with a normal query, then apply changes. Always return or call the unsubscribe function on cleanup. Typed clients (`createClient<Database>`) type `change.new` from the table.
84
+
85
+ ## 2. Broadcast and presence (channels)
86
+
87
+ ```ts
88
+ import { baas } from './lib/usebecky'
89
+
90
+ const roomId = 42
91
+ const room = baas.realtime.channel(`room:${roomId}`) // joins; same object for the same name
92
+ const offTyping = room.on<{ name: string }>('typing', (payload, event) => console.log(`${payload.name}: ${event}`)) // '*' for every event; returns a stop function
93
+ room.send('typing', { name: 'Ada' }) // others only: the sender does not receive it
94
+ room.track({ name: 'Ada', status: 'online' }) // your presence; re-sent after reconnects
95
+ room.onPresence<{ name: string; status: string }>((state) => console.log('online:', Object.values(state).map((p) => p.name)))
96
+ // state: { "c3f1...": { "name": "Ada", "status": "online" }, "9a2e...": { "name": "Grace", "status": "away" } }
97
+ console.log(room.presenceKey, room.joined) // your key in state (null until joined), true once joined
98
+ room.onError((error) => console.warn(error.code, error.message))
99
+ room.untrack()
100
+ offTyping()
101
+ room.leave() // stops all listeners; create the channel again to rejoin
102
+ ```
103
+
104
+ Security: channels are not protected by RLS. Anyone with the publishable key can join any channel name and read or send messages. Never broadcast private data; broadcast ids or "something changed" signals and let clients load the data with a query (RLS applies there). For private live data use table changes.
105
+
106
+ Messages sent before the join completes are queued and sent once joined.
107
+
108
+ ## 3. Limits
109
+
110
+ | Limit | Value | Error code |
111
+ |---|---|---|
112
+ | Subscriptions per connection | 100 | `too_many_subscriptions` |
113
+ | Channels per connection | 100 | `too_many_channels` |
114
+ | Broadcast payload | about 7.5 KB | `payload_too_large` |
115
+ | Presence state per client | 2 KB | `presence_too_large` |
116
+ | Messages sent per connection | 100 per second (extra are dropped) | `rate_limited` |
117
+ | Broadcast event name | 1 to 100 characters | `invalid_event` |
118
+
119
+ Throttle typing indicators and cursor updates to a few per second.
120
+
121
+ ## 4. Status, Node and cleanup
122
+
123
+ ```ts
124
+ import { baas } from './lib/usebecky'
125
+
126
+ console.log(baas.realtime.status) // 'idle' | 'connecting' | 'open' | 'reconnecting'
127
+ baas.realtime.disconnect() // drop every subscription and channel
128
+ ```
129
+
130
+ Runtimes without a global `WebSocket` (Node before 22) need one: `createClient(url, key, { realtime: { WebSocket } })` with `import WebSocket from 'ws'`. Server code (`usebecky/server`) has no realtime; use a browser-style client in scripts if needed.
131
+
132
+ ## 5. Errors
133
+
134
+ Subscription errors go to `onError` (or a console warning `Realtime subscription to "x" failed: ...`):
135
+
136
+ | Code | Cause |
137
+ |---|---|
138
+ | `realtime_not_enabled` | Enable realtime for the table |
139
+ | `table_not_found` | Table name typo or not in `public` |
140
+ | `column_not_found` | Filter column does not exist |
141
+ | `invalid_filter` | Filter syntax; use `col=eq.value` |
142
+ | `invalid_event` | Event must be `*`, `INSERT`, `UPDATE` or `DELETE` |
143
+ | `realtime_unavailable` | Temporary; subscribe again later |
@@ -0,0 +1,82 @@
1
+ # Scheduled jobs and database webhooks
2
+
3
+ Dashboard features with no SDK calls in the app: set them up in the dashboard (Scheduled jobs; Settings → Webhooks → Database changes); there is no customer API or CLI for them. To run your own code, use a Function (`references/functions.md`): a job can "Run a function" and a database webhook can send changes to a function instead of a URL. Guides: https://usebecky.com/docs/guides/scheduled-jobs and https://usebecky.com/docs/guides/webhooks.
4
+
5
+ ## Scheduled jobs (cron)
6
+
7
+ A job = a schedule + a timezone (IANA name, default `UTC`) + one action:
8
+
9
+ - **Database function**: a function in `public` callable without arguments, run as the project owner (RLS doesn't apply) with a timeout (1-60 s, default 30). Its return value (first 1 KB) shows in the run history. No retries. Revoke it from app roles so visitors can't call it through RPC.
10
+ - **URL**: a signed `POST` to your server (https; timeout 1-60 s, default 10; 5xx, 408, 429, timeouts and network errors retried 0-5 times, default 2, after 5 s, 15 s, 45 s, ...). Success = any 2xx. Verify it with the job's own secret (`whsec_...`, shown on the job).
11
+
12
+ Schedules: every 1/2/3/5/10/15/20/30 minutes, hourly at :MM, daily / weekly / monthly at HH:MM, or a 5-field cron (`0 3 * * *` = every day at 03:00; `@daily`, `@hourly`, ... work too). A job never overlaps itself; runs missed while usebecky was down run once.
13
+
14
+ ```sql
15
+ -- usebecky/migrations/<version>_delete_old_rows.sql, applied with npx usebecky db push.
16
+ -- Then Scheduled jobs → New job → Database function → delete_old_rows.
17
+ create or replace function public.delete_old_rows() returns integer language plpgsql as $$
18
+ declare deleted integer;
19
+ begin
20
+ delete from public.logs where created_at < now() - interval '30 days';
21
+ get diagnostics deleted = row_count;
22
+ return deleted;
23
+ end $$;
24
+ revoke execute on function public.delete_old_rows() from public, anon, authenticated;
25
+ ```
26
+
27
+ ```ts
28
+ // app/api/jobs/daily-digest/route.ts: a Next.js route called by a URL job (server only).
29
+ // Body: { id: 'evt_run_...', type: 'job.run', created_at, project,
30
+ // data: { job: { id, name }, run: { id, trigger: 'schedule' | 'manual', scheduled_for, attempt }, payload } }
31
+ // Headers: usebecky-signature (t=<unix>,v1=<hex>), usebecky-event-type: job.run, usebecky-job-id, usebecky-run-id
32
+ import { verifyEvent } from 'usebecky/server'
33
+
34
+ async function sendDailyDigest(payload: unknown) {
35
+ console.log('daily digest', payload) // your work: query data, send emails, ...
36
+ }
37
+
38
+ export async function POST(request: Request) {
39
+ const rawBody = await request.text() // verify the raw body before parsing it
40
+ const event = verifyEvent(rawBody, request.headers.get('usebecky-signature'), process.env.USEBECKY_JOB_SECRET) // throws if not from usebecky
41
+ await sendDailyDigest(event.data.payload)
42
+ return Response.json({ ok: true }) // answer 2xx within the timeout, or the run fails (and is retried)
43
+ }
44
+ ```
45
+
46
+ Other languages verify the same way as webhooks (HMAC-SHA256 over `"<t>.<raw body>"` with the job's secret; Python example in `http-api.md`). A Swift or Kotlin app never receives these calls: they go to a server.
47
+
48
+ ## Database webhooks
49
+
50
+ A webhook = a `public` table + changes (insert, update, delete; default all) + a URL, with an optional filter (one condition in realtime syntax like `status=eq.paid`, checked on the new row, the old row for deletes) and a column list. Each change is stored in the project database in the same transaction (durable while usebecky is down; rolled-back changes are never sent), then delivered with the webhook signing and retries (10 s, 1 m, 5 m, 30 m, 2 h). Verify with the webhook's own secret:
51
+
52
+ ```ts
53
+ // app/api/db-webhooks/route.ts: a Next.js route that receives database webhooks (server only)
54
+ import { verifyEvent } from 'usebecky/server'
55
+
56
+ export async function POST(request: Request) {
57
+ const rawBody = await request.text()
58
+ const event = verifyEvent(rawBody, request.headers.get('usebecky-signature'), process.env.USEBECKY_DB_WEBHOOK_SECRET) // throws if not from usebecky
59
+ // event.type: 'db.row.inserted' | 'db.row.updated' | 'db.row.deleted'
60
+ // event.data: { table: 'orders', record: { id: 42, status: 'paid' } | null, old_record: { id: 42, status: 'new' } | null }
61
+ if (event.type === 'db.row.updated' && event.data.record?.status === 'paid') console.log('order paid', event.data.record.id)
62
+ return Response.json({ ok: true })
63
+ }
64
+ ```
65
+
66
+ - Deduplicate by `event.id` (same on every retry); one event per changed row; `TRUNCATE` sends nothing.
67
+ - Use them to react to data changes on your server (send an email with `baas.emails.send`, a push with `baas.push.send`). For live updates inside an app use realtime instead (`realtime.md`).
68
+
69
+ ## Set them up in the dashboard
70
+
71
+ Write the database function (as a migration: `npx usebecky db new <name>`, then `npx usebecky db push`) or the server route, then tell the user the exact dashboard steps:
72
+
73
+ - **Scheduled job:** Scheduled jobs → New job → name, schedule (every N minutes, hourly at :MM, daily / weekly / monthly at a time, or a cron expression; timezone), and what it runs: **Database function** (pick it; functions with required arguments are refused) or **Call a URL** (your server route; copy the job's **Signing secret** into the server's env as the secret `Events` checks). Optional payload, timeout, retries. **Run now** tests it; the run history keeps the last 50 runs.
74
+ - **Database webhook:** Settings → Webhooks → Database changes → Add → table, events (insert, update, delete), your URL, optional filter (realtime syntax like `status=eq.paid`) and columns. Copy its signing secret to the server; **Send test** posts a sample `db.row.inserted`.
75
+
76
+ Errors the dashboard shows: `invalid_schedule`, `schedule_never_runs`, `invalid_timezone`, `function_not_found` (lists close matches), `function_needs_arguments`, `invalid_url`, `table_not_found`, `invalid_filter`.
77
+
78
+ ## Plan limits and events
79
+
80
+ - Jobs per project: Free 1, Pro 5, Business 50 (`402 quota_exceeded`); Free jobs run at most hourly, Pro and Business every minute (`402 plan_required` names the plan needed).
81
+ - Database webhooks per project: Free 1, Pro 5, Business 50 (`402 quota_exceeded`).
82
+ - `job.failed` (developer webhook event): `{ job: { id, name, type }, run: { id, status, error, output, http_status, attempts, ... } }` after the last retry fails.