The smart query engine for modern APIs

Ship your datasource. We handle the rest.

QueryBee is the developer platform that caches, optimizes, and scales your APIs on a global edge network. Connect your datasource and go live in under a minute.

bash

$ curl -X GET "https://querybee.kuttystack.workers.dev/api/v1/data"

-H "Authorization: Bearer qb_live_key_99x"

-H "Content-Type: application/json"

Features

Everything you need to turn data into APIs.

From connection string to global edge API, we manage the infrastructure so you can focus on building.

Instant API Generation

Connect your database or sheet and get instant REST endpoints. Zero boilerplate required.

Global Edge Caching

Serve sub-millisecond responses directly from the edge, automatically cached and invalidated.

Smart Query Engine

Filtering, pagination, and vector search built right in so you don't write custom Query.

Built-in Observability

Real-time query logs, latency metrics, and edge cache hit ratios with zero setup.

API Keys & Security

Issue scoped API keys, enforce rate limits, and control access per environment instantly.

Encrypted Secrets & Vars

Database credentials and environment variables stay encrypted and secure at every edge location.

The dashboard

Every API, in one place.

API Keys, inspect logs, and roll back, all from a dashboard that stays out of your way.

QueryBee Dashboard

Generate your first API in minutes.

Connect your datasource and QueryBee takes care of the build, the CDN, and the scaling. Free to start.

Features

Built for instant data access.

Everything QueryBee does, in one place. Connect a datasource and the platform handles the rest.

Instant API Generation

Connect your database or sheet and get instant REST endpoints. Zero boilerplate required.

Global Edge Caching

Serve sub-millisecond responses directly from the edge, automatically cached and invalidated.

Smart Query Engine

Filtering, pagination, and vector search built right in so you don't write custom Query.

Built-in Observability

Track query execution times, edge cache hit ratios, and real-time query logs.

API Keys & Management

Manage scoped API keys, enforce rate limits, and secure environment variables effortlessly.

Encrypted Secrets & Vars

Database credentials and environment variables stay encrypted and secure at every edge location.

Documentation

QueryBee Client SDK

Type-safe React hooks for QueryBee with edge KV caching and reactive revalidation.

1. Installation

Install the official client package using your preferred package manager:

terminal
# npm
npm install @kuttystack/querybee-client

# pnpm
pnpm add @kuttystack/querybee-client

# bun
bun add @kuttystack/querybee-client

2. Provider Setup

Wrap your root component with QueryBeeProvider to initialize the client context and global API key authorization.

App.tsx
import React from "react";
import { QueryBeeProvider } from "@kuttystack/querybee-client";

export default function App({ children }: { children: React.ReactNode }) {
  return (
    <QueryBeeProvider 
      baseUrl="https://api.querybee.dev" 
      apikey="qb_live_8f3a11b2..."
    >
      {children}
    </QueryBeeProvider>
  );
}

Fetching Data

Use useFindOne and useFindMany for reactive, edge-cached queries with automated deduplication.

UserProfile.tsx
import { useFindMany, useFindOne } from "@kuttystack/querybee-client";

interface User {
  id: string;
  name: string;
  role: string;
}

export function UserProfile({ userId }: { userId: string }) {
  // Fetch a single record
  const { data: user, isLoading, error } = useFindOne<User>("users", { id: userId });

  // Fetch a collection with filtering
  const { data: developers, total } = useFindMany<User>("users", {
    where: { role: "developer" },
  });

  if (isLoading) return <div>Loading user profile...</div>;
  if (error) return <div>Error loading user data.</div>;

  return (
    <div>
      <h1>{user?.name}</h1>
      <p>Role: {user?.role}</p>
      
      <h2>Developers ({total ?? 0})</h2>
      <ul>
        {developers?.map((dev) => (
          <li key={dev.id}>{dev.name}</li>
        ))}
      </ul>
    </div>
  );
}

Updating Data

Use useUpdate to run pessimistic mutations that guarantee edge cache invalidation across affected list queries.

EditUser.tsx
import { useUpdate } from "@kuttystack/querybee-client";

export function EditRole({ userId }: { userId: string }) {
  const [updateUser, { isLoading }] = useUpdate("users");

  const handlePromote = async () => {
    try {
      await updateUser({
        id: userId,
        data: { role: "admin" },
      });
      alert("Role updated successfully!");
    } catch (err) {
      console.error("Mutation failed:", err);
    }
  };

  return (
    <button onClick={handlePromote} disabled={isLoading}>
      {isLoading ? "Updating..." : "Promote to Admin"}
    </button>
  );
}

Deleting Data

Use useDelete to remove records and update cache states immediately.

DeleteUser.tsx
import { useDelete } from "@kuttystack/querybee-client";

export function DeleteUserButton({ userId }: { userId: string }) {
  const [deleteUser, { isLoading }] = useDelete("users");

  const handleDelete = async () => {
    if (confirm("Permanently delete this user?")) {
      await deleteUser({ id: userId });
    }
  };

  return (
    <button onClick={handleDelete} disabled={isLoading}>
      {isLoading ? "Deleting..." : "Delete User"}
    </button>
  );
}

API Reference

Hook Parameters Returns
useFindMany<T> (table, options) { data, total, isLoading, mutate }
useFindOne<T> (table, { id }) { data, isLoading, error }
useUpdate<T> (table, config?) [updateFn, { isLoading, error }]
useDelete<T> (table, config?) [deleteFn, { isLoading, error }]
Pricing

Start free. Scale with your data.

Simple, predictable pricing based on query volume and edge caching. Cancel anytime.

Hobby

For side projects and testing.

$0/ mo
Start Free
  • 1 Connected Datasource
  • 100,000 Edge Queries/mo
  • Basic Edge Caching
  • Community support

Pro

Popular

For production apps and growing engineering teams.

$29/ mo
Start Free Trial
  • Unlimited Datasources
  • 5,000,000 Edge Queries/mo
  • Smart Vector Search
  • Real-time Observability
  • Priority Email Support

Enterprise

For organizations with custom database requirements.

Custom
Contact Sales
  • Custom Query Volume
  • Dedicated Edge Cache Regions
  • SSO, SAML & Audit Logs
  • 99.99% Uptime SLA

Frequently asked questions

How does QueryBee achieve sub-millisecond responses?

QueryBee places intelligent cache nodes at edge locations globally, serving cached API responses without querying your main database repeatedly.

What databases are supported?

PostgreSQL, MySQL, SQLite, Cloudflare D1, MongoDB, Supabase, and custom REST API endpoints.

Is there a free tier?

Yes. The Hobby plan is free forever with 100,000 monthly edge queries and 1 connected datasource.

Changelog

What's new in QueryBee

Every improvement we deliverd, in one place.

Jul 21, 2026

QueryBee 1.0 is now live

The global API platform is officially live. Turn your datasources into high-performance, edge-cached APIs with zero infrastructure overhead.

About us

Making data access effortlessly fast.

QueryBee is built by developers obsessed with performance, developer experience, and edge computing.

QueryBee started with a common engineering bottleneck: building custom API layers and boilerplate queries every time a database needed to serve front-end or mobile applications.

We built QueryBee to turn datasources into instant, secure, edge-cached APIs so teams can focus on building products, not backend query infrastructure.

<1ms

Edge Latency

98%+

Cache Hit Ratio

100M+

Queries Served

Global

Edge Network

Blog

The QueryBee blog

Engineering deep dives, API design best practices, and product updates.

← Back to blog

Engineering · 6 min read

How QueryBee achieves sub-millisecond edge cache hits

Database queries across regions are historically plagued by round-trip network latency. When an application queries a central database, users wait hundreds of milliseconds just for the connection to establish.

The approach

QueryBee acts as a smart caching edge layer. By inspecting query parameters, caching clean responses globally, and invalidating caches intelligently upon writes, QueryBee delivers query results in less than 1 millisecond.

What it means for your app

You keep your database intact. QueryBee connects seamlessly in front of it, reducing read load on your primary database by up to 98% while drastically speeding up API client response times.

Careers

Build the future of API platforms.

We are a remote team building developer infrastructure. Come join us.

Contact

Get in touch

Questions about QueryBee? We'd love to hear from you.

Sales

Talk to us about Enterprise tier.

sales@querybee.dev

Support

Get help with your QueryBee setup.

support@querybee.dev

Partnerships

Integrations and database partners.

partners@querybee.dev

Legal

Privacy Policy

Last updated July 2026.

Overview

By using QueryBee, you agree to the privacy practices outlined on this page. We prioritize data encryption and processing efficiency.

Your Data

QueryBee processes query data to operate edge caching and endpoint delivery. Encrypted environment variables and datasource credentials are protected with high-security isolation.

Contact

Reach our legal team at legal@querybee.dev.

Legal

Terms of Service

Last updated July 2026.

Terms of Service

By using QueryBee, you agree to these terms. We aim to keep our infrastructure reliable and predictable.

Legal

Security

Last updated July 2026.

Data Protection

All datasource connections, credentials, and API tokens managed by QueryBee are encrypted in transit and at rest using modern cryptographic standards.