NinFenz (abbreviated as NF) is a specification-driven document generation workshop, positioned as a "content contract layer", that is, defining the protocols, quality, and asset standards for AI to stably produce long-form content. It is itself not a model, not a collection of prompt templates, and not bound to any specific vendor SDK; its protocol domain is neutral and model-agnostic.
Main capabilities:
- Provides a CLI (nf command), an MCP server (nf serve), a desktop application, and 9 language engines.
- Supports modular assembly: through the nf assemble command, assemble a complete single-file document according to requirements, and the output can be verified.
- Built-in quality gate: the verify.sh script performs static checks and tests to ensure the output is verifiable and reproducible.
- Provides a TUI terminal interface (python tui/nf.py), supporting full-screen human-computer interaction, with menu actions invoking real CLI commands.
- Rich community resources: 111 registered packages, 363 asset files, 101 concept maps, 100 domain packs/1200 subdivisions, 370 standard catalog entries, etc.
Usage:
- Zero-installation experience: npx -y ninfenz --version (npm package name ninfenz, no paid version).
- Full installation: after cloning the repository, run python scripts/nf.py doctor for a health check, then run bash verify.sh to verify.
- Environment requirements: Python ≥ 3.11 (the core uses only the standard library, with no pip dependencies); Node ≥ 18.17 is required only for the npm entry point; on Windows, bash verify.sh requires Git Bash.
- MCP integration: run nf serve to start a read-only stdio service; configure the client's mcpServers as { "ninfenz": { "command": "npx", "args": ["-y", "ninfenz", "serve"] } }, providing 12 tools and 1 prompt (assemble_guide).
- Quick start: refer to the 6 steps in docs/quickstart.md, or run bash scripts/quickstart_check.sh for a self-check.
Applicable scenarios:
- Developers or teams that need AI to stably produce structured long documents.
- Scenarios that wish to manage the content production process in a protocolized, verifiable manner.
- Content generation toolchains that need to run offline and be model-agnostic.
Limitations and notes:
- The protocol and engines are MIT licensed; the Android app source code is PolyForm Noncommercial 1.0.0 (free for non-commercial use, commercial use requires written authorization).
- nf verify executes the gate script bundled with the target repository, which poses a security risk (CWE-94); only the current installation root is automatically trusted, and execution is denied by default for external repositories, requiring explicit --trust-repo or setting NF_TRUST_OWNERS.
- The official repository is the only one; other repositories with the same name are unauthorized mirrors.
- Some advanced features (such as desktop application details) are not elaborated in the materials, and no further information is currently provided.