Skip to content
synthalorianPublic

About

Static site generator with functional DAG transform pipeline. Markdown in, HTML out. OCaml.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

24 Commits

Folders and files

Repository files navigation

crt

crt

Static site generator that treats content as a signal pipeline — markdown in, processed through a functional DAG of transforms, HTML out.

Language: OCaml
Constraint: Text is the universal interface
Stack: dune, menhir, custom markdown parser, tyxml


Features

  • Markdown input with YAML frontmatter
  • Functional DAG transform pipeline
  • Each node: pure function (parse → highlight → toc → linkcheck → minify)
  • Hot reload via file watcher
  • Incremental builds (only changed nodes)
  • Plugin system (OCaml modules)
  • Theme engine with template inheritance

Development Plan

  • Phase 1: Markdown parser (menhir grammar)
  • Phase 2: DAG pipeline engine (functional composition)
  • Phase 3: Core transforms: parse, highlight, toc
  • Phase 4: HTML generation (tyxml)
  • Phase 5: File watcher + hot reload
  • Phase 6: Incremental build cache
  • Phase 7: Plugin system (dynamic module loading)
  • Phase 8: Theme engine and template inheritance

Getting Started

Prerequisites

  • OCaml toolchain

Build

dune build

Test

dune test

Run

dune exec crt

Architecture

See PLAN.md for detailed architecture decisions and implementation notes.


License

Apache-2.0


☕ Support the Developer

If this project saved you time, solved a problem, or just made your day a little more neon, you can fuel the next one:

Buy Me A Coffee

About

Static site generator with functional DAG transform pipeline. Markdown in, HTML out. OCaml.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages