Stat18ion is a complete, cookieless analytics solution designed to give you deep insights into your users without compromising their privacy.
This is a Monorepo managed by TurboRepo.
apps/site: The Next.js dashboard and landing page. (README)apps/server: The Express + PostgreSQL backend API. (README)packages/stat18ion: The official lightweight tracker SDK. (README)
- Node.js 20+
- PostgreSQL
- Npm (Workspaces enabled)
-
Clone the repository:
git clone https://github.com/your-username/stat18ion.git cd stat18ion -
Install dependencies:
npm install
-
Configure environment:
- Backend: Copy
apps/server/.env.exampletoapps/server/.envand fill in your details. - Frontend: Add
NEXT_PUBLIC_API_URL=http://localhost:3001to your environment.
- Backend: Copy
-
Run everything:
npm run dev
This starts the API, Dashboard, and Tracker watcher simultaneously.
- Build everything:
npm run build - Build specific app:
npx turbo build --filter=@stat18ion/server
For detailed instructions, see the Deployment Guide.
MIT