prpl
prpl copied to clipboard
Lightweight library for building fast static sites
PRPL
PRPL is a lightweight library for building fast static sites. It does two things:
- Interpolate your content into HTML files
- Maximize your site's runtime speed with the PRPL pattern
Features
- Web-compliant HTML API
- Zero configuration
- Zero or near-zero dependency modules
- CLI, CJS and ESM module interfaces
- Fully typed
- Option to define your own template syntax
- Option to ship zero JavaScript
Why?
All the static site generators I have tried have one or more of these problems:
- Built on an underlying framework like React, Vue, etc.
- Relies on complex build tools like Webpack, Babel, etc.
- Depends on a massive tree of modules that force constant maintenance
- Has interfaces, source code and documentation that cannot be understood in one sitting
- Requires that your site source be organized in a way that looks nothing like your output
- Forces a huge leap from hello world to a real world implementation
PRPL is my answer to these gripes.
Usage
PRPL requires Node LTS or greater.
To clone the minimal starter and run it locally, run:
npx -y create-prpl@latest
Visit prpl.dev for full documentation, guides and design decisions.