| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
A tiny, dependency-free implementation of the Code-OSS user-data-sync REST contract — the same protocol the editor's built-in Settings Sync speaks.
It exists to:
LevelCode Cloud implements the same contract for managed sync.
PORT=9595 node tools/sync-server/server.js
# → LevelCode reference sync server on http://localhost:9595branding/product.overlay.json → configurationSync.store.url points the editor here (http://localhost:9595) for dev. Before release, point it at the managed LevelCode Cloud host.
node tools/sync-server/test.js # round-trips the REST contract (manifest, ETags, isolation)| Method · Path | Behavior |
|---|---|
| GET /v1/manifest | { session, ref, latest: { <type>: <ref> }, collections: {} }; If-None-Match → 304 |
| GET /v1/resource/{type}/latest | content + ETag; If-None-Match → 304; none → 204 |
| POST /v1/resource/{type} | write; If-Match precondition → 412 on mismatch; returns new ETag |
| GET /v1/resource/{type}/{ref} | a historical version |
| GET/POST/DELETE /v1/collection[...] | minimal (no real profiles in v1) |
| Back | FazBrowse Home | New Git URL |