Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

LiteDB

> 数据库
Open source

LiteDB - A .NET NoSQL Document Store in a single data file

9.4K stars0 likes1 views
WebsiteGitHub

About

LiteDB - A .NET NoSQL Document Store in a single data file

LiteDB - A .NET NoSQL Document Store in a single data file

LiteDB is a small, fast and lightweight .NET NoSQL embedded database.

  • Serverless NoSQL Document Store
  • Simple API, similar to MongoDB
  • 100% C# code for .NET 4.5 / NETStandard 1.3/2.0 in a single DLL (less than 450kb)
  • Thread-safe
  • ACID with full transaction support
  • Data recovery after write failure (WAL log file)
  • Datafile encryption using DES (AES) cryptography This implemention is currently not secure, DO NOT USE.
  • Map your POCO classes to BsonDocument using attributes or fluent mapper API
  • Store files and stream data (like GridFS in MongoDB)
  • Single data file storage (like SQLite)
  • Index document fields for fast search
  • LINQ support for queries
  • SQL-Like commands to access/transform data
  • LiteDB Studio - Nice UI for data access
  • Open source and free for everyone - including commercial use
  • Install from NuGet: Install-Package LiteDB

New v5

  • New storage engine
  • No locks for read operations (multiple readers)
  • Write locks per collection (multiple writers)
  • Internal/System collections
  • New SQL-Like Syntax
  • New query engine (support projection, sort, filter, query)
  • Partial document load (root level)
  • and much, much more!

Lite.Studio

New UI to manage and visualize your database:

Documentation

Visit the Wiki for full documentation. For simplified chinese version, check here.

LiteDB Community

Help LiteDB grow its user community by answering this simple survey

How to use LiteDB

A quick example for storing and searching documents:

…

Using fluent mapper and cross document reference for more complex data models

…

Where to use?

  • Desktop/local small applications
  • Application file format
  • Small web sites/applications
  • One database per account/user data store

Plugins

  • A GUI viewer tool: https://github.com/falahati/LiteDBViewer (v4)
  • A GUI editor tool: https://github.com/JosefNemec/LiteDbExplorer (v4)
  • Lucene.NET directory: https://github.com/sheryever/LiteDBDirectory
  • LINQPad support: https://github.com/adospace/litedbpad
  • F# Support: https://github.com/Zaid-Ajaj/LiteDB.FSharp (v4)
  • UltraLiteDB (for Unity or IOT): https://github.com/rejemy/UltraLiteDB
  • OneBella - cross platform (windows, macos, linux) GUI tool : https://github.com/namigop/OneBella
  • LiteDB Studio - Fork of OneBella with bug fixes, updates and migrated to C# - https://github.com/MelnikovIG/LiteDB.Studio.Avalonia
  • LiteDB.Migration: Framework that makes schema migrations easier: https://github.com/JKamsker/LiteDB.Migration/

Changelog

Change details for each release are documented in the release notes.

Code Signing

LiteDB is digitally signed courtesy of SignPath

Issues· 143 open

View all issuesOpen on GitHub
  • #3041

    Replace persistent mode-admission sidecars with process-wide OS-native database locks

    Updated Sep 29, 2026
  • #3051

    Split #3025 + #3027 into reviewable compatibility, recovery, and durability PRs

    Updated Sep 29, 2026
  • #3052

    Close sync-helper failure publication races in the extracted durability protocol

    Updated Sep 29, 2026
  • #3050

    Sort spill temp-file I/O failure should fail only the query, not the engine

    bugseverity: highpriority: P2Updated Sep 29, 2026
  • #3049

    Define crash-safe rebuild behavior when storage cannot sync

    Updated Sep 29, 2026
  • #3048

    Durable commits after reopen must not depend on an unproven WAL prefix

    Updated Sep 29, 2026
  • #2786

    Change notifications (observables) and WebSocket/HTTP hosting of LiteDB databases

    suggestionpriority: P3from forkUpdated Sep 28, 2026
  • #3047

    LiteEngine.Dispose silently discards close failures, including a failed close checkpoint

    bugarea: wal/recoveryUpdated Sep 28, 2026
  • #3034

    Make PR safety review and integrated regression audits explicit

    suggestionarea: tooling/ciUpdated Sep 28, 2026
  • #3044

    Define and enforce durability semantics for caller-supplied data and WAL streams

    Updated Sep 28, 2026

> Tags

C#databasedotnethacktoberfestlitedb

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库