Document management with template-based generation, full version history, and sharing controls. Create reports from Handlebars templates, export to PDF, track every edit with a diff-based changelog, and share with granular per-user permissions. Works with nself-crdt for real-time collaborative editing.
Set your license key with nself license set nself_pro_... before installing.
nself license set nself_pro_...
nself plugin install documents
nself build
nself startcurl -X POST http://127.0.0.1:3728/documents/generate \
-H "Content-Type: application/json" \
-d '{
"template": "invoice",
"data": {"client": "Acme Corp", "amount": 1500, "due_date": "2026-06-01"},
"format": "pdf"
}'curl -X POST http://127.0.0.1:3728/documents \
-H "Content-Type: application/json" \
-d '{"title": "Q2 Planning", "content": "# Q2 Goals\n\n..."}'| Endpoint | Method | Description |
|---|---|---|
/documents | GET, POST | List or create documents |
/documents/:id | GET, PUT, DELETE | Read, update, or delete a document |
/documents/:id/versions | GET | List version history with diffs |
/documents/:id/export | GET | Export as PDF or DOCX (?format=pdf) |
/documents/generate | POST | Generate document from template and data |
/documents/templates | GET, POST | List or create document templates |
/health | GET | Plugin health check |
nself plugin remove documentsCategory: Data | Last Updated: April 2026 | Plugin Version 1.1.1