No description
- Go 68.1%
- CSS 21.3%
- HTML 7.4%
- JavaScript 2.1%
- Makefile 1.1%
|
|
||
|---|---|---|
| docs/superpowers | ||
| static | ||
| templates | ||
| .gitignore | ||
| auth.go | ||
| Basefile | ||
| CLAUDE.md | ||
| db.go | ||
| go.mod | ||
| go.sum | ||
| handlers.go | ||
| logger.go | ||
| main.go | ||
| Makefile | ||
| README.md | ||
| todo.md | ||
| youtube.go | ||
| youtube_test.go | ||
Tub
Tub is a personal YouTube video feed manager. Log in via hosty (OIDC), submit YouTube URLs, and build a personal list of saved videos with a global feed across all users.
Running locally
DEV=1 go run .
DEV=1 skips OIDC entirely and auto-logs you in as user.
Open http://localhost:8080.
Building
go build ./...
go test ./...
Deployment
Tub is deployed via hosty, which injects the OIDC environment variables automatically.
Environment variables
| Var | Default | Description |
|---|---|---|
PORT |
8080 |
Listen port |
DB_PATH |
./tub.db |
SQLite file path |
BASE_URL |
http://localhost:8080 |
Used for absolute URLs in JSON feeds |
DEV |
— | Enable dev mode when non-empty |
OIDC_ISSUER |
— | Injected by hosty |
OIDC_CLIENT_ID |
— | Injected by hosty |
OIDC_CLIENT_SECRET |
— | Injected by hosty |
OIDC_CALLBACK_URL |
— | Injected by hosty |