Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

lunora-setup-hyperdrive

Skill by anolilab

Connects an existing, externally owned Postgres or MySQL database to a Lunora app through Cloudflare Hyperdrive. Aimed at developers who want to query or sync legacy data from Lunora actions.

  • Score 71
  • 306 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install lunora-setup-hyperdrive

Built from the published package, never by AI.

git clone --depth 1 https://github.com/anolilab/lunora /tmp/lunora && mkdir -p ~/.claude/skills && cp -r /tmp/lunora/packages/cli/skills/lunora-setup-hyperdrive ~/.claude/skills/lunora-setup-hyperdrive

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install lunora-setup-hyperdrive in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill sets up @lunora/hyperdrive, which exposes a Cloudflare Hyperdrive binding as a driver-agnostic ctx.sql client. The client is available only inside an action and is not reactive, so subscriptions do not re-run when the external rows change. It covers installing a driver (postgres, pg or mysql2), creating the HYPERDRIVE binding with lunora dev, lunora deploy or wrangler hyperdrive create, regenerating types, and wiring the client with the app builder's .hyperdrive() method.

To make external rows live, the skill describes two options: writing rows into a defineSchema table through a mutation, or using a .source() table that polls an external query and materializes the result. It is meant for developers who need to query or sync a database that Lunora does not own. For Lunora-owned tables stored in Postgres or MySQL, the source points to a different skill.

Written from the project's SKILL.md and checked against it.

What it can do

  • ctx.sql clientDriver-agnostic SQL client available only inside an action, built with createHyperdrive and an adapter.
  • Hyperdrive binding setupAdds a HYPERDRIVE binding through lunora dev and lunora deploy, or via wrangler hyperdrive create.
  • App builder wiringSupplies the client to the app builder with .hyperdrive() using a lazily loaded driver.
  • Projection from an actionWrites external rows into a defineSchema table through a mutation so live queries update.
  • .source() ingest tablePolls an external query on the shard alarm and keeps a read-only table in sync with subscribers.

What you need

  • Cloudflare account with Hyperdrive access
  • An existing Postgres or MySQL database
  • A Postgres driver (postgres or pg) or mysql2
  • Node.js for the Lunora project
  • pglite packages for local development with the embedded database

Try asking

  • Connect my existing Postgres database to my Lunora app through Hyperdrive
  • Query the legacy orders table from a Lunora action
  • Sync rows from an external messages table into a Lunora source table

Good to know

  • ctx.sql is not reactive and is available only inside actions.
  • Hyperdrive caches read results by default and writes do not invalidate them.
  • The default full-pull source mode works up to about 10k rows.
  • A source table cannot also be .global().

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: packages/cli/skills/lunora-setup-hyperdrive/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to lunora-setup-hyperdrive

All alternatives →
hugging-face-datasetssickn33
94

Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.

AAA Skill 50k
db-repairgarrytan
94

Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.

AAA Skill 34k
alloydb-basicsgoogle
94

Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.

AAA Skill 26k
clickhouse-logs-queriessupabase
94

Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.

AAA Skill 116k
fix-slow-queriespaperclipai
94

Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.

AAA Skill 119k
prisma-8prisma
94

Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.

AAA Skill 48k

Compare with hugging-face-datasets, db-repair or alloydb-basics

lunora-setup-hyperdrive: common questions

Can ctx.sql be used in queries or mutations?

No. ctx.sql exists only on ActionCtx, and the hyperdrive_outside_action lint flags use in a query or mutation.

Do writes through ctx.sql update live subscriptions?

No. Lunora cannot see the external database, so subscriptions do not re-run when those rows change.

Does this replace defineSchema for my data?

No. The source says not to use it to replace defineSchema, because realtime, OCC and the other Lunora features would be lost.

How do I install lunora-setup-hyperdrive?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is lunora-setup-hyperdrive free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is lunora-setup-hyperdrive safe to use?

It scores 71 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to lunora-setup-hyperdrive?

Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.

lunora-setup-hyperdrive Install

Add to stack

Loading.