Mirror of github.com/ewanc26/atproto-snake
  • TypeScript 50.8%
  • Svelte 46.8%
  • Nix 1.1%
  • HTML 0.6%
  • JavaScript 0.4%
  • Other 0.3%
Find a file
2026-07-16 18:22:45 +01:00
src docs: add comments to source files 2026-06-29 21:59:28 +01:00
static feat: add OAuth with granular scope for writing game scores 2026-04-14 22:55:03 +01:00
.cspell.json feat(game): implement game over page and refactor navigation 2025-06-20 18:18:53 +01:00
.gitignore Initial Svelte setup 2025-06-19 14:39:53 +00:00
.npmrc Initial Svelte setup 2025-06-19 14:39:53 +00:00
.pre-commit-config.yaml feat: add OAuth with granular scope for writing game scores 2026-04-14 22:55:03 +01:00
.prettierignore Initial Svelte setup 2025-06-19 14:39:53 +00:00
.prettierrc Initial Svelte setup 2025-06-19 14:39:53 +00:00
AGENTS.md docs: correct agent guidance after source audit 2026-07-16 18:22:45 +01:00
flake.nix feat: add nix flake 2026-04-29 22:46:25 +01:00
package-lock.json refactor(components): extract footer into separate component and update dependencies 2025-06-20 14:44:43 +01:00
package.json refactor: simplify auth init flow and bump version 2026-04-14 23:11:10 +01:00
pnpm-lock.yaml chore: update dependencies to latest versions 2026-04-09 12:46:46 +01:00
README.md docs: clarify AT Protocol trademark use 2026-07-16 14:14:07 +01:00
svelte.config.js docs: add comments to source files 2026-06-29 21:59:28 +01:00
TRADEMARKS.md docs: clarify AT Protocol trademark use 2026-07-16 14:14:07 +01:00
tsconfig.json Initial Svelte setup 2025-06-19 14:39:53 +00:00
vite.config.ts docs: add comments to source files 2026-06-29 21:59:28 +01:00

Snake for AT Protocol

Snake game built with SvelteKit, auth via AT Protocol.

Independent project; see the trademark notice.

Also available on Tangled

Features

  • Log in with your AT Protocol handle (e.g., ewancroft.uk)
  • High scores saved to the AT Protocol
  • Arrow keys on desktop, swipe on mobile

Getting started

git clone https://github.com/ewanc26/atproto-snake.git
cd atproto-snake
npm install
npm run dev

Build

npm run build

How to play

  1. Log in with your AT Protocol handle, app password, and optional PDS URL
  2. Arrow keys to steer the snake
  3. Eat the food (green squares), grow longer, don't hit walls or yourself
  4. Score auto-submits if it's greater than zero

Project layout

  • src/lib/auth/ — AT Protocol auth
  • src/lib/snake/ — Game logic
  • src/routes/ — Login and game pages
  • src/lib/components/ — Reusable components
  • static/client-metadata.json — OAuth client metadata

Licence

MIT