LiteDB is a lightweight embedded database, suitable for low-traffic single-instance websites. LiteDB is installed as part of the setup guide.

Important: LiteDB is an open source project, and is not commercially supported. It is therefore not suitable for business critical websites, and Redakt does not take any liability for loss of data or other issues when using LiteDB. Use at your own risk!


Install the LiteDB package with the NuGet package manager or the Package Manager Console.

PM> Install-Package Redakt.Data.LiteDb

Register LiteDB services in the ConfigureServices method in your project's Startup.cs file.

public void ConfigureServices(IServiceCollection services)
    // ... framework and other services here

    services.AddRedakt(this.Configuration, builder =>
        // ... other Redakt services


The LiteDB data store is configured through the appsettings.json file. Any configuration that is not included in the appsettings.json file will be set to its following default values.

    "Redakt": {
        "DataStore": {
            "LiteDB": {
                "FilePath": "App_Data\\Redakt.db"

File Path

Sets the path to the LiteDB database file. It can be a relative path from the website root, or it can be a fully qualified path name. The file may be accessed on a network drive or SAN as well. Defaults to "App_Data\Redakt.db" if not set.

Redakt CMS will create and initialize the database file upon first installation. It is therefore not necessary to create a database in advance.