whatisgithub

What is mongreldb?

visorcraft/mongreldb — explained in plain English

Analysis updated 2026-05-18

3RustAudience · developerComplexity · 4/5LicenseSetup · moderate

In one sentence

An embedded and server database written in Rust that combines SQL, full-text search, and multiple kinds of AI style similarity search on the same data.

Mindmap

mindmap
  root((MongrelDB))
    What it does
      Columnar storage
      SQL queries
      Vector similarity search
    Tech stack
      Rust
      DataFusion
      NAPI addon
    Use cases
      RAG retrieval
      Duplicate detection
      Agent memory
    Audience
      Developers
      AI application builders

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Build retrieval augmented generation search that combines vector similarity with exact filters.

USE CASE 2

Detect near duplicate documents or records as new data is ingested.

USE CASE 3

Give an AI agent memory retrieval by meaning, recency, and category without a separate vector database.

USE CASE 4

Run structured SQL queries alongside AI style similarity search on the same dataset.

What is it built with?

RustSQLDataFusionNAPI

How does it compare?

visorcraft/mongreldbadsharma/ast-grepcodeitlikemiley/antigravity-sdk-rust
Stars333
LanguageRustRustRust
Setup difficultymoderateeasyhard
Complexity4/53/54/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 1h+

Requires understanding of its indexing and query configuration options to use the AI search features correctly.

Use freely for any purpose, including commercial use, under either the MIT or Apache 2.0 license, as long as you keep the copyright notice.

So what is it?

MongrelDB is a database engine, written in Rust, built to store and search large amounts of structured data efficiently while also supporting the kind of search that modern AI applications need. It can run embedded inside another program or as its own server, and it stores data in a custom column based file format designed to make writes fast and reliable, with a write ahead log so that data is not lost if something crashes mid write. What makes it interesting for AI work is that it keeps several very different kinds of search side by side on the same data. It supports normal SQL queries, exact text search for finding words or phrases, and several forms of what is called vector search, which is a way of finding items that are similar in meaning rather than identical in wording. This includes searching by dense number based embeddings, a sparse style of search suited to rare or specific terms, and a way to detect near duplicate items using set comparison techniques. All of these can be combined and filtered together, for example limiting search results to a specific user's data before ranking them by similarity. The README lists concrete uses such as retrieval augmented generation, where an AI system pulls relevant documents before answering a question, detecting duplicate content as new data comes in, and letting an AI agent recall past memories by meaning, recency, or type. It is meant to let a developer build these AI search features locally, without needing a separate specialized vector database service running elsewhere. The project sets hard limits on things like how many results or candidates a single search can consider, and lets an operator configure lower limits, timeouts, and how many searches can run at once, which suggests it is meant to be used in real production systems rather than as an experiment. It supports the C programming interface, Node.js through a native addon, and multiple other languages, and it is dual licensed under the MIT license and the Apache 2.0 license. The full README is longer than what was shown.

Copy-paste prompts

Prompt 1
Help me set up MongrelDB as an embedded database in my Rust project.
Prompt 2
Explain the difference between the ANN, sparse, and MinHash search types in MongrelDB.
Prompt 3
Show me how to write a hybrid search query that combines SQL filters with vector similarity.
Prompt 4
Walk me through configuring MongrelDB's candidate and concurrency limits for production use.

Frequently asked questions

What is mongreldb?

An embedded and server database written in Rust that combines SQL, full-text search, and multiple kinds of AI style similarity search on the same data.

What language is mongreldb written in?

Mainly Rust. The stack also includes Rust, SQL, DataFusion.

What license does mongreldb use?

Use freely for any purpose, including commercial use, under either the MIT or Apache 2.0 license, as long as you keep the copyright notice.

How hard is mongreldb to set up?

Setup difficulty is rated moderate, with roughly 1h+ to a first successful run.

Who is mongreldb for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.