ASP.NET Core SQLite LAN API

0•

Builds local LAN REST APIs and web portals with ASP.NET Core 8 that safely share SQLite databases with legacy WinForms applications.

Provides an architecture pattern and implementation guide for extending legacy WinForms desktop applications with an ASP.NET Core 8 Minimal API and mobile-friendly SPA web portal. It enables concurrent multi-client read and write access over LAN to an existing SQLite database using WAL mode and busy timeouts, implements secure cookie-based JWT authentication, provides non-breaking schema extensions via idempotent table creation, and serves static frontend assets directly from the backend.

主な機能

01JWT authentication handling via httpOnly cookies for SPA web portals
02Non-breaking schema extension patterns (EnsureXxx) for API-specific tables
030 GitHub stars
04Built-in static file hosting for embedded single-page applications
05Safe concurrent SQLite access alongside WinForms apps using WAL mode and busy_timeout
06Lightweight ASP.NET Core 8 Minimal API routing with safe database read helpers

ユースケース

01Exposing internal REST APIs across a local area network (LAN) over SQLite
02Adding mobile or browser-based access to an existing WinForms desktop system
03Modernizing legacy desktop workflows without rewriting the original application or modifying core database schemas