Skip to content

Add Convex as a provider and engine - #414

Merged
broisnees merged 1 commit into
nightlyfrom
feat/convex
Nov 24, 2026
Merged

broisnees merged 1 commit into
nightlyfrom
feat/convex

Conversation

@broisnees

Copy link
Copy Markdown
Collaborator

Convex works in Stroke two ways:

  • Convex card (OAuth): sign in with Convex in the browser, pick a deployment, and Stroke creates a deploy key named "Stroke" on it. The card uses Stroke's Convex OAuth app (client 573ebae448004ff7). The code exchange goes through the stroke.click proxy (Proxy the Convex OAuth token exchange stroke-web#110, deployed), which holds CONVEX_CLIENT_SECRET.
  • Convex (URL + key): a manual form for any deployment URL with a deploy or admin key, including self-hosted backends and npx convex dev --local.

Once connected:

  • Sidebar and grid: tables with document counts, newest documents first.
  • Editing: filters, inline edits, insert, replace and delete, through the dashboard's _system/frontend functions. Int64 values round-trip exactly.
  • Query tab: run deployed functions with JSON args, or read a table with users.limit(n) and users.get(id). Read-only mode and the MCP read level refuse function calls.

Also fixed:

  • Bind variables are off for Convex, so messages:list is no longer read as a :list variable.
  • A rejected provider token now names that provider's own fields.

Testing

  • Tests: npm test passes (2003 node tests, 20 DOM tests), svelte-check shows 0 errors, cargo test --lib passes (514 tests).
  • App run: I drove the real app against a local Convex backend: connect, sidebar, filter, inline edit, int64 edit, insert, delete, running a function, and read-only blocking a mutation.
  • OAuth app: I tested it against Convex directly. The code exchange with secret and PKCE returned a team token. The token listed the team's deployment and created a deploy key, and the key read the deployment's table mapping.

release:skip: this ships in the same nightly as the native-feel PR that follows.

The Convex card signs in with Convex's OAuth app flow (team scope), lists every
cloud deployment on the authorized team, and creates a deploy key named Stroke
on the one I pick. The code exchange goes through the stroke.click token proxy,
which holds CONVEX_CLIENT_SECRET. Convex (URL + key) in the type list connects
any deployment by URL and deploy or admin key, including self-hosted backends.

Once connected, tables and document counts show in the sidebar, and the grid
pages documents newest first with filters, inline edits, insert, replace and
delete through the dashboard's _system/frontend functions. Int64 values round
trip exactly. The console runs deployed functions with JSON args or reads a
table with users.limit(n) and users.get(id). Read-only mode and the MCP server's
read-only level refuse function calls, since a function can write.

Also: bind variables are off for Convex (messages:list read as :list), and a
rejected token names the provider's own fields instead of Upstash's.
@broisnees broisnees added the release:skip Merge into nightly without a version bump (docs, CI, chores) label Nov 24, 2026
@broisnees
broisnees merged commit e7875cf into nightly Nov 24, 2026
1 check passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release:skip Merge into nightly without a version bump (docs, CI, chores)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant