Open Source · Free Forever

Google Sheets
as a Database

Deploy a single Apps Script and turn any Google Sheet into a powerful, queryable REST API. Full CRUD, filtering, sorting, and schema management — no servers, no setup fees.

Try the Demo → View on GitHub

Powered by the tools you already use

Google Sheets
Google Apps Script
REST API

Features

Everything you need from a database

SheetsDB gives you the power of SQL-like operations on top of Google Sheets — without the complexity.

Powerful Querying

Filter with WHERE clauses, sort ascending or descending, paginate with LIMIT and OFFSET, and select only the columns you need.

Full Schema Management

Create and drop tables, add or remove columns, rename tables and columns, and change column types — all via API calls.

Spreadsheet-Native Storage

Your data lives in Google Sheets. Inspect it directly, share it with your team, and edit rows manually whenever you need to.

API

Simple REST API, instant results

One POST request. One JSON response. That's it.

terminal — fetch
// Query users older than 18, sorted by age descending
const res = await fetch('https://script.google.com/macros/s/.../exec', {
  method: 'POST',
  body: JSON.stringify({
    operation: 'select',
    table:     'users',
    where:     'age>18',
    sort:      '-age',
    limit:     50
  })
})

const data = await res.json()
// → [{ name: "Alice", age: 32 }, { name: "Bob", age: 25 }, ...]

Get Started

Three steps to your own SheetsDB

No servers, no billing, no DevOps. Just Google Sheets and one script.

1

Copy the Apps Script

Open Apps Script from your Google Sheet, paste the script, and hit Deploy. You get a URL in seconds.

2

Set your auth key

Configure a password in the script properties. Every API call includes this key — only you can access your data.

3

Start querying

Send POST requests from your app, your CLI, or anywhere. Create tables, insert rows, run queries — your sheet is now a database.

Turn your spreadsheet into a database today

Open source. No quotas. No vendor lock-in. Your data stays in your Google Sheets, and you stay in control.

Star on GitHub Launch Demo App →