Phase 4b: Analytics Plugin
Introduce
@ever-works/plugin-analytics— a privacy-friendly, multi-provider analytics plugin.
Goal
Ship a first-class analytics plugin that covers the common directory-site providers (Plausible, Umami, Fathom, GA4, custom) without locking users in. Every decision should be reversible; removing the plugin from definePlugins() should leave the site analytics-free.
Scope
See full contract in .specify/features/plugin-analytics.md.
Tasks
4b.1 Package scaffold
- Create
packages/plugin-analytics/with standard plugin structure -
package.json— name@ever-works/plugin-analytics, workspace deps on@ever-works/core+@ever-works/plugins -
tsconfig.json,vitest.config.ts,eslint.config.js(reuse shared configs) -
README.md— API reference + per-provider examples