r/coolgithubprojects • u/Darex97 • 20m ago
audit-log-lib: browser audit logging that survives offline and closed tabs (TypeScript + ASP.NET Core)
https://github.com/Darex97/audit-log-librarySmall library for logging user actions in the browser and getting them to your backend without losing any.
Entries are saved in IndexedDB first, sent in batches over SignalR or HTTP, and only marked as sent when the server confirms. Each entry has an id so retries don't create duplicates, and passwords and emails are masked before anything is saved.
Any backend works, there's a ready package for ASP.NET Core. Apache-2.0.
npm: https://www.npmjs.com/package/audit-log-lib
NuGet: https://www.nuget.org/packages/AuditLogLib.AspNetCore
Demo with a fake backend: https://audit-log-lib-demo.pages.dev