Fork me on GitHub

 Standalone database

LiteDB is a serverless database delivered in a single small DLL (< 450kb) fully written in .NET C# managed code (compatible with .NET 4.5 and NETStandard 2.0).

Install it via NuGet or just copy the DLL to your bin project folder.

 Fast and lightweight

LiteDB is a simple and fast NoSQL database solution. Ideal for:

  • Mobile Apps (Xamarin ready)
  • Desktop/local applications
  • Application file format
  • Web applications
  • One database per account/user data store

 And much more...

  • Portable UWP and Xamarin iOS/Android
  • ACID transactions
  • Single datafile (like SQLite)
  • Recovery data in writing failure (WAL mode)
  • Map your POCO class to BsonDocument
  • Fluent API for custom mapping
  • Cross collections references (DbRef)
  • Store files and stream data (like GridFS in MongoDB)
  • LINQ query support
  • FREE for everyone - including commercial use


SQL Syntax

  • LiteDB supports SQL-like language for data and structure manipulations. You can insert, update, delete or query your database using a very similar SQL relational language
  • LINQ expressions (lambda functions) can be used to create fluent API query in your C# code
  • All SQL commands are supported in new LiteDB.Studio admin tool
  • You can also get detailed EXPLAIN PLAN from the query engine to check if your query will run with the best performance

Awesome features

  • Thread-safe with cross collection transaction
  • No locks for readers. Per collection writer locks
  • Partial document lookup/loader and index-only queries supported
  • FileStorage to store files and streams inside your database
  • System collections to easily import/export data and manage your database

Work everywhere

  • LiteDB is fully written in C# managed code
  • Support .NET Framework 4.5 and .NET Standard 1.3 and 2.0, .NET Core 2.0+, UWP, Linux, mobile Xamarin (iOS and Android), Unity... in every .NET platform
  • Did I mention that LiteDB is free and open source?

LiteDB Community

LiteDB is a growing community that needs your help. You can contribute with LiteDB in many ways:

Meet LiteDB team

Maurício David

Founder/Software Engineer

Cassiano Sombrio

Software Engineer

Leonardo Nascimento

Software Engineer