planetscale/database-js
A Fetch API-compatible PlanetScale database driver observed · 2026-08-28
Health v2 · maintenance only
90/100
- Activity 96
- Release rhythm 76
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 1
- age_days: 1498
- days_rel: 161
- days_push: 26
- n_releases_24m: 2
Adoption not part of the score
1198 stars · 42 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Fetch API-compatible database driver for PlanetScale Vitess/MySQL databases, designed for serverless and edge compute platforms like Cloudflare Workers and Vercel Edge Functions. It executes SQL queries over HTTP instead of TCP, with support for transactions and connection factories.
Use cases
- query a PlanetScale MySQL database from Cloudflare Workers
- connect to MySQL from Vercel Edge Functions where TCP is blocked
- run SQL transactions in serverless functions over HTTP
- execute parameterized queries against Vitess from JavaScript
- use a database URL to configure MySQL connections in edge runtimes
When to choose
- deploying on edge/serverless platforms that disallow outbound TCP connections
- using PlanetScale Vitess/MySQL with JavaScript or TypeScript
- you need lightweight HTTP-based query execution without a persistent connection pool
When to avoid
- connecting to a non-PlanetScale MySQL database
- you need raw TCP MySQL protocol features or full driver compatibility
- long-running servers where a traditional MySQL client with connection pooling is better
Facets
library · maturity active
database-driver http-client databases backend web-development cloud serverless cross-platform mysql vitess planetscale edge-computing fetch-api typescript serverless-database serverless nodejs
9 sources
- readme: https://github.com/planetscale/database-js · fetched 2026-08-28 · c42edd7f115d
- homepage: https://planetscale.com/docs/tutorials/planetscale-serverless-driver · fetched 2026-08-29 · 662e7cded19a
- site_page: https://planetscale.com/docs · fetched 2026-08-29 · 1348e3665507
- site_page: https://planetscale.com/docs/vitess · fetched 2026-08-29 · 5663c637c63f
- site_page: https://planetscale.com/docs/postgres · fetched 2026-08-29 · af3b62f4c6cb
- site_page: https://planetscale.com/docs/api/reference/getting-started-with-planetscale-api · fetched 2026-08-29 · dddc53013bd5
- site_page: https://planetscale.com/docs/cli · fetched 2026-08-29 · 8a2f8220c345
- site_page: https://planetscale.com/docs/vitess/pricing · fetched 2026-08-29 · f12bda322323
- site_page: https://planetscale.com/docs/vitess/tutorials/planetscale-serverless-driver-node-example · fetched 2026-08-29 · 3685e79b8dd0
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| planetscale/database-js | main | 90 |
For agents
markdown · JSON · MCP: product_card(name="planetscale/database-js")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem