Getting Started
This page gets you from zero to a running dev server in under a minute. Editor setup, authoring concepts, and deployment are covered in the Guide.
Install
Typedown ships as a single npm package. Install it globally so the CLI is available everywhere.
npm install -g typerighterCreate a project
Scaffold a new project with typerighter init. This creates the vault directory, a sample schema, and the config file.
mkdir my-project && cd my-project
typerighter initThe scaffolded structure looks like this:
my-project/
typedown.yaml # project config
vault/
_types/
Article.td # sample schema
hello.td # sample content
index.html
package.jsonStart the dev server
Run the dev server and open the browser. Changes to .td files reload automatically.
typerighter devOpen http://localhost:8686. You should see your vault rendered as a site with a sidebar, search, and syntax highlighting.
Write a file
Open vault/hello.td. A .td file has two parts: YAML frontmatter between --- markers and a markdown body after.
---
_type: Article
title: "My first document"
tags:
- "getting-started"
---
This is the body. It supports **bold**, _italic_, `code`, tables, math ($E = mc^2$), and more.The _type field tells Typedown which schema this file conforms to. The editor uses it to offer autocompletion and type checking for every field. Save the file and the dev server reloads automatically.
Next steps
Set up your editor for autocompletion and type checking
Learn the concepts behind vaults, schemas, and references
Deploy your site to GitHub Pages, Netlify, or any static host