new exerimental tools, lessons learned about beatleader authentication (it requires steamworks sdk and steam ticket handling)

This commit is contained in:
Brian Lee
2025-08-28 22:53:37 -07:00
parent 6c2066d784
commit 3460bfe401
46 changed files with 3036 additions and 124 deletions
+13 -2
View File
@@ -1,6 +1,6 @@
# sv
# Plebsaber.stream
Everything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli).
BeatLeader‑powered tools for Beat Saber.
## Creating a project
@@ -14,6 +14,17 @@ npx sv create
npx sv create my-app
```
## BeatLeader OAuth setup
Set these environment variables (e.g. in your process manager or `.env` when using adapter‑node):
```
BL_CLIENT_ID=your_client_id
BL_CLIENT_SECRET=your_client_secret
```
Then start the dev server and visit `/auth/beatleader/login` to authenticate. Tokens are stored in httpOnly cookies and attached to all server‑side BeatLeader API calls.
## Developing
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server: