Skip to content

Add Little Friend analytics to whenny.dev - #24

Merged
zvndev merged 1 commit into
mainfrom
chore/little-friend
Oct 2, 2026
Merged

zvndev merged 1 commit into
mainfrom
chore/little-friend

Conversation

@zvndev

@zvndev zvndev commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Adds Little Friend (privacy-first analytics, journey mode with masked session replay) to the whenny.dev site in apps/example.

  • The tag renders in the root layout only when VERCEL_ENV is production. Previews and local dev load nothing.
  • install.copy after an install command is copied (home command blocks, CLI lines, module chips, docs installation and code blocks), with method: create, cli or package. The command text is never sent.
  • github.click and npm.click for outbound links to GitHub and npm.
  • data-lf click ids on the home nav, calls to action and footer.
  • CSP: script-src adds https://cdn.littlefriend.io. A connect-src 'self' https://in.littlefriend.io replaces the default-src fallback.

Checked locally: npm run build, npm run lint, npm run typecheck, tsc --noEmit in apps/example, TZ=UTC npm test (374 + 38 pass), and a production build that renders the tag. The core package tests fail in a non-UTC local time zone before and after this change; CI runs in UTC.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Production deployments render the Little Friend tag (journey mode, with
session replay) in the root layout. Previews and local dev render
nothing, because the tag depends on VERCEL_ENV being production.

- install.copy fires after an install command is copied (home page
  command blocks, CLI lines, module chips, and the docs installation
  section and code blocks), with method create, cli or package. The
  command text is never sent.
- github.click and npm.click for links to GitHub and npm.
- data-lf click ids on the home nav, calls to action and footer.
- CSP: script-src adds https://cdn.littlefriend.io, and a connect-src of
  'self' https://in.littlefriend.io replaces the default-src fallback.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
whenny-npm Ready Ready Preview Oct 2, 2026 5:23am UTC

Request Review

@zvndev
zvndev merged commit 64eb8ed into main Oct 2, 2026
6 checks passed

This branch was successfully deployed

1 active deployment
Preview — 626d148a Deployed Oct 2, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant