zubeyralmaho/spatiad ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple open source dispatch server for a real time fleet app.
I want one Rust app that I can start locally and it just works, with no database or Redis setup. Drivers should connect over WebSocket and keep sending their location and status, then my backend should be able to create a job with a pickup point and have the system find the nearest available driver using hex based map indexing. When a driver accepts, lock the match and send a signed callback to my backend. If they reject or time out, keep trying the next driver automatically.
Please include the basic health endpoints, job status and job event history, token based auth, and rate limiting. It would be great if there’s a small TypeScript SDK too so I can call the API easily from a web app or backend. Use the current docs online if you need to, and make the whole thing feel like a clean production ready service I can run with Docker.
Are you gonna build this?
make sure you review the code using coderabbit