Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Datasette

$ datasette Community Low Risk
Simon Willison · Database & Data · Apache-2.0 · macos / linux / windows

datasette inspects SQLite files and serves them as instant faceted web applications and JSON/CSV HTTP APIs (datasette serve), outputs structured database metadata (datasette inspect), and packages immutable database containers (datasette package).

FCRS-1.0 Score
86 /100
Good
Medium Confidence
Zero-Friction Install
brew install datasette
CLI vs MCP Decision CLI Preferred vs MCP

datasette directly inspects local SQLite files and launches or packages HTTP JSON APIs locally; CLI execution is much cleaner than wrapping it in MCP.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
✓ Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 21 / 25

datasette inspect returns clean JSON directly to stdout, and serve exposes .json/.csv APIs, though serve is a long-running daemon.

  • datasette inspect emits JSON metadata; serve provides HTTP JSON/CSV endpoints
Trust & Safety 22 / 25

Read-only by design for SQLite data exploration, with -i (--immutable) mode and localhost default binding (127.0.0.1).

  • Read-only query execution and -i immutable SQLite mode
Setup & Portability 13 / 15

Installable via Homebrew, PyPI, and uvx across macOS, Linux, and Windows; datasette package requires Docker.

  • Available via Homebrew, PyPI, and uvx
Utility & Efficiency 14 / 15

Turns any SQLite file into an instant JSON API, SQL workbench, and deployable container with minimal boilerplate.

  • Combines metadata inspection, HTTP JSON API, and Docker packaging
Maintenance & Lineage 8 / 10

Maintained by Simon Willison (simonw/datasette) under Apache-2.0 with an active plugin ecosystem.

  • Official simonw/datasette repository under Apache-2.0
Docs & Verifiability 8 / 10

Thorough CLI reference at docs.datasette.io with clear flag descriptions.

  • Official CLI docs at docs.datasette.io

Security, Auth & Guardrails

Auth Modes
No Auth Config File Env API Key
Credential Storage

Read-only SQLite serving needs no credentials; optional plugin secrets or root tokens come from metadata.json / environment variables.

Side Effects
Read-Only Local Write
Cost & Quotas

100% free and Apache-2.0 open-source.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Datasette Agent Rules
- Use `datasette inspect <db>` for instant one-shot JSON metadata without starting a daemon.
- When starting `datasette serve`, pass `-i` (`--immutable`) for read-only safety and bind `-h 127.0.0.1`.
- Remember `datasette serve` is a foreground HTTP server; run it only when a live API/UI is needed.

Agent-Ready Command Recipes

Safe Read-Only Queries

Inspect SQLite schema and row counts as JSON
datasette inspect app.db

Emits a JSON summary of tables, columns, foreign keys, and row counts without starting a server.

Serve an immutable SQLite database locally
datasette serve -i app.db -h 127.0.0.1 -p 8001

Launches a read-only local web UI and .json/.csv API endpoint bound to localhost.

Strengths for Agents

  • + Read-only by default with -i (--immutable) mode for safe SQLite inspection.
  • + datasette inspect provides instant one-shot JSON table/column summaries.
  • + Every view exposed by datasette serve automatically supports .json and .csv formats.

Caveats & Pitfalls

  • ! datasette serve blocks the foreground process as an HTTP server until terminated.
  • ! datasette package and publish depend on external tools like Docker or cloud provider CLIs.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI