Something went wrong. Try again.
The social RSS reader. Built on AT Protocol. forked from julien.rbrt.fr/glean
Something went wrong. Try again.
readme.md
Glean web (SvelteKit) #
SSR frontend for Glean. Talks to the Go JSON API (see ../internal/server).
Develop #
bun install
# Start the Go API on :8080 first (make dev-api), then:
GLEAN_API_URL=http://localhost:8080 bun run dev
Open http://localhost:3000.
How it talks to the API #
src/hooks.server.tsproxies every/api/*request to the Go server (GLEAN_API_URL), forwarding cookies and headers. The same hook also loads the current user for the layout.src/lib/api.tswraps the endpoints. Server load functions useendpointsFor(event.fetch)so SvelteKit's per-request fetch resolves relative/apiURLs during SSR; browser code uses the defaultendpoints.
Build #
bun run build # adapter-node output in ./build