lunora-setup-hyperdrive-global

Configures PlanetScale or Postgres/MySQL databases as reactive global storage for Lunora via Cloudflare Hyperdrive.

214|7|Updated May 29, 2026
One-click install
npx skills add https://github.com/anolilab/lunora --skill lunora-setup-hyperdrive-global
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lunora-setup-hyperdrive-global
Source: https://github.com/anolilab/lunora/tree/main/packages/cli/skills/lunora-setup-hyperdrive-global
Command: npx skills add https://github.com/anolilab/lunora --skill lunora-setup-hyperdrive-global

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @lunora/hyperdrive/global, postgres, mysql2.

What problem does it solve?

This skill solves the limitation of using D1 for large-scale global data by enabling PlanetScale or other Hyperdrive-compatible databases as a fully reactive backend for Lunora applications.

Core Features & Use Cases

  • Reactive Global Storage: Allows .global() tables to reside in Postgres or MySQL while maintaining real-time reactivity.
  • Seamless Migration: Provides a built-in migration path to move existing D1 global datasets to PlanetScale without data loss.
  • Use Case: Use this when your application requires larger datasets or unified billing through PlanetScale while keeping the developer experience of Lunora's type-safe, real-time backend.

Quick Start

Use the lunora-setup-hyperdrive-global skill to configure your project by installing the necessary drivers and wiring the hyperdriveGlobal method in your app composition.

Frequently Asked Questions about lunora-setup-hyperdrive-global

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate D1 global tables to PlanetScale using Cloudflare Hyperdrive?

You can migrate D1 global tables to PlanetScale by configuring Cloudflare Hyperdrive within your application's composition layer. This skill handles the dataset migration to external SQL engines while preserving real-time subscription functionality.

Can I use Postgres or MySQL as a reactive global storage backend for Lunora?

Yes, you can use Postgres or MySQL as a reactive global storage backend for Lunora. This skill configures external databases via Cloudflare Hyperdrive, allowing .global() tables to reside there while maintaining real-time reactivity.

Do I need to install specific database drivers to set up Hyperdrive for Lunora?

Yes, you need to install specific database drivers to set up Hyperdrive for Lunora. Your project requires the `postgres` and `mysql2` dependencies, along with the `@lunora/hyperdrive/global` package, to wire the backend correctly.

When should I move my Lunora application from D1 to an external SQL database?

You should move your Lunora application from D1 to an external SQL database when your application requires larger datasets or unified billing through PlanetScale. This approach overcomes D1's limitations for large-scale global data.

Does migrating Lunora global tables to PlanetScale break real-time subscriptions?

Migrating Lunora global tables to PlanetScale does not break real-time subscriptions. The skill ensures that .global() tables residing in Postgres or MySQL maintain their real-time reactivity and subscription functionality.

What is the best way to scale Cloudflare D1 datasets for large-scale Lunora apps?

The best way to scale Cloudflare D1 datasets for large-scale Lunora apps is to use Cloudflare Hyperdrive to connect to PlanetScale or Postgres. This skill enables a fully reactive backend while keeping Lunora's type-safe developer experience.