GEDB
A pure-Go embedded database
Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.
Want to reach these readers? Sponsor an issue.
Hello HN!These last few months I've been working on my first open source project: an embedded database written in pure-go. That took me some months, as I had to learn how to deal with such large packages. Until then, all packages I had made were quite small an did not require much. I usually did not have to worry about things like allocation optimization and instance pools until This project.It started when I wanted to make a port of a tool to a TUI environment. I'm actually used to working with TUIs in golang, so that was my language of choice. The tool I wanted to port is written in TypeScript and uses NeDB (written in JavaScript) as database. Since I feel more comfortable working with compiled languages, I decided to create my own database, making sure it was compatible with NeDB, and that's what I did for the last few months.And that's how GEDB was created. It's a mongodb-like embedded database, written in pure-go. It supports a subset of useful querying options of MongoDB (keywords like $lt, $exists, $in, $where, etc.). By default, it uses a in-memory-only storage, but can easily initialized with a data file.Everything in my package can be dependency injected, as everything is controlled interfaces. Serialization, querying syntax, document structure, indexing and more, all can be replaced by implementing an interface.I've also been considering adopting a new document model, by creating a binary type (like BSON) to reduce drastically the cost of creating, maintaining and copying documents (they currently are map[string]any).The project is currently in an early stage, version 0.1.0, so I'm okay with making changes to the API for now, until I'm ready to release version 1.x.xI would be really glad if you guys could check it out and give some feedback. An issue, suggestion or a star are very welcome.My repository can be found on my github: https://github.com/vinicius-lino-figueiredo/gedb
HN · launched Feb 16, 2026 · 9 upvotes (top 51%) · 0 views
Niche: database management systems and engines · 162 launches, 5 in the last 7 days ▼ -17% · Explore this niche →
Category and tags
- Horizontal
- Data infrastructure
- Developer
- Not AI
- Hobby / open-source project
More like this: all 162 launches in database management systems and engines →
Could you build this?
No Writing a database engine from scratch in Go requires deep systems programming expertise, including disk storage layout, buffer pooling, transaction management, and concurrency control.
What it would actually take: Building an embedded DB requires implementing page-level storage, B-Trees or LSM-trees, write-ahead logging (WAL) for ACID guarantees, and lock management. The stack would be systems Go or Rust with low-level syscalls (`mmap`, `fsync`). It requires solid knowledge of database internals, concurrency primitives, and crash recovery mechanics.
Discussion
3 comments analyzed.
Competitors mentioned: go-cache (github.com/patrickmn/go-cache)
Concerns raised: AI development origin/transparency
Competitors
Other products that read as similar to this one : 443 launches clear the similarity bar, closest 8 shown.
Attention rank: #240 of 444 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).
Launched 110 days after the earliest competitor.
- XitDB · hn · 2026-04-17 · 8 upvotes · similarity 0.52
- Pg-typesafe · hn · 2026-02-17 · 69 upvotes · similarity 0.52
- VisuaLeaf · hn · 2026-04-29 · 9 upvotes · similarity 0.50
- NodeDB · hn · 2026-05-11 · 5 upvotes · similarity 0.48
- MQLens · hn · 2026-09-01 · 5 upvotes · similarity 0.47
- EterDB, a Postgres fork that makes it easy to recover from incidents · hn · 2026-09-10 · 45 upvotes · similarity 0.47
- Dbctx · hn · 2026-08-11 · 5 upvotes · similarity 0.46
- LatticeDB · hn · 2026-08-25 · 190 upvotes · similarity 0.45
The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.