- Python 78.8%
- Jinja 7.1%
- Shell 7.1%
- CSS 6.5%
- Dockerfile 0.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| app | ||
| conf | ||
| scripts | ||
| .env.local.example | ||
| .gitignore | ||
| apply_local_env.sh | ||
| build.sh | ||
| CHANGELOG.md | ||
| LICENSE | ||
| manifest.json | ||
| README.md | ||
FabriqueDoc for YunoHost
SVG-based document generation platform for social media, presentations, and print.
This repository contains only the YunoHost packaging (install/upgrade/restore
scripts, systemd unit, nginx config, config panel). The application code lives in
the fabriquedoc-engine
repository. The YunoHost scripts clone that engine and then install only the
themes from fabriquedoc-theme-jevalideca.
Installation
yunohost app install https://git.jevalide.ca/partage/fabriquedoc_ynh.git
Upgrade
yunohost app upgrade fabriquedoc -f https://git.jevalide.ca/partage/fabriquedoc_ynh.git
Features
- Markdown-to-SVG document generation
- Multiple social media formats (Instagram, Facebook, LinkedIn, Twitter, Bluesky, Pinterest, Google Business)
- Presentation formats (16:9, 4:3)
- Print formats (A4, US Letter)
- Export to PDF, PNG, JPG, WebP, GIF, MP4, WebM, PPTX, ODP, DOCX, XLSX
- Custom dimensions
- Gradio web UI at
/ui/ - REST API at
/generer/ - MCP protocol support at
/mcp/ - Engine source from
partage/fabriquedoc-engine - Je valide ça themes from
francois/fabriquedoc-theme-jevalidecaonly
Accounts & API Keys
Access to the MCP API is managed with durable API keys:
- Create an account at
/accounts/register(email + password). - Confirm your email via the link sent to your inbox.
- Log in at
/accounts/loginand create an API key (valid until revoked, or for one year by default). - Use the key as a Bearer token in your MCP client configuration.
Example MCP configuration:
{
"mcpServers": {
"fabriquedoc": {
"type": "remote",
"url": "https://your.domain/mcp",
"headers": {
"Authorization": "Bearer fd_..."
}
}
}
}
The web UI shows this snippet ready-to-paste for each new key. Keys are stored
hashed (SHA-256) and can be revoked at any time from /accounts/keys.
Email (SMTP)
Verification emails are sent via SMTP. Configure in the YunoHost web admin (App Configuration > Email) or via CLI:
yunohost app config set fabriquedoc smtp_host mail.your.domain
yunohost app config set fabriquedoc mail_from noreply@your.domain
yunohost app config set fabriquedoc smtp_port 587
yunohost app config set fabriquedoc smtp_user myuser
yunohost app config set fabriquedoc smtp_pass mypass
Settings are stored in <install_dir>/fabriquedoc.env and persist across upgrades.
Source repositories
The package deliberately keeps the engine and themes separate:
partage/fabriquedoc-engine -> install_dir/app
francois/fabriquedoc-theme-jevalideca -> install_dir/app/backend/themes/*
Only theme repository directories containing theme.yaml are copied. Examples,
generated documents, and helper scripts are not installed.
Configuration
The app runs as a systemd service and is proxied through nginx. Configuration
is available via the YunoHost admin panel or the config panel at
/etc/yunohost/apps/$app/config_panel.toml.
License
Apache-2.0 — Copyright 2024 François Pelletier / Je valide ça, service-conseil