A web-based, shareable, self-hosted Markdown editor built with deno

jerryliao 29a1f8b4d1 Create new post from local file by OpenCode 4 周之前
.githooks a651c8ddcd Optimize pre-commit by OpenCode 1 月之前
.vscode 92e36d18ad Bump dependency versions & add CICD support 2 年之前
assets 4e6d300a55 Add dark theme and tests by Claude Code & Formatting code 1 月之前
components 29a1f8b4d1 Create new post from local file by OpenCode 4 周之前
islands 29a1f8b4d1 Create new post from local file by OpenCode 4 周之前
routes 91aa818e27 Optimizations for icons, buttons and the PostList by OpenCode 1 月之前
static 901516f778 Wrap code lines in rendered Editor content 1 月之前
tests 29a1f8b4d1 Create new post from local file by OpenCode 4 周之前
utils 460a34e004 Add password protection for shared posts 1 月之前
.dockerignore 615c769e74 Add api and util tests by OpenCode 1 月之前
.drone.yml 92e36d18ad Bump dependency versions & add CICD support 2 年之前
.gitignore 9b9f7f20f8 Remove Vite cache folder 1 月之前
Dockerfile 58755619ad Update doc & Dockerfile 1 月之前
LICENSE 79f751ee49 Initial commit 2 年之前
README.md a651c8ddcd Optimize pre-commit by OpenCode 1 月之前
client.ts 74efd0d06c Finish Fresh 2.x upgrade 1 月之前
deno.json 073cc2f46f Add download post feature and tests by OpenCode 1 月之前
deno.lock 073cc2f46f Add download post feature and tests by OpenCode 1 月之前
main.ts 74efd0d06c Finish Fresh 2.x upgrade 1 月之前
tailwind.config.ts 462a5be3cc Switch to tailwind styles by OpenCode 1 月之前
vite.config.ts 462a5be3cc Switch to tailwind styles by OpenCode 1 月之前

README.md

postdown

the postdown logo designed by Chris Peng

Build Status

A web-based, shareable, self-hosted Markdown editor built with deno

Demo

Visit https://post.jerryliao.cn

Deployment

You can deploy the project with docker by using Dockerfile in this repo to build a docker image or use Deno Deploy officially recommended in this doc

Development

Install deno runtime according to this doc, then run the setup task to install dependencies and enable git hooks:

deno task setup

Start the dev server and visit localhost:8000:

deno task dev

Available tasks

  • deno task dev - Start the development server
  • deno task test - Run all tests (backend + UI)
  • deno task check - Check formatting, linting, and types
  • deno task setup - Install dependencies and configure git hooks

Git hooks

A pre-commit hook is configured via .githooks/ to automatically format staged files and run tests before each commit. If auto-formatting fails, the commit is aborted. The deno task setup command enables this by setting core.hooksPath to .githooks/.