ContentProcessor (Stage 1)
Extracts YAML 1.2 frontmatter via noyalib, parses CommonMark + GFM tables, footnotes, and strikethrough via pulldown-cmark, generates semantic TOC navigation, and enforces an explicit HTML tag allowlist.
Rust Content Processing · Open Source
An open-source, high-throughput static site generator and content processing pipeline engineered in pure memory-safe Rust. Converts CommonMark + GFM with YAML 1.2 frontmatter and cached Handlebars templates into validated, minified HTML5 in ~28.0 µs per page as both an embeddable crate and standalone CLI.
Composable Rust Architecture
Stop maintaining separate Markdown parsers for backend services and monolithic binaries for documentation portals. Share the exact same trait-driven Rust pipeline across your CLI builds, CI/CD jobs, and web microservices.
View Production WorkflowsEngine Architecture
Three-stage trait pipeline combining memory-safe Rust execution, bounded DoS budgets, and dual Apache-2.0 or MIT licensing.
Extracts YAML 1.2 frontmatter via noyalib, parses CommonMark + GFM tables, footnotes, and strikethrough via pulldown-cmark, generates semantic TOC navigation, and enforces an explicit HTML tag allowlist.
Compiles and caches .hbs templates in a thread-safe parking_lot::RwLock registry. Supports nested partials, custom TemplateHelper implementations, balanced-brace checks, and strict variable validation.
Verifies HTML5 structural tag balance across void and optional-close elements, injects escaped meta tags into head, minifies HTML/CSS/JS in ~8.1 µs via minify-html, and manages static asset caching.
The Processing Pipeline
Validate 10 MB content budgets, sanitize file paths, and parse YAML 1.2 frontmatter into Schema.org JSON-LD metadata.
noyalib 0.0.58 frontmatter engineTransform CommonMark + GFM tables, footnotes, and strikethrough into sanitized HTML with automated Table of Contents.
~4.2 µs pulldown-cmark 0.13.5Evaluate compiled .hbs Handlebars layouts, partials, and custom helpers from the concurrent RwLock cache.
~12.5 µs handlebars 6.2 renderVerify HTML5 tag balance, inject escaped meta tags, and collapse HTML, inline CSS, and JS whitespace.
~8.1 µs minify-html 0.18.1
High-Performance Pipeline
Engineered for documentation portals and backend services requiring bounded memory budgets, lock-free read concurrency, and zero unsafe blocks.
View Architecture BlueprintDeveloper Quickstart
Run as a standalone CLI binary to scaffold, build, and live-serve static sites, or add the crate to your Cargo.toml to embed the pipeline in Rust.
Defense-in-Depth Security
NucleusFlow enforces #![forbid(unsafe_code)] across every module (ADR-0001), rejects path traversal via property-tested sanitize_path (ADR-0003), sanitizes HTML against an explicit tag allowlist, and caps input budgets with zero outbound network calls.
Clear Answers
Yes. Unlike monolithic static site binaries such as Hugo or Zola, NucleusFlow is published on Crates.io as both a library crate (nucleusflow) and a standalone CLI binary. You can embed ContentProcessor, HandlebarsRenderer, HtmlGenerator, or the NucleusFlow orchestrator directly inside your Rust services.
NucleusFlow parses CommonMark plus GitHub Flavored Markdown (tables, footnotes, strikethrough) via pulldown-cmark 0.13.5, extracts YAML 1.2 frontmatter via noyalib 0.0.58, compiles Handlebars (.hbs) templates via handlebars 6.2, and minifies HTML5 via minify-html 0.18.1.
NucleusFlow requires Rust 1.89.0 or newer (2021 Edition). This floor is enforced at compile time via Cargo.toml and build.rs and verified in CI.
Yes. NucleusFlow is dual-licensed under the Apache-2.0 and MIT open-source licenses, allowing commercial and open-source embedding without copyleft restrictions.
Developer Quickstart
Get started in minutes with the Rust library crate or CLI binary across Linux, macOS, and Windows.
Install NucleusFlow