Skip to content

Pure functional static site generator in Haskell with type-safe templates

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE.txt
Notifications You must be signed in to change notification settings

hyperpolymath/casket-ssg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

casket-ssg

Palimpsest

RSR Compliant poly-ssg

Pure functional static site generator in Haskell.

Who Is This For?

  • Haskell developers who want to build sites with tools they know and love

  • Functional programming enthusiasts who appreciate compositional design

  • Teams requiring reliability where type safety prevents runtime surprises

  • Anyone frustrated by dynamic language site builders that fail at deploy time

Why casket-ssg?

Type Safety That Matters

Your site structure is checked at compile time. Missing templates, broken links, malformed frontmatter - all caught before deployment, not discovered by users.

Composable Pipelines

Content transformations compose like functions should. Chain markdown processing, templating, and asset handling with confidence that types align.

Lazy Large-Site Builds

Haskell’s lazy evaluation means casket-ssg only processes what’s needed. Incremental builds are natural, not bolted on.

Pandoc Integration

Best-in-class document conversion with full Pandoc support. Markdown, reStructuredText, Org-mode - your content, your format.

Quick Start

# Install
cabal update
cabal install casket-ssg

# Create a site
casket-ssg init my-site
cd my-site

# Build
casket-ssg build

# Preview locally
casket-ssg serve

Features

  • Compile-time template validation - broken templates don’t build

  • Strong frontmatter types - YAML parsing with schema enforcement

  • Asset pipeline - CSS/JS processing with hash-based cache busting

  • Incremental builds - only rebuild what changed

  • Live reload - instant preview during development

  • RSS/Atom feeds - generated automatically from content

  • Sitemap generation - SEO-ready output

Requirements

  • GHC 9.0 or later

  • Cabal 3.0 or Stack 2.0

Part of poly-ssg

casket-ssg is part of the poly-ssg family of language-native static site generators, unified through MCP integration.

License

PMPL-1.0-or-later

Sponsor this project

Packages

No packages published

Contributors 3

  •  
  •  
  •