Skip to content
Akayashuu edited this page Jun 12, 2026 · 2 revisions

Takt Examples

Minimal, self-contained example apps for Takt — a privacy-friendly, self-hosted analytics SDK — one per framework, for both JavaScript and PHP. Each app consumes the real published package and builds in CI.

Copy any folder, run it, and adapt.

JavaScript

Folder Package Stack
vanilla @vskstudio/takt-core Vite + TypeScript, no framework
react @vskstudio/takt-react Vite + React
vue @vskstudio/takt-vue Vite + Vue 3
svelte @vskstudio/takt-svelte Vite + Svelte 5
solid @vskstudio/takt-solid Vite + SolidJS
angular @vskstudio/takt-angular Angular 20 standalone
astro @vskstudio/takt-astro Astro 5 integration
cd react        # or any JS folder
npm install
npm run dev     # local dev
npm run build   # type-check + production build

PHP

Folder Package Stack
php vskstudio/takt-core-php Plain PHP 8.1+, no framework
laravel vskstudio/takt-laravel Laravel 11/12
symfony vskstudio/takt-symfony Symfony 6.4/7 bundle
cd laravel      # or php / symfony
composer install
composer run build   # resolves the published package and renders the snippet

The PHP examples render the browser snippet server-side; see each folder's track.php / controller for sending server-to-server events.

Local development

Each example sets excludeLocalhost: false so events fire during local development (Takt's privacy default is true). Point endpoint at your own Takt instance to collect them.

Takt Examples

JavaScript

  • vanilla · react · vue
  • svelte · solid · angular · astro

PHP

  • php · laravel · symfony

Packages

Clone this wiki locally