Buckets, scopes, collections — one picture

From Buckets to Diagrams: DbSchema for Couchbase

DbSchema connects to Couchbase over JDBC, infers the JSON field structure of your collections, and renders the bucket-scope-collection hierarchy as ER diagrams — with N1QL editing, data browsing, and shareable documentation in the same desktop app.

  • See scopes and collections laid out as a navigable diagram
  • Write N1QL with auto-completion for collection names and inferred fields
  • Inspect the document shapes your application really writes
  • Publish collection documentation for developer onboarding
Free Community Edition No signup required 15-day Architect trial included
Free Download

Trusted by teams at

Your Documents Have a Schema
Even If Couchbase Never Asked for One

Couchbase doesn't impose a schema, so the schema moves into application code — and every "which field holds that?" becomes a code-reading exercise. A year in, the collections outnumber the people who can explain them.

DbSchema infers the field structure from the documents themselves and draws buckets, scopes, and collections as diagrams anyone on the team can read and annotate.

Diagram, Query & Browse
Couchbase from One Desktop App

The hierarchy on a canvas, N1QL in the editor, documents in the grid.

Reverse engineer the Couchbase bucket hierarchy into a diagram
See the Whole Bucket Hierarchy

Connect once and DbSchema draws scopes and collections — plus the JSON field structure inferred for each — as an ER model you navigate instead of memorize.

Write N1QL queries in the DbSchema SQL editor
N1QL With Your Names Filled In

The editor completes bucket, scope, and collection identifiers while you write joins and UNNEST expressions, then flattens nested JSON results into a readable grid you can export to CSV.

Browse Couchbase JSON documents in the DbSchema data explorer
Open Documents Without Writing Queries

Filter and page through collection contents in the data explorer to verify the document shape your application actually produced — no N1QL required.

Collection Docs Your Team Opens
in a Browser Tab

Export the model as interactive HTML5 documentation: zoomable diagrams, field lists, and the descriptions you added per collection. New developers learn the document shapes from a link — without cluster credentials, and without reading application source.

Explore the Documentation Tool

Interactive HTML5 documentation of Couchbase collections generated by DbSchema

Connecting to a Couchbase Cluster

DbSchema uses the Couchbase JDBC driver (com.couchbase.jdbc.CouchbaseDriver), registered once in the driver manager — the Couchbase JDBC driver page covers the setup. The URL takes the form jdbc:couchbase://host:8093, and the cluster must have the Analytics Service enabled, since JDBC connectivity depends on it. Authenticate with a Couchbase user holding the necessary RBAC roles. XDCR replication is configured separately in the Couchbase console and has no effect on this connection.

Put Your Couchbase Hierarchy on a Canvas

Free Community Edition — the 15-day Architect trial ships in the same download.

Teams working with Couchbase often use these engines too. Explore dedicated guides and JDBC setup for each.

Browse all 100+ supported databases