The Tech Stack of an Open-source Web Analytics SaaS


Have you ever thought about the technologies and frameworks that go into building and running a web analytics SaaS? The tech stack of a company is an important factor in its product development and growth. It's like a recipe, with each component contributing to the overall success of the platform.

I've always been curious about what technologies or languages other companies use to build their products. It's always interesting to see the running costs of companies, whether you need this information for your own side project or just out of curiosity.

And now it's time to reveal our tech stack - the tools and technologies that power our open-source and privacy-focused web analytics SaaS, Swetrix.

  1. Languages
  2. Frameworks
  3. Databases
  4. Hosting & Infrastructure
  5. Email
  6. Payments
  7. Support
  8. Other


  1. TypeScript: all the backend is written using this language. We chose it due to how powerful yet simple this language is and a huge support of the community.
  2. JavaScript: used on the frontend side in combination with React. We chose not to migrate to TypeScript yet due to how readable and non-bloated React code using simple JS is, the types validation is done via Prop-types library instead.


  1. React: in my opinion it's the best frontend library there is with the most powerful community support. Using React makes writing analytics dashboards and components really easy.
  2. Tailwind CSS: using this framework saved us a ton of time designing and making our frontend. IMO it was one of the best technical decisions to migrate from SCSS to Tailwind.
  3. billboard.js: we use it as a charting library on our dashboards. Quite a decent and customisable charting library, based on D3.
  4. Nest.js: all our APIs are written using this framework. It's a very scalable, fast, efficient and widely supported framework. The more you use it the more you appreciate it, being able to share the entities and interfaces between the endpoints, the methodologies it uses makes you love it more and more every day. Also it's based on TypeScript which is great for making reliable APIs.
  5. Python Django: our blog is written using this framework.


  1. MySQL: one of the most popular choices among SaaS services. Very reliable and easy to use database, especially in combinations with ORMs like typeorm. We use it for storing data about users, projects, alerts and so on.
  2. Clickhouse: super fast and efficient column oriented database. It's perfect for data aggregation queries and storing enormous amounts of data. We use it for storing analytics data.
  3. Redis: a great and well-documented in-memory key-value database. We use it for rate-limiting, caching and session management.

Hosting & Infrastructure

  1. Hetzner: very reliable and affordable hosting & dedicated servers provider. Perfect for side-projects and SaaS companies.
  2. Cloudflare: we use it for hosting our frontend code, DDoS protection and as a some kind of CDN for our static assets.
  3. Njalla: great privacy-focused domain registrar. Fair pricing (they also accept crypto), easy to use dashboard. Supports 2FA, PGP, API access.


  1. Postmark: we use it for outbound mailing (transactional and broadcast emails). They provide a lot of integrations into any codebase, plus they give free $75 for bootstrapped startups.
  2. Fastmail: inbound emails provider. Very simple and easy to use.


  1. Paddle: subscriptions and credit card processing service. Their documentation is amazing, dashboards are quite simple and easy to use.


  1. Intergram: an amazing, Telegram-based and open-source in-app support chat. Easy to customise and integrate into existing apps.


  1. VS Code: beautiful semi code editor / semi-IDE, especially when using extensions. The best code editor for web development.
  2. Github: source code hosting and versioning, we also host our tasks kanban board there.
  3. pnpm: fast and disk space efficient JavaScript package manager.


  1. Swetrix: we use our tool to monitor our websites traffic and performance🙂.
  2. UptimeRobot: quite a decent uptime monitoring service. Their free tier includes 50 monitors, which is totally more than enough for us.