Skip to the content
Vaubaan Gateway

Write a plugin for your service

A plugin teaches Vaubaan one service — its tools, how each call is cut into permissions, and five plain facts per permission that place it on a row — and you write it with the published kit, without reading the gateway’s code.

Examples for

GitHub and Supabase: GitHub has run real tools on a live instance, Supabase its discovery only (known limitations).

Gmail, Notion and Google Calendar: modelled from their public documentation and tested against doubles; none of them has run against the real service yet (known limitations).

Five questions per permission

Can it be undone? How far does it reach? What data does it touch? What can it cost? Who sees it? You answer in plain facts; Vaubaan places the permission on its row, the same way for every service, and a reviewer reads your answers like code.

A plugin author answers five plain questions for each permission in the risk catalog. Merging into main is costly to undo, so it lands on Repairable, at a price; the kit checks it and a reviewer reads it in the catalog pull request.
A plugin author answers five plain questions for each permission in the risk catalog. Sending to a pre-approved client can never be undone, so it lands on Cannot be repaired; the kit checks it and a reviewer reads it in the catalog pull request.

Model the service first

Name its planes and entities, and where the environment lives. Cut each act into permissions on the facts that change the harm — a branch, a recipient, an environment — and fold them into a few verbs a person ticks.

Supabase, modelled: one project carries the environment (preview, staging, prod) over 4 planes (db, storage, auth, functions) and their entities. A migration becomes one permission per environment; bulk row writes have no production form. The 27 permissions fold into 5 verbs a person ticks.
Gmail, modelled: one mailbox plane with what Gmail keeps, plus zones Gmail does not have: who wrote a mail and who receives it, read from your domains and your client list. Sending becomes four permissions, one per recipient zone, each on its own row. The 19 permissions fold into 4 verbs a person ticks.

The kit

  • Start a plugin project (built): npx @vaubaan/plugin-cli init, a complete plugin for an imaginary service, its tests passing, with the instructions a coding agent follows to replace it by yours.
  • Deploy it to your instance (built): the archive goes to your gateway, pending until an administrator activates it.
  • Try a call without a gateway, run a local gateway, sign a private plugin, submit to the catalog (planned): the intents.

Read a real one

How to write, test and deploy a plugin, step by step: the author guide. GitHub’s risk catalog and its page on this site, generated from it. The repository’s own plugins and how they are reviewed: plugins/README.md.

This page as Markdown: /write-a-plugin.md