Sprocket Echo
Instant signal reflection โ no fuss, pure Go.
POST /echo โ bounce your JSON back
Your payload, right back at you. No transforms, no side-effects โ just a clean bounce. Send any valid JSON and watch it echo in under a millisecond.
Try it live
curl -X POST /echo \
-H "Content-Type: application/json" \
-d '{"message":"Hello, sprocket!","count":42}'
Sample response
{
"echo": {
"message": "Hello, sprocket!",
"count": 42
},
"meta": {
"request_id": "req_3f8a7b",
"elapsed_ms": 0.312,
"sprocket": "๐",
"timestamp": "2025-03-15T10:23:04.123456Z"
}
}
Method not allowed
This gear only turns for POST requests. Any other method โ GET, PUT, DELETE, PATCH โ gets a polite but firm refusal.
Sample 405 response
{
"type": "about:blank",
"title": "Method Not Allowed",
"status": 405,
"detail": "๐ซ๐ง This signal path is locked โ only POST allowed.",
"sprocket": "๐ซ๐ง"
}
Malformed JSON
Syntax error? We'll tell you exactly where it hurts. The byte offset is extracted directly from Go's JSON parser.
Sample 400 response
{
"type": "about:blank",
"title": "Bad Request",
"status": 400,
"detail": "๐ง Your payload slipped a tooth โ check byte 23.",
"sprocket": "๐ง"
}
Service endpoints
POST /echo โ bounce your JSON back with meta
GET /healthz โ liveness probe
GET /health โ healthcheck
GET /metrics โ Prometheus telemetry