Basically, there are no good all-in-one CDNs, so I built this.
- Framework: Svelte + SvelteKit
- DB: Drizzle & Postgress
- Install dependencies
npm install- Configure
.env
BETTER_AUTH_SECRET=replace-with-a-long-random-secret
BETTER_AUTH_URL=http://localhost:3000
DATABASE_URL=postgres://root:mysecretpassword@localhost:5432/local
ORIGIN=http://localhost:5173
OG_ADMIN_NAME=Your Name
OG_ADMIN_EMAIL=you@example.com
OG_ADMIN_PASSWORD=replace-with-a-strong-password- Start Postgres
npm run db:start- Push schema
npm run db:push- Start app
npm run devnpm run dev
npm run build
npm run preview
npm run db:start
npm run db:push
npm run db:generate
npm run db:migrate
npm run db:studio
npm run auth:schemaThe cdn works by taking your file, converting it to binary, and saving it in the database, Once the file is requested, we just query the database, and serve you the file, It works fast and reliably thanks to using postgress and svelte