Repository navigation
Draft v0 spec: shared presence over WebSocket - #1
Merged
Merged
Conversation
Defines the connection, the 1D route format with velodrome-250 as the first route, join/update/leave messages, self-declared app IDs and public usage statistics. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
First draft of the v0 protocol: shared presence on routes, over one WebSocket per app (
wss://<host>/v0). Each app keeps its own physics and reports its riders' positions; the server relays them to the other apps.spec/v0.md: the specification (connection, routes, app IDs, messages, errors,/v0/stats, limits, privacy)routes/velodrome-250.json: the first shared route, a flat 250 m loopschemas/: JSON Schemas for route files, app messages, server messages and statsexamples/: every JSON example in the spec as a file, plus invalid app messages named<error code>--<description>.json. The reference server tests against these.apps.md: optional list of app IDs (no registration needed; IDs are self-declared)tools/validate.py+ CI: checks routes, schemas, examples, and that the spec's JSON blocks match the example filesTest plan
python3 tools/validate.pyexits 0design-v0) passes its tests against these examples🤖 Generated with Claude Code