Custom APIs
Getting started with ENSDb
Vision
Section titled “Vision”Get the whole, live onchain state of ENS in your database.
Core Philosophy
Section titled “Core Philosophy”Open Standard
Section titled “Open Standard”ENSDb is an open standard for bi-directional ENS integration. It defines a carefully crafted set of database schema designs, rules, and constraints for storing the ENS onchain state in a PostgreSQL database — making the data accessible from any programming language.
The ENSDb standard is implementation-agnostic, so you have options: implement your own ENSDb Writer or ENSDb Reader in any language, or use the initial reference implementations provided by ENSNode — ENSIndexer as an ENSDb Writer and ENSApi as an ENSDb Reader.
Each ENSDb instance runs in a standard PostgreSQL database, so to interact with it, you can use any programming language that has a PostgreSQL driver. Zig, Rust, Go, Python, JavaScript, Ruby, Java, C# — the choice is yours.
What You Get
Section titled “What You Get”Complete ENS State
Section titled “Complete ENS State”An ENSDb instance contains the live onchain state of ENS, including:
- Domains (ENSv1 and ENSv2)
- Registrations and renewals
- Resolver records and text records
- Events and ownership history
- NFT/token data for names
- … and more!
PostgreSQL Benefits
Section titled “PostgreSQL Benefits”By building on a PostgreSQL database, ENSDb inherits world-class capabilities:
- ACID transactions — Data integrity guarantees
- Complex queries — Joins, aggregations, window functions
- Scalability — Replication, sharding, connection pooling
- Ecosystem — Mature tools, ORMs, dashboards, analytics platforms
- Reliability — Decades of production-proven technology
What You Can Build
Section titled “What You Can Build”ENSDb unlocks a new universe of ENS applications:
Analytics & Dashboards
CLIs & Developer Tools
Event-Based Engines
Data Pipelines
AI Agents
Quick Start
Section titled “Quick Start”Documentation Structure
Section titled “Documentation Structure”Related Projects
Section titled “Related Projects”- ENSIndexer — The reference ENSDb Writer implementation
- ENSApi — The reference ENSDb Reader implementation