Skip to content
Fourohtwo

code.halowerk.com/v1/protobuf-jsonschema

Convert Protobuf (.proto) messages to JSON Schema following the official ProtoJSON mapping, or a JSON Schema to a proto3 message definition with stable JSON names.

BaseAnswering
POSThttps://code.halowerk.com/v1/protobuf-jsonschema

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://code.halowerk.com/v1/protobuf-jsonschema", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"direction":"proto_to_jsonschema","message":"Order","proto":"syntax = \"proto3\";\npackage shop.v1;\nimport \"google/protobuf/timestamp.proto\";\nmessage Order {\n  int64 id = 1;\n  string customer_name = 2;\n  repeated string tags = 3;\n  google.protobuf.Timestamp created_at = 4;\n}"}),
});
console.log(await res.json());

Example input

{
  "direction": "proto_to_jsonschema",
  "message": "Order",
  "proto": "syntax = \"proto3\";\npackage shop.v1;\nimport \"google/protobuf/timestamp.proto\";\nmessage Order {\n  int64 id = 1;\n  string customer_name = 2;\n  repeated string tags = 3;\n  google.protobuf.Timestamp created_at = 4;\n}"
}