# WaldJS
[](https://www.npmjs.com/package/@waldjs/cli)
[](LICENSE)
A content-first web framework for building fast, static-first websites. Write `.wald` files — part Markdown frontmatter, part HTML template — and WaldJS compiles them into a static site.
Requires Node.js 20.9 or newer. For repository development, use Node.js 22 as in CI.
---
## Quick start
```bash
npm create wald@latest my-forest
cd my-forest
npm run dev
```
Or with pnpm:
```bash
pnpm create wald my-forest
cd my-forest
pnpm dev
```
`create wald` scaffolds the project and installs dependencies for you — no separate install step needed.
---
## The `.wald` file format
A `.wald` file has two parts separated by `---`:
```wald
---
const title = "Hello World"
---
Welcome to your forest.
``` The top part (frontmatter) is plain JavaScript/TypeScript. The bottom part is an HTML template where `{expression}` interpolates values. All interpolated values are HTML-escaped by default. Format one file, several files, or a complete directory with the built-in formatter. It supports `.wald`, HTML, CSS, JavaScript (including JSX) and TypeScript (including TSX): ```bash wald format src wald format src/pages/index.wald src/assets/site.css src/assets/site.js wald format --check src ``` `--check` does not write files and exits with status 1 when formatting is needed, making it suitable for CI. In `.wald` files the formatter indents the HTML template and formats JS/TS frontmatter, JavaScript/TypeScript scripts, JSON data scripts and CSS style blocks. Whitespace-sensitive `` and `