NucleusFlow
A fast, flexible and secure static site generator written in Rust.
• Website • Documentation • Report Bug • Request Feature • Contributing Guidelines
Overview
NucleusFlow is a powerful content processing library and static site generator that prioritises security, performance and flexibility. Built in Rust, it offers a comprehensive toolkit for managing content lifecycles, from processing raw content to generating optimised static websites.
Features
-
Secure Content Processing
- Robust input validation and sanitisation
- Path traversal protection
- Memory-safe operations
- Secure defaults for all operations
-
Flexible Content Pipeline
- Markdown processing with frontmatter support
- Template rendering with Handlebars
- HTML generation with minification
- Asset management and optimisation
-
Performance Optimised
- Parallel processing capabilities
- Efficient memory usage
- Content caching
- Minimal dependencies
-
Developer Experience
- Intuitive CLI interface
- Rich error messages
- Extensive documentation
- Type-safe configurations
Installation
Add nucleusflow to your Cargo.toml:
[]
= "0.0.1"
Usage
Here's a basic example of how to use nucleusflow:
use ;
use PathBuf;
// Create configuration
let config = new.expect;
// Initialize processors with the concrete implementations
let content_processor = new;
let template_renderer = new;
let output_generator = new;
// Create NucleusFlow instance
let nucleus = new;
// Process content
nucleus.process.expect;
CLI Usage
# Create a new site
# Build the site
This example demonstrates setting up NucleusFlow with a Markdown processor, Handlebars templating, and HTML output generation.
Documentation
For full API documentation, please visit docs.rs/nucleusflow.
Examples
To explore more examples, clone the repository and run the following command:
cargo run --example example_name
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under either of
at your option.
Acknowledgements
Special thanks to all contributors who have helped build the nucleusflow library.