The source of the website for Turf, a compiled, memory-safe systems programming language. It holds the home page, the download page, the Learn course, the documentation, the standard library reference, the blog and the Turf Design Proposals.
Built with Astro, Tailwind CSS and MDX. The output is plain static files.
You need Node 22.12 or newer and pnpm.
pnpm install
pnpm devThe site is then at http://localhost:4321. pnpm build writes the finished site to dist/, and pnpm preview serves it.
All the writing is in src/content/, one folder for each part of the site: blog, learn, docs, stdlib, resources and tdp. A page is a Markdown or MDX file with a short block of front matter at the top. A new blog post is just a new file in src/content/blog/:
---
title: Your title
description: One sentence about the post.
date: 2026-10-15
author: Your Name
---
The post starts here.The fields each page needs are listed in src/content.config.ts, and the build tells you if one is missing or wrong.
Fixes and improvements are welcome, from a typo to a whole new guide. Open an issue or a pull request, and run pnpm build first to make sure the site still compiles.