This repo contains the API for Byg - the beautiful, unhinged, open social media. The main Byg-hosted API is accessible here.
Terms of Service: Here
- We love ash.
- BYGger = BETter (not a reference to an upcoming online gambling service).
- I said so.
- Byg is open source under the Apache License 2.0.
Byg Mobile for iOS is releasing soon as an open source repo. Stay tuned!
Run a local Postgres instance:
docker run --name byg-postgres \
-e POSTGRES_USER=byg \
-e POSTGRES_PASSWORD=byg \
-e POSTGRES_DB=byg \
-p 5432:5432 \
-d postgres:16Set .env:
DATABASE_URL="postgres://byg:byg@localhost:5432/byg"
DATABASE_SSL="disable"Apply schema:
bun run db:pushIf you have legacy local data in data.db, keep that file and run:
SQLITE_PATH=./data.db bun run db:migrate:sqliteThis copies users, sessions, posts, images, comments, follows, messages, and short links into your Postgres DB and syncs serial sequences.
Byg thanks to the following people and projects:
- TypeScript Language
- Bun Runtime (Buntime)
- Elysia js
- Render.com
- Dimabooboobear
- Allie