WebSvc.SqliteAdmin 1.2.0

dotnet add package WebSvc.SqliteAdmin --version 1.2.0
                    
NuGet\Install-Package WebSvc.SqliteAdmin -Version 1.2.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WebSvc.SqliteAdmin" Version="1.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="WebSvc.SqliteAdmin" Version="1.2.0" />
                    
Directory.Packages.props
<PackageReference Include="WebSvc.SqliteAdmin" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add WebSvc.SqliteAdmin --version 1.2.0
                    
#r "nuget: WebSvc.SqliteAdmin, 1.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package WebSvc.SqliteAdmin@1.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=WebSvc.SqliteAdmin&version=1.2.0
                    
Install as a Cake Addin
#tool nuget:?package=WebSvc.SqliteAdmin&version=1.2.0
                    
Install as a Cake Tool

WebSvc.SqliteAdmin

Standalone web-based SQLite database admin UI — discover, browse, edit, query, and export SQLite databases visually. Independent of WebSvc.CrudAdmin: its own package, its own login, its own route prefix, no compiled dependency on CrudAdmin's assembly.

What it does

  • Discovers and registers SQLite database files under one or more configured directories.
  • Browses schema and rows per table, with paging, and an optional raw SQL console.
  • Exports table data.
  • Audit log of every login and administrative action.
  • Own session and login (/sqliteadmin/login), single configured operator credential (Username/PasswordHash, PBKDF2), with brute-force lockout (RateLimiter) on failed attempts.
  • Signed auto-login handoff (/sqliteadmin/sso) — a Global Admin already signed into CrudAdmin can click straight into SqliteAdmin without retyping a credential. Global-Admin-only by design: SqliteAdmin has one shared login and no per-tenant/per-database scoping in its own API, so a tenant-scoped handoff token is rejected outright (see Services/SqliteSsoService.cs) — accepting one would expose every other tenant's SQLite files.

Setup

builder.Services.AddSqliteAdmin(builder.Configuration);
// ...
app.UseSqliteAdmin();
// ...
app.MapSqliteAdmin();

Configuration (appsettings.json, section SqliteAdmin): RootPath (default /sqliteadmin), DataDirectories (folders to discover .db files in), Username/PasswordHash (or Password for local dev only), ReadOnly, AllowSqlConsole, AllowExport, MaxQueryRows, SessionHours, RateLimit (MaxAttempts/WindowMinutes/LockoutMinutes).

To get the auto-login handoff working, also call AddCrudAdmin(...) in the same host — SqliteAdmin injects whatever IDataProtectionProvider is already registered (CrudAdmin's AddCrudAdmin() configures one, persisted to disk) rather than configuring its own, so the two packages share a key ring automatically with zero extra wiring. No compiled dependency on CrudAdmin either way.

Data persisted

Sessions are held in memory and persisted to sqliteadmin-sessions.json in the first configured DataDirectories entry (survives app restarts); a password changed via the admin UI is written to sqliteadmin-password.json alongside it, overriding the configured PasswordHash. Both are per-deployment state — mount/persist that directory in any container deployment, or a restart loses active sessions and any password change made through the UI.

Versions

  • 1.1.0 — Global-Admin-only signed SSO handoff from CrudAdmin (SqliteSsoService, /sqliteadmin/sso).
  • 1.0.1 — fixed a Razor shared-layout name collision that could misrender when installed alongside WebSvc.MySqlAdmin/WebSvc.PostgresAdmin in the same host.

© Narender Kumar

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.0 169 10/14/2026
1.1.0 189 8/26/2026
1.0.1 166 7/31/2026
1.0.0 221 5/27/2026