UStackUStack
Bunny Database favicon

Bunny Database

Bunny Database is a SQLite-compatible, globally distributed SQL service that runs on bunny.net’s fast edge network, delivering low-latency, pay‑as‑you‑go databases that spin down when idle.

Bunny Database

What is Bunny Database?

What is Bunny Database?

Bunny Database is a fully managed, SQLite-compatible SQL service built to "just work" on bunny.net’s fast, global network. It lets you easily create and run databases close to your users, keeping latency low without forcing you to rearchitect your application as you grow.

Designed as a simple DBaaS (Database-as-a-Service), Bunny Database combines the familiarity of SQLite with the convenience of a cloud service. Databases spin down when idle, so you only pay for storage and the reads/writes you actually use. You can start with a single region and later add more regions across the globe to serve read traffic closer to your users.

Running on the same infrastructure that powers bunny.net’s content delivery platform, Bunny Database offers developers a fast, reliable, and cost-efficient way to handle read-heavy workloads such as catalogs, metadata, user profiles, and configuration data.

Key Features

  • SQLite-compatible database engine
    Build on a familiar SQL foundation. Bunny Database is based on SQLite semantics, making it easy to adopt with minimal learning curve and no custom query language.

  • Global, low-latency network
    Deployed on bunny.net’s global infrastructure, your databases can serve traffic from up to 41 regions, reducing round-trip times for users around the world.

  • Start in one region, add more later
    Launch your database in a single region and expand into additional regions as your user base grows. You can add read replicas in new locations without rearchitecting your application.

  • Automatic spin-down when idle
    When your database is idle, you only incur storage costs. This makes Bunny Database highly cost-efficient for workloads with variable or bursty traffic.

  • Pay-as-you-go, usage-based pricing
    Transparent pricing based on reads, writes, and storage:

    • Reads: $0.30 per billion rows
    • Writes: $0.30 per million rows
    • Storage: $0.10 per GB per active region (monthly) One primary region is billed continuously, while read replicas only add storage costs when serving traffic, metered by the hour.
  • Multiple official SDKs
    Integrate quickly with official libSQL SDKs for TypeScript/JavaScript, Go, Rust, and .NET (via bunny.net’s own .NET SDK). You can also interact with the database over HTTP for custom integrations.

  • Simple DBaaS control panel
    Create databases, connect your app, inspect data, and monitor performance in just a few clicks from an intuitive dashboard.

  • Built-in data inspection tools
    Explore tables, run SQL queries, and sanity-check your data directly in the UI without needing an external client.

  • Performance metrics and monitoring
    Track latency, traffic, and storage usage as your database scales, helping you optimize performance and costs.

  • Fast onboarding & free trial
    Start with a 14-day free trial with no credit card required and complete setup in about two minutes. While in public preview, Bunny Database is free to use.

  • Seamless fit with other bunny.net tools
    Combine Bunny Database with Edge Scripting (for running TypeScript/JavaScript at the edge) and Magic Containers (for always-on container workloads) to build full, globally distributed applications on one platform.

How to Use Bunny Database

  1. Sign up and start the free trial
    Create or log into your bunny.net account and navigate to Bunny Database. Start the 14-day free trial—no credit card is required.

  2. Create your first database

    • Open the Bunny Database section in the dashboard.
    • Click to create a new database.
    • Give your database a name.
    • Select an initial primary region (you can add more regions later).
    • Confirm to deploy. Your database is provisioned in one click.
  3. Generate access tokens

    • In the database settings, create access tokens for your applications.
    • Use these tokens as environment variables in your app or scripts.
    • You can create separate tokens for different environments (development, staging, production).
  4. Connect via SDKs or HTTP

    • Install one of the official SDKs (TS/JS, Go, Rust, .NET) or configure your own integration over HTTP.
    • Use the connection string and access token from the dashboard.
    • Initialize the client in your application code and start executing SQL queries.
  5. Design your schema and migrate data

    • Use standard SQL (CREATE TABLE, ALTER TABLE, etc.) to define your schema.
    • Seed your database with initial data for catalogs, user profiles, or configuration.
    • You can run SQL directly in the dashboard or through your application.
  6. Inspect and debug data in the UI

    • Navigate to the data inspection area in the dashboard.
    • View tables, run ad-hoc queries, and verify that your app is reading and writing data as expected.
  7. Add regions as you scale

    • When you start acquiring users in new geographies, add additional regions for read replicas.
    • Configure your application or SDK to take advantage of nearby read regions for lower latency.
  8. Monitor performance and usage

    • Use the metrics dashboard to monitor latency, traffic, and storage.
    • Adjust regions, query patterns, and data models to balance performance and cost.

Use Cases

1. Product catalogs and directories

Bunny Database is ideal for powering read-heavy product catalogs, location directories, and content indexes. You can store structured data—such as product details, store locations, or article metadata—and serve read traffic from regions close to your users. This keeps browsing experiences fast, even for global audiences.

2. Metadata and filtering layers

For applications that rely heavily on tags, categories, labels, and lookup data, Bunny Database provides a fast, consistent metadata layer. Store filters, categories, and relationships used by your APIs and frontends to quickly narrow down results. The pay-as-you-go model and idle spin-down help keep costs low for metadata-heavy workloads.

3. User profiles and preferences

Use Bunny Database to store user profiles, preferences, and lightweight account data. With multiple regions and low latency, profile reads and updates remain snappy for users regardless of location. This works well for SaaS apps, community platforms, and consumer web services that need fast access to profile information.

4. Application configuration and feature flags

Manage multi-tenant configuration, environment settings, and feature flags in Bunny Database. Centralized configuration stored in a globally distributed database allows your applications and services to read settings quickly from nearby regions, reducing startup and runtime latency.

5. Edge-powered applications with bunny.net

Combine Bunny Database with Edge Scripting and Magic Containers to build fully edge-native applications. For example:

  • Run TypeScript/JavaScript logic at the edge using Edge Scripting.
  • Store configuration, user context, or cached aggregates in Bunny Database.
  • Use Magic Containers for long-running or specialized workloads.
    This stack lets you build low-latency, globally distributed apps without managing infrastructure.

FAQ

Is Bunny Database compatible with SQLite?

Yes. Bunny Database is based on SQLite and is designed to be SQLite-compatible, which means you can use familiar SQL syntax and patterns. Official SDKs build on libSQL, allowing you to interact with the database similarly to how you would with a local SQLite database, but delivered as a managed cloud service.

How is Bunny Database priced?

Bunny Database uses a pay-as-you-go pricing model based on actual usage:

  • Reads: $0.30 per billion rows
  • Writes: $0.30 per million rows
  • Storage: $0.10 per GB per active region (per month) When idle, your database only incurs storage costs. One primary region is charged continuously, while read replicas only add storage costs when they are actively serving traffic, metered by the hour. During public preview, Bunny Database is free.

What regions are available?

You can choose from up to 41 regions worldwide when creating and expanding your Bunny Database deployment. You can start with a single primary region and add more regions over time to keep latency low for users in different parts of the world.

How do I connect my application to Bunny Database?

You can connect via official SDKs or HTTP:

  • Use libSQL SDKs for TypeScript/JavaScript, Go, and Rust, or bunny.net’s .NET SDK.
  • Configure your connection using the database endpoint and access token from the bunny.net dashboard.
  • For custom environments or tools, you can integrate over HTTP using the provided API.

What types of workloads is Bunny Database best suited for?

Bunny Database is optimized for read-heavy workloads, especially those based on structured data. Ideal use cases include:

  • Product catalogs and content directories
  • Metadata and filtering layers
  • User profiles and preferences
  • Application configuration and flags For heavily write-intensive, transactional, or complex relational workloads, you may want to evaluate whether Bunny Database’s architecture and global model fit your requirements.

Does Bunny Database integrate with other bunny.net products?

Yes. Bunny Database runs on the same platform as other bunny.net tools and can be paired with:

  • Edge Scripting for executing TypeScript/JavaScript logic close to users.
  • Magic Containers for always-on containerized workloads.
    Together, these services let you build fully distributed applications with global performance and a unified developer experience.