for humanity
for humanity pixel face

for humanity

Documents, for humans.

Write Markdown. Keep the context. Share a static site.

Documentation · npm · Releases

MIT npm Node 22+ Hono + React Prototype

Quick start · Guide · API · Deployment · Korean

A little structure. Room to read.

Quick start

Node.js 22 or later and pnpm. Install the CLI in your document project:

pnpm add -D --save-exact for-humanity@0.1.2
mkdir docs

Create docs/README.md for the home page, then start the development server:

pnpm exec for-humanity dev docs

Open localhost:4321. Build and preview your static site:

pnpm exec for-humanity build docs    # Generate docs/dist
pnpm exec for-humanity preview docs

If your Markdown files are in the project root, use . instead of docs. The root README.md becomes the home page; root AGENTS.md and CLAUDE.md stay out of the site.

Version 0.1.2 supports dev, build and preview. init is planned; see the Roadmap and Changelog. Cloudflare Pages can host the generated site. See Deployment for the build settings.

Develop the kit

To work on the CLI or read this library’s guides and examples locally, run the project from source:

git clone https://github.com/minu-ha/for-humanity.git
cd for-humanity
pnpm install
pnpm dev

Open localhost:4321 to read this library’s usage guides, API reference and fictional examples.

pnpm build      # Generate templates/document/dist
pnpm preview    # Preview the static site
pnpm build:pages # Add Cloudflare Pages headers and a 404 page

Changes pushed to main update the documentation site. A stable version tag such as v0.1.2 runs checks, publishes the package to npm, then creates a GitHub Release with the same package file. The npm README updates with each package release. See Maintenance for the release steps.

Make it yours

A document folder is enough to get started. Without a site configuration, the sidebar shows for humanity. The pixel face appears in the browser tab and follows the mouse on desktop. The folder’s README.md becomes the home page at /, with no frontmatter required. Click the site name to return home. This repository generates the documentation home from its root README.md and the site changelog from CHANGELOG.md. Edit those source files, then run pnpm sync:docs; pnpm dev and pnpm build also sync them on startup. Set your own name in for-humanity.config.mjs:

export default {
    title: "Project notes",
    description: "Decisions, working notes and the details behind them.",
    navigation: ["Getting started", "Guide", "Reference", "Examples"],
};

See Commands for using another document folder, and Settings for configuration. Each document other than the root README chooses a group and optional order. Pages stay independent; groups do not need parent documents or nested folders. Document names may share the same first letter.

Write with context

:::note[Scope]
What this document covers and what still needs a decision.
:::

:::details[Implementation]
The contract, code or reasoning behind the visible result.
:::

Parts pairs source examples with their rendered results. The Blueprint sample uses a fictional reading-list app to show a screen flow, decisions, open questions and illustrative API contracts.

Documentation

GroupRead
Getting startedCommands · Deployment
GuideWriting · Parts · Settings
ReferenceAPI
ReleasesOfficial releases · Changelog
ExamplesFictional Blueprint
DevelopmentArchitecture · Design · Maintenance · Roadmap

License

MIT © 2026 minu-ha

Navigation