Template for a blog site using Wunphile
  • TypeScript 92.6%
  • CSS 5.5%
  • Dockerfile 1.1%
  • JavaScript 0.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-30 00:50:36 -04:00
.vscode modernize 2026-03-07 13:33:20 -05:00
blog Include Prettier rules, format with Prettier 2025-07-22 18:11:44 -04:00
src upgrade to Wunphile 1.2.0, upgrade other dependencies, make tsconfig more strict 2026-10-22 09:37:00 -04:00
static Include Prettier rules, format with Prettier 2025-07-22 18:11:44 -04:00
.dockerignore Improve docker setup 2025-01-28 08:09:05 -05:00
.gitignore Rewrite for Wunphile 2024-10-16 11:01:40 -04:00
config.ts Rewrite for Wunphile 2024-10-16 11:01:40 -04:00
Dockerfile upgrade to Wunphile 1.2.0, upgrade other dependencies, make tsconfig more strict 2026-10-22 09:37:00 -04:00
index.ts Update for Wunphile 1.1.0 and include client behaviors 2025-01-28 07:33:59 -05:00
LICENSE Initial commit 2022-05-19 02:51:31 +00:00
package-lock.json upgrade to Wunphile 1.2.3, upgrade marked and @types/node 2026-10-30 00:46:26 -04:00
package.json upgrade to Wunphile 1.2.3, upgrade marked and @types/node 2026-10-30 00:46:26 -04:00
prettier.config.ts upgrade to Wunphile 1.2.0, upgrade other dependencies, make tsconfig more strict 2026-10-22 09:37:00 -04:00
README.md document Zed's behavior with HTML in string templates 2026-10-30 00:50:36 -04:00
tsconfig.json upgrade to Wunphile 1.2.0, upgrade other dependencies, make tsconfig more strict 2026-10-22 09:37:00 -04:00
wrangler.jsonc upgrade to Wunphile 1.2.0, upgrade other dependencies, make tsconfig more strict 2026-10-22 09:37:00 -04:00

Wunphile Template

Template for a site using Wunphile.

It implements a few basic pages, and a simple markdown blog.

Prerequisites

  • Node.js 24+

Usage

To build the site, run node --run build.

To run the site in development mode, run node --run dev.

To format all code with Prettier, run node --run fmt.

To check TypeScript types, run node --run check.

TypeScript

This template uses TypeScript, but takes advantage of Node's built-in type stripping feature to run TypeScript code directly without a build step.

This allows hot reloading to work without resorting to a complicated build system like Vite.

Docker

You can also build the site using Docker:

mkdir -p dist
docker build -t wunphile-template .
docker run -v ./dist:/data/dist wunphile-template

The above also works with Podman if you replace docker with podman.

Cloudflare Workers

To configure your project for Cloudflare Workers, add Wrangler to your project:

npm install -D wrangler@latest

Edit the project name in wrangler.jsonc to what you want, then add the following script to your package.json:

{
	"scripts": {
		"deploy": "node --run check && node --run build && wrangler deploy"
	}
}

You can now deploy the site to Cloudflare Workers by running node --run deploy.

To set up automatic deployment, import your repository into Cloudflare Workers and set node --run build as your build command, and node --run deploy as your deploy command.

IDE Integration

Wunphile uses ES6 template literals for composing HTML. Different IDEs need different configuration to provide syntax highlighting and intellisense for HTML inside template literals.

VSCode / Cursor / Anything based on VSCode

Install the es6-string-html extension.

JetBrains IDEs (WebStorm, IntelliJ IDEA, etc.)

Recent versions of JetBrains IDEs should support syntax highlighting and intellisense for HTML inside template literals out of the box.

Zed

Zed with the HTML plugin installed does syntax highlighting for HTML inside template literals, but I can't find a plugin that provides intellisense for them. If you know one, please open an PR to add it to this README.