JavaScript client handoff¶
This page is the handoff checklist for a senior JavaScript developer or an expert LLM implementing a new AcqStore Server v2 client.
Prerequisite¶
A running AcqStore Server is required.
- End users and JavaScript developers normally receive the packaged macOS application from the AcqStore Server developers.
- Python developers may run the server from source with
uv run python -m acqstore_server.
Default server URL:
http://127.0.0.1:8767
Read in this order¶
- JavaScript client guide
- API contract
- Reference demo
- runtime OpenAPI at
http://127.0.0.1:8767/openapi.json
Minimum client behavior¶
A correct baseline client must:
- verify
/api/v2/health; - inspect
/api/v2/capabilitiesrather than hard-code formats; - open through
/api/v2/pick-and-openor/api/v2/open; - retain
sessionIdwhile using binary URLs; - validate binary byte length and sample count;
- decode
raw-f32-leexplicitly; - use
plane.shapeandplane.axesfor geometry; - treat display transpose as a client decision;
- handle stable JSON errors;
- delete the session when finished.
Acceptance check¶
The client is ready when it can reproduce the lifecycle shown by /demo/v2/ without reading the Python implementation.