Project 61 of 84
Next Story
A lite, multi-tenant user-journey recorder for Next.js sites: it captures navigation path, rage-clicks, dead-clicks and session outcome (no session replay) and exposes them to control-plane LLM agents through a fixed three-endpoint query API.
- Status
- In progress
- Last activity
- 2026
- Live
- Stack
- TypeScript
- pnpm workspaces
- Next.js
- React
- Hono
- Drizzle ORM
- Postgres
- Supabase
Highlights
- Published @next-story/journey-recorder to npm (0.1.0 and 0.1.1) as a Next.js SDK with split client/server/shared entrypoints, capturing navigation, rage-click, dead-click and session-outcome signals without DOM replay.
- Expanded the Playwright E2E suite from 13 specs to a 43/43 passing run on page objects and attribute-based readiness waits, and fixed six recorder defects it exposed, including duplicate page views on hard reload, double-counted collect batches and a goBack race.
- Closed a PII leak where the click-label fallback read input values (names, card codes, API keys), restricting it to button-like controls and backing it with 15 tests, 9 of which fail on the old code.
- Made the agent API's security guards testable by building the Hono app from injected dependencies and adding composed-app drift tests that keep every route site-bound and scope-enforced and the surface at 3 endpoints.
- Ended silently sliding token lifetimes by making expiresAt mandatory on seeded agent tokens, so a redeploy no longer extended credentials by 90 days.
- Moved privacy invariants into tests: a structural type-level check that click verdicts carry no DOM content, and a schema audit proving raw_event stores no IP-derived columns.
- Shipped a 33-page public marketing site (Next.js 15, Tailwind v4) with consent banner, validated contact API and agent-API pages pinned to the real handlers by tests; axe-core WCAG 2.2 AA showed 0 violations in light and dark.
- Removed marketing claims the code did not support (e.g. 'private by construction', 'no silent data loss') and published a data-handling page stating the recorder is pseudonymous, not anonymous.
- Replaced live Vercel git auto-deploys with manual workflow_dispatch deploys gated by a gitleaks + trufflehog secret scan, and fixed the gate so a real finding fails the job.
- Built a Changesets-based skill-distribution pipeline and a self-hosted Claude plugin marketplace for an onboarding skill that encodes the recorder's Edge-runtime and first-request token invariants.
- Wrote CODING_STANDARDS.md and a domain GLOSSARY.md from measured repo conventions, documenting fail directions, port-based dependencies and test-enforced invariants.
- Added a required-status CI gate and branch protection, caught a build-order bug that only failed on clean checkouts, and broadened ESLint from 15 of 141 files to the whole repo (5 real violations fixed).