<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Andrii Romasiun</title>
    <description>The latest articles on DEV Community by Andrii Romasiun (@blaumaus).</description>
    <link>https://dev.to/blaumaus</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1181993%2F536b6e4b-6749-4baa-a9b6-c90e53011599.jpeg</url>
      <title>DEV Community: Andrii Romasiun</title>
      <link>https://dev.to/blaumaus</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/blaumaus"/>
    <language>en</language>
    <item>
      <title>The Tech Stack of an Open Source Web Analytics SaaS</title>
      <dc:creator>Andrii Romasiun</dc:creator>
      <pubDate>Wed, 11 Oct 2023 01:51:28 +0000</pubDate>
      <link>https://dev.to/blaumaus/the-tech-stack-of-an-open-source-web-analytics-saas-4pd2</link>
      <guid>https://dev.to/blaumaus/the-tech-stack-of-an-open-source-web-analytics-saas-4pd2</guid>
      <description>&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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, &lt;a href="https://swetrix.com" rel="noreferrer noopener"&gt;Swetrix&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id="languages"&gt;
  Languages
&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;a href="https://www.typescriptlang.org/" rel="noreferrer noopener"&gt;TypeScript&lt;/a&gt;: 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.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;a href="https://en.wikipedia.org/wiki/JavaScript" rel="noreferrer noopener"&gt;JavaScript&lt;/a&gt;: 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.
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id="frameworks"&gt;
  Frameworks
&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;a href="https://remix.run/" rel="noreferrer noopener"&gt;Remix&lt;/a&gt;: in my opinion it's the best frontend framework there is. It allows your React app to be rendered server-side (you may even set it up in a way where not a single byte of JS is loaded to client!). They have great docs, often release updates and overall is a very pleasant framework to work with.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;a href="https://tailwindcss.com/" rel="noreferrer noopener"&gt;Tailwind CSS&lt;/a&gt;: 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.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;a href="https://naver.github.io/billboard.js/" rel="noreferrer noopener"&gt;billboard.js&lt;/a&gt;: we use it as a charting library on our dashboards. Quite a decent and customisable charting library, based on D3.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;a href="https://nestjs.com/" rel="noreferrer noopener"&gt;Nest.js&lt;/a&gt;: 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.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;a href="https://www.djangoproject.com/" rel="noreferrer noopener"&gt;Python Django&lt;/a&gt;: our blog (you're reading it right now!) is written using this framework.
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id="databases"&gt;
  Databases
&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;a href="https://www.mysql.com/" rel="noreferrer noopener"&gt;MySQL&lt;/a&gt;: 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.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;a href="https://clickhouse.com/" rel="noreferrer noopener"&gt;Clickhouse&lt;/a&gt;: 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.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;a href="https://redis.io/" rel="noreferrer noopener"&gt;Redis&lt;/a&gt;: a great and well-documented in-memory key-value database. We use it for rate-limiting, caching and session management.
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id="hosting"&gt;
  Hosting &amp;amp; Infrastructure
&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;a href="https://www.hetzner.com/" rel="noreferrer noopener"&gt;Hetzner&lt;/a&gt;: very reliable and affordable hosting &amp;amp; dedicated servers provider. Perfect for side-projects and SaaS companies.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;a href="https://fly.io" rel="noreferrer noopener"&gt;Fly&lt;/a&gt;: we use it for hosting our frontend code. It's a great, scalable and affordable service which allows your app to run in several regions across the globe which will make it load very fast.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;a href="https://njal.la/" rel="noreferrer noopener"&gt;Njalla&lt;/a&gt;: great privacy-focused domain registrar. Fair pricing (they also accept crypto), easy to use dashboard. Supports 2FA, PGP, API access.
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id="email"&gt;
  Email
&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;a href="https://postmarkapp.com/" rel="noreferrer noopener"&gt;Postmark&lt;/a&gt;: 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.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;a href="https://www.fastmail.com/" rel="noreferrer noopener"&gt;Fastmail&lt;/a&gt;: inbound emails provider. Very simple and easy to use.
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id="payments"&gt;
  Payments
&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;a href="https://www.paddle.com/" rel="noreferrer noopener"&gt;Paddle&lt;/a&gt;: subscriptions and credit card processing service. Their documentation is amazing, dashboards are quite simple and easy to use.
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id="support"&gt;
  Support
&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;a href="https://github.com/idoco/intergram" rel="noreferrer noopener"&gt;Intergram&lt;/a&gt;: an amazing, Telegram-based and open-source in-app support chat. Easy to customise and integrate into existing apps.
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id="support"&gt;
  Development
&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;a href="https://code.visualstudio.com/" rel="noreferrer noopener"&gt;VS Code&lt;/a&gt;: beautiful semi code editor / semi-IDE, especially when using extensions. The best code editor for web development.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;a href="https://github.com/" rel="noreferrer noopener"&gt;Github&lt;/a&gt;: source code hosting and versioning, we also host our tasks kanban board there.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;a href="https://pnpm.io/" rel="noreferrer noopener"&gt;pnpm&lt;/a&gt;: fast and disk space efficient JavaScript package manager.
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id="other"&gt;
  Other
&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;a href="https://swetrix.com"&gt;Swetrix&lt;/a&gt;: we use our tool to monitor our websites traffic and performance🙂.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;a href="https://uptimerobot.com/" rel="noreferrer noopener"&gt;UptimeRobot&lt;/a&gt;: quite a decent uptime monitoring service. Their free tier includes 50 monitors, which is totally more than enough for us.
  &lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>analytics</category>
      <category>opensource</category>
      <category>saas</category>
      <category>startup</category>
    </item>
  </channel>
</rss>
