Aspen

Team chat, if you owned it

Self-hosted · Realtime · SvelteKit

59 s

A company's whole conversation history usually lives on someone else's servers, paid for per seat. Aspen is team chat that each company runs itself. A deployment is a compose stack on the company's own machine: the app, Postgres 17 and Caddy. It comes with an installer, health checks, scheduled backups and an update command, and the company manages it from an admin console. A whole workspace exports as one .aspen file, and aspen restore loads it back, after a dry run if you want one.

It has what people expect from Slack: channels, threads, direct messages, reactions, file uploads, search, push notifications and guests, in English or Spanish. A deployment can also turn on tasks, a CRM, per-person dashboards, a calendar with two-way Google Calendar sync, calls, and an AI assistant with agents that answer in channels. The realtime layer runs in a single app process and does not scale out yet, so one box serves roughly 50 to 500 people.

Decisions

Sign-in goes through Google, Microsoft Entra or any OIDC provider, and a person also has to be an owner, hold an invite or join link, or use an email on an allowed domain. Aspen rejects anyone else before it creates an account.

Every change appends to an event log in the same transaction as the row it changes, and each event carries a sequence number. A client that reconnects asks each channel for everything after the last number it saw, and gets exactly what it missed, in order.

Authorization lives in the service layer, because agents, the WebSocket layer and background workers call the services directly and never pass through a route. Search goes through the same services and rechecks every hit, so an agent never shows a person anything that person could not already open. The search itself is Postgres full-text search, and presence and typing live in memory, so there is no search service or Redis to run.

The audit log is hash-chained. Each row carries the hash of the one before it, and the admin console's "Verify chain" shows whether anything was edited or removed.

All projects