Recommended stack · Optimized for self-hosting

Open-Source SaaS

A self-hostable product stack that keeps every critical runtime component under team control.

Responsibilities
6
Open source
6 choices
Self-hostable
6 choices

What it is for

Combine a content-efficient web framework, a compact TypeScript API, PostgreSQL, application-owned authentication, containers, and an integrated OpenTelemetry-native observability backend. The stack is designed to remain portable across infrastructure providers.

Who should use it

Teams with operational capacity that value portability, inspectable systems, and a credible self-hosting path.

From decision to first build

Start with this stack.

Choose the pieces you want, then copy the build prompt into your coding assistant. No account needed.

Optional capabilities start as “Not needed”. Hosted providers add external dependencies, including to the open-source stack.

Package manager: pnpm. All TypeScript setup, script, and CI instructions use pnpm.

Astro keeps browser JavaScript deliberate and works well for product surfaces with substantial content and selective interactivity.

Open SourceRead the source ↗

Fastify provides a focused Node.js HTTP foundation with a mature plugin model and low framework overhead.

Open SourceRead the source ↗

PostgreSQL keeps transactional product data portable and independently operable.

Open SourceRead the source ↗

Better Auth provides application-owned identity without requiring a proprietary identity service.

Open SourceRead the source ↗

OCI containers make the runtime explicit and portable across a wide range of infrastructure.

Open SourceRead the source ↗

SigNoz offers one self-hostable surface for OpenTelemetry traces, metrics, logs, and alerts.

Generous Free TierRead the source ↗
Identity verification (KYC) · Not needed

Optional — add only when your product needs this capability.

Billing · Not needed

Optional — add only when your product needs this capability.

Transactional email · Not needed

Optional — add only when your product needs this capability.

File storage · Not needed

Optional — add only when your product needs this capability.

Background jobs · Not needed

Optional — add only when your product needs this capability.

Product analytics · Not needed

Optional — add only when your product needs this capability.

API contracts · Not needed

Optional — add only when your product needs this capability.

Monorepo tooling · Not needed

Optional — add only when your product needs this capability.

Agent integration · Not needed

Optional — add only when your product needs this capability.

Agent instructions · Not needed

Optional — add only when your product needs this capability.

AI example · Not needed

Optional — add only when your product needs this capability.

CRUD example · Not needed

Optional — add only when your product needs this capability.

Data access / ORM · Not needed

Optional — add only when your product needs this capability.

Database hosting · Not needed

Optional — add only when your product needs this capability.

starter.md

Updates as you choose your technologies.

Responsibility map

One choice for each job.

  1. 01

    Web application

    Astro

    Astro keeps browser JavaScript deliberate and works well for product surfaces with substantial content and selective interactivity.

    Open sourceOpen SourceSelf-hostable
    Alternatives

    Next.js Choose Next.js when the product needs a more integrated, React-centered full-stack model.

  2. 02

    API layer

    Fastify

    Fastify provides a focused Node.js HTTP foundation with a mature plugin model and low framework overhead.

    Open sourceOpen SourceSelf-hostable
  3. 03

    Database

    PostgreSQL

    PostgreSQL keeps transactional product data portable and independently operable.

    Open sourceOpen SourceSelf-hostable
  4. 04

    Authentication

    Better Auth

    Better Auth provides application-owned identity without requiring a proprietary identity service.

    Open sourceOpen SourceSelf-hostable
  5. 05

    Packaging and deployment

    Docker Engine

    OCI containers make the runtime explicit and portable across a wide range of infrastructure.

    Open sourceOpen SourceSelf-hostable
  6. 06

    Observability

    SigNoz

    SigNoz offers one self-hostable surface for OpenTelemetry traces, metrics, logs, and alerts.

    Open sourceGenerous Free TierSelf-hostable
    Alternatives

    Prometheus Choose Prometheus first when metrics and alerting are the immediate need and an integrated platform is premature.

Open-source profile

What you can own.

Every selected component is open source and can run on infrastructure controlled by the team. Individual licenses and trademark terms still need review before redistribution.

Cost profile

Where cost appears.

There are no mandatory software subscription fees, but compute, storage, email delivery, backups, and the labor of operating the stack are real costs.

Tradeoffs

What this stack asks you to accept.

  • Owning the runtime means owning upgrades, backups, incident response, and capacity planning.
  • Astro and a separate API create a clearer boundary but more deployment topology than one full-stack framework.
  • Self-hosting is not automatically cheaper once operational time is counted.

Editorial note

Stack choices are editorial recommendations, not an automatic popularity ranking. Pricing and capabilities can change.

Sources checked

Astro rendering and islands architectureSep 4, 2026

OpenTelemetry-native observability platform capabilitiesSep 4, 2026