Documentation
brij.js is a schema-driven library for embedding business flows into external websites without iframes or redirects.
In this section
- Installation - npm, CDN, TypeScript setup
- Quick Start - Working form in 10 lines
- API Reference -
init,open,close,destroy,createBrij - Schema Spec - Full field and validation reference
- Panel vs Modal - Display mode options
- Examples - React, Vue, Next.js, vanilla JS
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- receivesmultipart/form-data, returns{ "success": true }
Both requests carry the header X-Brij-API-Key: <your-key>. Validate it on your server.