Ninja Database

maintenance

by Kellerman Software · since 2010 · also known as Ninja Database Pro, Ninja .NET Database Pro, Ninja Database Lite

Kellerman Software's commercial embedded object/relational database for .NET, Xamarin and Unity apps.

objectrelationalembedded libraryproprietarymature

maintenance. Still sold by Kellerman Software, but only bug-fix updates since 2019; latest release 3.20.0 (Jan 2023).

Overview

Ninja Database Pro is a compact (about 220 KB) embedded database written in C# that stores .NET objects either inline as embedded children or in separate related tables, so it acts as an object store or a lightweight relational store depending on how you model child objects. It provides ACID transactions with automatic rollback on the next open, LINQ index queries, paging, constraints, triggers, foreign keys, LRU caching, AES encryption and LZO compression, and copes with class changes through automatic schema evolution. It targets .NET Framework, .NET Standard and Core, Mono, Xamarin, UWP and Unity, with a cheaper Lite edition. Kellerman Software still sells it, but updates have slowed to occasional fixes; the latest NuGet release is 3.20.0 from January 2023.

Strengths & trade-offs

Strengths

  • +Zero-configuration: tables and indexes are created from your classes automatically
  • +Automatic schema evolution when properties are added, removed or retyped
  • +Built-in AES encryption and compression in a ~220 KB assembly
  • +One API across desktop .NET, Xamarin mobile, UWP and Unity

Trade-offs

  • −Closed source unless you buy a source license
  • −Development has slowed to occasional fixes
  • −No SQL, no server mode and a small user community

Great for

  • +Local storage for Xamarin or .NET MAUI-era mobile apps
  • +Desktop .NET apps that want object persistence without an ORM
  • +Unity games storing structured save data

Think twice for

  • −Shared multi-user databases
  • −Teams that need open-source dependencies

Capabilities

Native or official first-party support · 7 of 25 tracked

✓Transactions
✓Secondary indexes
✓Triggers
✓In-memory
✓Durable persistence
✓Compression
✓Encryption at rest
–Joins
–Full-text search
–Vector search
–Geospatial
–JSON
–Change data capture
–Stored procedures
–Materialized views
–TTL / expiry
–Pub/Sub
–Columnar storage
–Role-based access
–Time travel
–Branching
–Online schema changes
–Streaming ingest
–Offline sync
–Runs in WebAssembly

Scale & consistency

Comfortable data size
Small · ≤ 100 GB
Horizontal scaling
None
Multi-region
No
Transactions
Full ACID
Consistency
Strong
Schema
Flexible
Architecture
Embedded
Query languages
LINQ

Deployment

Self-hosted Vendor-managed cloud Serverless Embedded Edge Kubernetes operator

Ecosystem

apis & protocols.NET API
client languagesC#, VB.NET

Alternatives to Ninja Database

Compare all→
LiteDBDocument10.8

Serverless single-file NoSQL document database for .NET, in the spirit of SQLite.

ninja-database vs litedb →
Realm (Atlas Device SDK)Object25.2

Object-oriented mobile database whose MongoDB sync service is gone; the local engine survives as open source.

ninja-database vs realm →
SQLiteRelational75.5

The in-process SQL engine that ships in every phone, browser and OS: one file, zero servers.

ninja-database vs sqlite →
ObjectBoxObject12.4

Fast on-device object database with built-in HNSW vector search and an optional commercial sync server.

ninja-database vs objectbox →
PowerSyncRelational23.3

Sync engine that keeps on-device SQLite in sync with Postgres, MongoDB, MySQL or SQL Server.

ninja-database vs powersync →
InterBaseRelational18.3

Embarcadero's small-footprint SQL database for servers and embedded apps, with built-in AES encryption.

ninja-database vs interbase →

Ninja Database FAQ

What is Ninja Database?

Ninja Database is an object database by Kellerman Software, first released in 2010. Ninja Database Pro is a compact (about 220 KB) embedded database written in C# that stores .NET objects either inline as embedded children or in separate related tables, so it acts as an object store or a lightweight relational store depending on how you model child objects. It provides ACID transactions with automatic rollback on the next open, LINQ index queries, paging, constraints, triggers, foreign keys, LRU caching, AES encryption and LZO compression, and copes with class changes through automatic schema evolution. It targets .NET Framework, .NET Standard and Core, Mono, Xamarin, UWP and Unity, with a cheaper Lite edition. Kellerman Software still sells it, but updates have slowed to occasional fixes; the latest NuGet release is 3.20.0 from January 2023.

Is Ninja Database open source?

No. Ninja Database is proprietary, closed-source software. License: Commercial, royalty-free redistribution.

Does Ninja Database support ACID transactions?

Yes. Ninja Database supports full ACID transactions, with strong consistency.

Does Ninja Database scale horizontally?

Ninja Database does not scale horizontally; it runs on a single node, so you scale it up rather than out. It is comfortable at small scale (≤ 100 GB).

How can I run Ninja Database?

You can self-host it and embed it in your application.

What is Ninja Database best for?

Ninja Database is a strong fit for local storage for Xamarin or .NET MAUI-era mobile apps, desktop .NET apps that want object persistence without an ORM and unity games storing structured save data. Think twice for shared multi-user databases.

What are the best alternatives to Ninja Database?

Common alternatives to Ninja Database include LiteDB, Realm (Atlas Device SDK), SQLite, ObjectBox and PowerSync. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

Is Ninja Database still maintained?

Ninja Database is in maintenance mode. Still sold by Kellerman Software, but only bug-fix updates since 2019; latest release 3.20.0 (Jan 2023).

How popular is Ninja Database?

Ninja Database has little measurable public adoption today, so it ranks near the bottom of the WhichDB Score.