{"repo":"guillaumeduhan/analytics","free":true,"listed":false,"github":"https://github.com/guillaumeduhan/analytics","clone":"git clone https://github.com/guillaumeduhan/analytics.git","description":"Open-source analytics alternative to Google Analytics, Plausible - can be self-hosted. Working with Postgres & Nest.js.","language":"TypeScript","stars":10,"topics":[],"license":null,"category":"analytics","readme_excerpt":"Analytics Self-hosted, privacy-friendly, multi-site web analytics — track pageviews, events, and visitor sessions across all your domains without third-party services. Get started 1. Clone the project 2. Run the installer The script checks your machine and installs what's missing (Node.js, yarn, PostgreSQL, PM2). Then it sets up the API and the frontend for you. 3. Configure your environment The installer creates .env files from examples. Edit them with your own values: API ( API/.env ): Variable Description --- --- DATABASE HOST PostgreSQL host (e.g. localhost ) DATABASE PORT PostgreSQL port (default: 5432 ) DATABASE USER PostgreSQL user DATABASE PASSWORD PostgreSQL password DATABASE NAME Database name (e.g. analytics ) PORT API port (default: 4200 ) API KEY Secret key to protect your API endpoints Frontend ( frontend/.env.local ): Variable Description --- --- NEXT PUBLIC API URL Your API URL (e.g. http://localhost:4200 ) NEXT PUBLIC API KEY Same API key as in API/.env The API key must match in both files. 4. Start the project Development: Or manually: - API: http://localhost:4200 - API docs: http://localhost:4200/docs - Frontend: http://localhost:3000 Production (PM2): This runs raspberry-deploy.sh which: - pulls the latest code - stops and kills any existing PM2 processes - frees ports 4200 / 3000 - wipes node modules , lockfiles, dist , and .next (full clean reinstall) - reinstalls and rebuilds API + frontend - starts both processes with PM2 and prints the last logs Two p","default_branch":null,"files":null,"tree":[],"storefront":"/r/guillaumeduhan","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/guillaumeduhan/analytics/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}