Repository navigation
Releases
Releases · k7airos/pulse
v0.3.0
Added
- Cross-device admin login & session management: Single-owner password authentication (
scrypt) with server-backed sessions (HttpOnlycookie + CSRF token), multi-device session listing/revocation, password rotation, env-based seeding (PULSE_ADMIN_USERNAME/PULSE_ADMIN_PASSWORD), and automatic cleanup of legacylocalStoragekeys. Scoped API keys (collect,read,admin) remain first-class for scripts and agents. - Growth Cockpit (
/cockpit&/v1/cockpit): Unified product growth dashboard combining web traffic with external channel metrics — node/relay status bar, 2×2 growth KPI cards (App Store downloads & impressions with lag window, GitHub stars & 7d visitors, Zero-Link attribution multiplier, Relay deduplicated DAU), dual-axis & three-end daily resonance charts, experiments, and VOC summary. - Cohort retention & stickiness (
/v1/websites/:id/retention): Deduplicated DAU / WAU / MAU, stickiness ratio, and prune-safeD0–D30visitor cohort retention heatmaps. - Multi-touch & Zero-Link attribution (
/v1/websites/:id/attribution): Full UTM support (utm_source,utm_medium,utm_campaign,utm_term,utm_content),session/first_touch/last_non_directattribution models, and Zero-Link organic amplification multiplier ((Direct + Organic Search) / Social Short-Link& GitHub 14d referrer mode). - Segmented funnels: Funnel editing (
PATCH /v1/websites/:id/funnels/:funnelId), step-0 repeat window reset fix, and dimension breakdown (?groupBy=channel|utm_source|device|country|experiment). - A/B & social experiments (
/v1/experiments/*): Variant exposure/click/conversion tracking, lift calculation, and two-proportion Z-test statistical significance (pValue,significant95). - Community & VOC feedback (
/v1/voc/*): Single/batch feedback ingestion, sentiment/category/status triage, search, and rollups. - External channel ingestion (
/v1/channels/*): Standardized connectors, idempotent daily & snapshot ingestion, JSON/CSV bulk import, and HMAC-SHA256 signed webhooks (x-pulse-signature) for App Store, GitHub, X, relay nodes, and custom sources. - Agent-first MCP server (
/v1/mcp&pnpm mcp): Built-in Model Context Protocol server powered by@modelcontextprotocol/sdkover both Streamable HTTP (/v1/mcp) and localstdio(server/mcp/stdio.ts), exposing 35 scope-guarded tools across analytics, growth, ingestion, and administration. - Complete bilingual OpenAPI 3.0.3 spec:
/v1/openapi.json?lang=en|zhcovers all auth, analytics, growth, channel, experiment, VOC, share, and MCP endpoints. - Automated verification suite: 80 unit/API/security tests (
vitest) and 105 opaque-box E2E tests (including Playwright Chromium UI & live MCP transport checks).
Security
- Streaming body-size enforcement in
readJsonBody()to abort oversized chunked requests early (413). - Explicit
Origin: nullrejection inoriginGuardand CORS middleware; brute-force rate limiting on/v1/collectand/v1/collect/batchinvalid keys. - Stripped non-UTM query parameters from stored
events.urlto prevent accidental token/PII persistence. - Trusted-proxy gating (
PULSE_TRUST_PROXY=1) for both client IP extraction (X-Forwarded-Forpriority) and CDN GeoIP headers, with bounded FIFO rate-limit buckets. - Prevented revoked bootstrap keys from resurrecting on
GET /v1/health, redactedshareIdforread-only keys, hardened CSP headers and.dockerignore, and rejected prototype-pollution CSV headers.