@nexpress/plugin-analytics-lite
v0.4.6
Published
First-party lightweight analytics plugin for NexPress.
Readme
@nexpress/plugin-analytics-lite
First-party, storage-backed analytics plugin for small NexPress sites. It injects a tiny page-view collector, respects Do Not Track when configured, stores size-bounded daily events with a retention TTL, rolls them up on a scheduled task, and exposes today's views and top paths through declarative Admin surfaces.
pnpm exec nexpress plugin add @nexpress/plugin-analytics-liteThe Admin-generated config form controls whether analytics collection is
enabled, Do Not Track behavior, sampling, endpoint path, and retention. The
plugin contributes POST /event and GET /summary under
/api/plugins/analytics-lite, uses plugin-scoped storage, and declares its
metric/table action contracts at definition time.
See plugin admin and scheduled tasks.
License
MIT
