Documentation

brij.js is a schema-driven library for embedding business flows into external websites without iframes or redirects.

In this section

How it works

Your server defines form schemas as JSON. brij.js fetches the schema at runtime, renders the form directly into the host page DOM, and POSTs submissions back to your server. No iframe, no redirect, no client-side schema bundling.

Server requirements

Your host server needs two endpoints per form slug:

  • GET /brij/schema/:slug - returns a BrijSchema JSON object
  • POST /brij/submit/:slug - receives multipart/form-data, returns { "success": true }

Both requests carry the header X-Brij-API-Key: <your-key>. Validate it on your server.