[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-10411":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":18,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":24,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":16,"starSnapshotCount":16,"syncStatus":34,"lastSyncTime":35,"discoverSource":36},10411,"LiteDB","litedb-org\u002FLiteDB","litedb-org","LiteDB - A .NET NoSQL Document Store in a single data file","http:\u002F\u002Fwww.litedb.org",null,"C#",9407,1320,288,691,0,1,3,20,40.36,"MIT License",false,"master",true,[26,27,28,29,30],"database","dotnet","hacktoberfest","litedb","nosql","2026-06-12 02:02:21","# LiteDB - A .NET NoSQL Document Store in a single data file\n\n[![NuGet Version](https:\u002F\u002Fimg.shields.io\u002Fnuget\u002Fv\u002FLiteDB)](https:\u002F\u002Fwww.nuget.org\u002Fpackages\u002FLiteDB\u002F)\n[![NuGet Downloads](https:\u002F\u002Fimg.shields.io\u002Fnuget\u002Fdt\u002FLiteDB)](https:\u002F\u002Fwww.nuget.org\u002Fpackages\u002FLiteDB\u002F)\n[![](https:\u002F\u002Fdcbadge.limes.pink\u002Fapi\u002Fserver\u002Fu8seFBH9Zu?style=flat-square)](https:\u002F\u002Fdiscord.gg\u002Fu8seFBH9Zu)\n\n[![NuGet Version](https:\u002F\u002Fimg.shields.io\u002Fnuget\u002Fvpre\u002FLiteDB)](https:\u002F\u002Fwww.nuget.org\u002Fpackages\u002FLiteDB\u002FabsoluteLatest)\n[![Build status](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Factions\u002Fworkflow\u002Fstatus\u002Flitedb-org\u002FLiteDB\u002Fpublish-prerelease.yml)](https:\u002F\u002Fgithub.com\u002Flitedb-org\u002FLiteDB\u002Factions\u002Fworkflows\u002Fpublish-prerelease.yml)\n\u003C!--[![Build status](https:\u002F\u002Fci.appveyor.com\u002Fapi\u002Fprojects\u002Fstatus\u002Fsfe8he0vik18m033?svg=true)](https:\u002F\u002Fci.appveyor.com\u002Fproject\u002Fmbdavid\u002Flitedb) -->\nLiteDB is a small, fast and lightweight .NET NoSQL embedded database. \n\n- Serverless NoSQL Document Store\n- Simple API, similar to MongoDB\n- 100% C# code for .NET 4.5 \u002F NETStandard 1.3\u002F2.0 in a single DLL (less than 450kb)\n- Thread-safe\n- ACID with full transaction support\n- Data recovery after write failure (WAL log file)\n- Datafile encryption using DES (AES) cryptography\n- Map your POCO classes to `BsonDocument` using attributes or fluent mapper API\n- Store files and stream data (like GridFS in MongoDB)\n- Single data file storage (like SQLite)\n- Index document fields for fast search\n- LINQ support for queries\n- SQL-Like commands to access\u002Ftransform data\n- [LiteDB Studio](https:\u002F\u002Fgithub.com\u002Fmbdavid\u002FLiteDB.Studio) - Nice UI for data access \n- Open source and free for everyone - including commercial use\n- Install from NuGet: `Install-Package LiteDB`\n\n\n## New v5\n\n- New storage engine\n- No locks for `read` operations (multiple readers)\n- `Write` locks per collection (multiple writers)\n- Internal\u002FSystem collections \n- New `SQL-Like Syntax`\n- New query engine (support projection, sort, filter, query)\n- Partial document load (root level)\n- and much, much more!\n\n## Lite.Studio\n\nNew UI to manage and visualize your database:\n\n\n![LiteDB.Studio](https:\u002F\u002Fwww.litedb.org\u002Fimages\u002Fbanner.gif)\n\n## Documentation\n\nVisit [the Wiki](https:\u002F\u002Fgithub.com\u002Fmbdavid\u002FLiteDB\u002Fwiki) for full documentation. For simplified chinese version, [check here](https:\u002F\u002Fgithub.com\u002Flidanger\u002FLiteDB.wiki_Translation_zh-cn).\n\n## LiteDB Community\n\nHelp LiteDB grow its user community by answering this [simple survey](https:\u002F\u002Fdocs.google.com\u002Fforms\u002Fd\u002Fe\u002F1FAIpQLSc4cNG7wyLKXXcOLIt7Ea4TlXCG6s-51_EfHPu2p5WZ2dIx7A\u002Fviewform?usp=sf_link)\n\n## How to use LiteDB\n\nA quick example for storing and searching documents:\n\n```C#\n\u002F\u002F Create your POCO class\npublic class Customer\n{\n    public int Id { get; set; }\n    public string Name { get; set; }\n    public int Age { get; set; }\n    public string[] Phones { get; set; }\n    public bool IsActive { get; set; }\n}\n\n\u002F\u002F Open database (or create if doesn't exist)\nusing(var db = new LiteDatabase(@\"MyData.db\"))\n{\n    \u002F\u002F Get customer collection\n    var col = db.GetCollection\u003CCustomer>(\"customers\");\n\n    \u002F\u002F Create your new customer instance\n    var customer = new Customer\n    { \n        Name = \"John Doe\", \n        Phones = new string[] { \"8000-0000\", \"9000-0000\" }, \n        Age = 39,\n        IsActive = true\n    };\n\n    \u002F\u002F Create unique index in Name field\n    col.EnsureIndex(x => x.Name, true);\n\n    \u002F\u002F Insert new customer document (Id will be auto-incremented)\n    col.Insert(customer);\n\n    \u002F\u002F Update a document inside a collection\n    customer.Name = \"Joana Doe\";\n\n    col.Update(customer);\n\n    \u002F\u002F Use LINQ to query documents (with no index)\n    var results = col.Find(x => x.Age > 20);\n}\n```\n\nUsing fluent mapper and cross document reference for more complex data models\n\n```C#\n\u002F\u002F DbRef to cross references\npublic class Order\n{\n    public ObjectId Id { get; set; }\n    public DateTime OrderDate { get; set; }\n    public Address ShippingAddress { get; set; }\n    public Customer Customer { get; set; }\n    public List\u003CProduct> Products { get; set; }\n}        \n\n\u002F\u002F Re-use mapper from global instance\nvar mapper = BsonMapper.Global;\n\n\u002F\u002F \"Products\" and \"Customer\" are from other collections (not embedded document)\nmapper.Entity\u003COrder>()\n    .DbRef(x => x.Customer, \"customers\")   \u002F\u002F 1 to 1\u002F0 reference\n    .DbRef(x => x.Products, \"products\")    \u002F\u002F 1 to Many reference\n    .Field(x => x.ShippingAddress, \"addr\"); \u002F\u002F Embedded sub document\n            \nusing(var db = new LiteDatabase(\"MyOrderDatafile.db\"))\n{\n    var orders = db.GetCollection\u003COrder>(\"orders\");\n        \n    \u002F\u002F When query Order, includes references\n    var query = orders\n        .Include(x => x.Customer)\n        .Include(x => x.Products) \u002F\u002F 1 to many reference\n        .Find(x => x.OrderDate \u003C= DateTime.Now);\n\n    \u002F\u002F Each instance of Order will load Customer\u002FProducts references\n    foreach(var order in query)\n    {\n        var name = order.Customer.Name;\n        ...\n    }\n}\n\n```\n\n## Where to use?\n\n- Desktop\u002Flocal small applications\n- Application file format\n- Small web sites\u002Fapplications\n- One database **per account\u002Fuser** data store\n\n## Plugins\n\n- A GUI viewer tool: https:\u002F\u002Fgithub.com\u002Ffalahati\u002FLiteDBViewer (v4)\n- A GUI editor tool: https:\u002F\u002Fgithub.com\u002FJosefNemec\u002FLiteDbExplorer (v4)\n- Lucene.NET directory: https:\u002F\u002Fgithub.com\u002Fsheryever\u002FLiteDBDirectory\n- LINQPad support: https:\u002F\u002Fgithub.com\u002Fadospace\u002Flitedbpad\n- F# Support: https:\u002F\u002Fgithub.com\u002FZaid-Ajaj\u002FLiteDB.FSharp (v4)\n- UltraLiteDB (for Unity or IOT): https:\u002F\u002Fgithub.com\u002Frejemy\u002FUltraLiteDB\n- OneBella - cross platform (windows, macos, linux) GUI tool : https:\u002F\u002Fgithub.com\u002Fnamigop\u002FOneBella\n- LiteDB.Migration: Framework that makes schema migrations easier: https:\u002F\u002Fgithub.com\u002FJKamsker\u002FLiteDB.Migration\u002F\n\n## Changelog\n\nChange details for each release are documented in the [release notes](https:\u002F\u002Fgithub.com\u002Fmbdavid\u002FLiteDB\u002Freleases).\n\n## Code Signing\n\nLiteDB is digitally signed courtesy of [SignPath](https:\u002F\u002Fwww.signpath.io)\n\n\u003Ca href=\"https:\u002F\u002Fwww.signpath.io\">\n    \u003Cimg src=\"https:\u002F\u002Fabout.signpath.io\u002Fassets\u002Fsignpath-logo.svg\" width=\"150\">\n\u003C\u002Fa>\n\n## License\n\n[MIT](http:\u002F\u002Fopensource.org\u002Flicenses\u002FMIT)\n","LiteDB 是一个轻量级的 .NET NoSQL 嵌入式数据库，将数据存储在一个单一的数据文件中。它提供了一个类似于 MongoDB 的简单 API，支持事务处理、线程安全和数据恢复等核心功能，并且能够对文档字段建立索引以实现快速搜索。此外，LiteDB 支持 POCO 类映射、文件存储以及流数据处理等功能，并通过 LINQ 和 SQL 语句提供了灵活的数据访问方式。由于其小巧高效的特点，LiteDB 非常适合于需要本地存储解决方案的小型应用或嵌入式系统场景，如桌面应用程序、移动应用后端服务等。",2,"2026-06-11 03:28:17","top_topic"]