Skip to content

feat(analytics): interactive playground#359

Merged
bernirosas merged 5 commits intomainfrom
feat/interactive-playground
Mar 30, 2026
Merged

feat(analytics): interactive playground#359
bernirosas merged 5 commits intomainfrom
feat/interactive-playground

Conversation

@bernirosas
Copy link
Copy Markdown
Contributor

Add interactive playground for analytics library,
To test, run

npm install
npm run playground

And navigate to http://localhost:3000/demo.
I had to add an .npmrc with:

@topsort:registry=https://registry.npmjs.org/

- Introduced a new `playground` script in `package.json` to build and serve the project locally.
- Updated `README.md` with instructions for running the playground.
- Added a new `index.html` file in the `demo` directory to serve as the playground interface.

This enhances the development experience by allowing easier testing and demonstration of the project.
@bernirosas bernirosas changed the title Feat/interactive playground feat(analytics): interactive playground Mar 27, 2026
barbmarcio
barbmarcio previously approved these changes Mar 27, 2026
Copy link
Copy Markdown
Collaborator

@anonvt anonvt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The playground looks great! A few things are needed before this can be served as a GitHub Page. I compared with our banners.js repo which already has a working Pages deployment — these changes follow the same pattern.

See inline comments for details and agent prompts for each change.

- Fix dist paths in demo/index.html (../dist/ -> ./dist/) to match _site/ structure
- Fix workflow to copy index.html to _site/ root instead of _site/demo/
- Exclude demo/ from Biome linting to avoid false positives

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@bernirosas bernirosas merged commit acd103e into main Mar 30, 2026
4 checks passed
@bernirosas bernirosas deleted the feat/interactive-playground branch March 30, 2026 17:59
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.

3 participants