projects
atproto-snake
February 24, 2026
atproto-snake is a browser-based Snake game built with SvelteKit that uses AT Protocol for authentication and saves your high score directly to your PDS.
How to Play
- Log in with your AT Protocol handle, app password, and optionally your PDS URL
- The game starts after a short countdown
- Use arrow keys to steer the snake; swipe on touch devices
- Eat food (green squares) to grow and score points
- Avoid walls and your own tail
- Scores above zero are automatically submitted to AT Protocol on game over
Setup
git clone git@github.com:ewanc26/atproto-snake
cd atproto-snake
npm install
npm run dev
Build for production:
npm run build
Project Structure
src/lib/auth/— AT Protocol authentication logicsrc/lib/snake/— Core game logicsrc/routes/— Login and game pagessrc/lib/components/— Reusable Svelte componentsstatic/client-metadata.json— OAuth client metadata
Tech Stack
SvelteKit, Tailwind CSS, AT Protocol (@atproto/api), Vite.
Licence
MIT.
← all docs