Skip to content

v0.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Dec 03:28
· 1 commit to main since this release

Added

  • Cross-device admin login & session management: Single-owner password authentication (scrypt) with server-backed sessions (HttpOnly cookie + CSRF token), multi-device session listing/revocation, password rotation, env-based seeding (PULSE_ADMIN_USERNAME / PULSE_ADMIN_PASSWORD), and automatic cleanup of legacy localStorage keys. 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-safe D0–D30 visitor 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_direct attribution 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/sdk over both Streamable HTTP (/v1/mcp) and local stdio (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|zh covers 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: null rejection in originGuard and CORS middleware; brute-force rate limiting on /v1/collect and /v1/collect/batch invalid keys.
  • Stripped non-UTM query parameters from stored events.url to prevent accidental token/PII persistence.
  • Trusted-proxy gating (PULSE_TRUST_PROXY=1) for both client IP extraction (X-Forwarded-For priority) and CDN GeoIP headers, with bounded FIFO rate-limit buckets.
  • Prevented revoked bootstrap keys from resurrecting on GET /v1/health, redacted shareId for read-only keys, hardened CSP headers and .dockerignore, and rejected prototype-pollution CSV headers.