Working integration examples for Beam β privacy-first, cookie-free web analytics.
| Framework | Example | Description |
|---|---|---|
| Next.js | examples/nextjs/ |
App Router + Pages Router integration with next/script |
| Astro | examples/astro/ |
Astro layout integration via <head> |
| SvelteKit | examples/sveltekit/ |
SvelteKit integration in app.html |
Each example includes:
- β
README.mdwith "Run in 2 minutes" instructions - β
.env.examplefor your BeamSITE_ID - β Minimal project structure ready to run
- Sign up at beam-privacy.com (free tier available)
- Add a site in the dashboard and copy your
site_id - Pick the example that matches your framework
- Follow the README in that folder
npm install @keylightdigital/beamOr use the script tag directly:
<script defer src="https://beam-privacy.com/js/beam.js" data-site-id="YOUR_SITE_ID"></script>- Page URL and path
- Referrer source
- Screen width (device type detection)
- Country (from Cloudflare headers β no IP stored)
- Browser
- Language
What Beam does NOT track: cookies, IP addresses, personal data, fingerprinting, localStorage
- π Product: https://beam-privacy.com
- π Live demo: https://beam-privacy.com/demo
- π Docs: https://beam-privacy.com/docs/api
- π¦ npm: https://www.npmjs.com/package/@keylightdigital/beam
- π Privacy: https://beam-privacy.com/privacy
- β Main repo: https://github.com/scobb/beam
MIT β see individual example directories.