A simple, data streaming service that takes advantage of Server-Sent Events (SSE).
- To self-host, clone the repository:
git clone
-
Create a Turso database (or use a local SQLite database)
-
Create a
.env
file in the root directory and add the following:TURSO_URL={libsql://your-turso-url.turso.io} # or a local file - file:data.db TURSO_AUTH_TOKEN={YOUR_AUTH_TOKEN} # not needed for local SQLite WAL_MODE={OPTIONAL_WAL_MODE} # set to 'true' to run local SQLite in WAL mode API_KEY={OPTIONAL_API_KEY}
-
Download Bun
-
Push schema to Turso/SQLite database:
bunx drizzle-kit push:sqlite
-
(Optional) Edit server settings in
src/config.ts
Host on Vercel, Railway, a VPS with Docker, or any other hosting service that supports Bun. Make sure to add the environment variables to the hosting service.
To install dependencies:
bun install
To run:
bun run dev
Open:
http://localhost:3000