From esdb
Register a JSON Schema for an event type on an EventSourcingDB instance. Use when the user wants to add validation, define a schema, or enforce structure for an event type.
npx claudepluginhub thenativeweb/claude-plugins --plugin esdbThis skill is limited to using the following tools:
Register a JSON Schema for an event type on an EventSourcingDB instance. Once registered, all incoming events of that type are validated against the schema.
Provides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Conducts multi-round deep research on GitHub repos via API and web searches, generating markdown reports with executive summaries, timelines, metrics, and Mermaid diagrams.
Dynamically discovers and combines enabled skills into cohesive, unexpected delightful experiences like interactive HTML or themed artifacts. Activates on 'surprise me', inspiration, or boredom cues.
Register a JSON Schema for an event type on an EventSourcingDB instance. Once registered, all incoming events of that type are validated against the schema.
Read configuration from environment variables:
echo "ESDB_URL: ${ESDB_URL:-http://localhost:3000}"
echo "ESDB_API_TOKEN: ${ESDB_API_TOKEN:-(not set)}"
ESDB_URL if set, otherwise default to http://localhost:3000.ESDB_API_TOKEN is not set, use AskUserQuestion to ask the user for the API token.curl -s -i -X POST \
-H "authorization: Bearer ${ESDB_API_TOKEN}" \
-H "content-type: application/json" \
-d '<REQUEST_BODY>' \
"${ESDB_URL:-http://localhost:3000}/api/v1/register-event-schema"
{
"eventType": "<reverse.domain.event-type>",
"schema": {
"type": "object",
"properties": {
"title": { "type": "string" }
},
"required": ["title"],
"additionalProperties": false
}
}
curl -s -i -X POST \
-H "authorization: Bearer ${ESDB_API_TOKEN}" \
-H "content-type: application/json" \
-d "{
\"eventType\": \"io.example.book-acquired\",
\"schema\": {
\"type\": \"object\",
\"properties\": {
\"title\": { \"type\": \"string\" },
\"author\": { \"type\": \"string\" }
},
\"required\": [\"title\", \"author\"],
\"additionalProperties\": false
}
}" \
"${ESDB_URL:-http://localhost:3000}/api/v1/register-event-schema"
JSON in CloudEvents format on success.
Schemas cannot be modified or removed once registered. Returns 409 Conflict if a schema already exists for the event type.
io.eventsourcingdb.library.book-acquired).