Skip to content
Projects

About

upmd - Run tasks and workflows from Markdown.

Developer Tools

How these counts are measured

Measured star growth

in 24h
+1
in 7 days
+1
in 15 days
+5
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

upmd

upmd

Run tasks and workflows from Markdown.

Release License CI Downloads

upmd overview

upmd turns Markdown code blocks into runnable tasks and dependency-aware workflows. Run them interactively in a real terminal, with instructions, commands, and output kept together.

What it does

  • Treats fenced code blocks as named tasks with dependencies.
  • Runs one task or a workflow from the TUI, lightweight CLI, or CI.
  • Gives each task a real pseudo-terminal, including prompts, colors, editors, and pagers.
  • Shows output beside the source and can pass shell environment and working-directory changes to later tasks.

Installation

Shell installer (macOS and Linux)

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/rezigned/upmd/releases/latest/download/upmd-installer.sh | sh

Homebrew (macOS and Linux)

brew install upmd

Windows and archives: Download a prebuilt archive and checksum from the latest release. Builds are available for macOS, Linux, and Windows on supported x86_64 and ARM64 platforms.

From source (requires Rust 1.82 or newer):

cargo install --git https://github.com/rezigned/upmd.git

Nix

Flakes
You can try it in the shell without needing to install it first.

# Requires experimental features `flakes` and `nix-command` enabled
nix run github:rezigned/upmd -- DEMO.md

Install it temporarily in your shell

nix shell github:rezigned/upmd

NixOS
Install on NixOS as an overlay

{
  inputs = {
    nixpkgs.url = "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.zst";

    upmd.url = "github:rezigned/upmd";
    upmd.inputs.nixpkgs.follows = "nixpkgs";
  };
  
  # NixOS Configurations...
}

In your configuration.nix

{inputs, pkgs, ...}: {
  nixpkgs.overlays = [inputs.upmd.overlays.default];
  environment.systemPackages = [pkgs.upmd];
}

Quick start

# Open up.md or UP.md when present, otherwise browse the current directory
upmd

# Open a document in the TUI
upmd README.md

# Run one named task and its dependencies
upmd DEMO.md --block lint --yes

# Run all tasks non-interactively (CI)
upmd --ci --all README.md

[!TIP] No path: opens up.md/UP.md or the file picker. Directory searches are recursive. Piped stdin is Markdown.

Run upmd --help for all command-line options.

[!TIP] Tasks start in the current directory by default. Use -d DIR to choose an initial directory, or -d :auto to use the Markdown file's directory. For stdin, :auto uses the current directory.

Tasks and workflows

The workflow in DEMO.md uses name and deps attributes after the language token:

```bash [name:build]
cargo build
```

```bash [name:lint, deps:build]
cargo clippy
```

```bash [name:test, deps:build]
cargo test
```

```bash [name:verify, deps:"lint | test"]
echo "verified ✅"
```

name makes a task addressable from --block and the goto menu. Numeric IDs also work:

upmd DEMO.md --block verify

Dependencies

· build ──┬─→ · lint ──┬─→ · verify
          │            │
          └─→ · test ──┘

lint and test each use deps:build, so they start together after build succeeds. verify uses deps:"lint | test" and waits for both. Within deps, | puts tasks in the same stage and , starts the next stage.

If a task fails, later stages are skipped. Under --all, unrelated tasks continue and the command exits non-zero.

Override a task runner with an attribute such as [bin:zsh]. Runner settings resolve in this order: block attribute, user configuration, then built-in defaults.

TUI shortcuts

Key Action
up / k, down / j Move between tasks
Enter Run the selected task
/ Search document text
ctrl-g Find and jump to a task
o Open the full terminal output
i Send input to the selected running task
? Search all shortcuts
q / ctrl-c Quit

Press o for the full terminal screen and scrollback. Running programs receive keyboard, paste, and SGR mouse input directly. Press ctrl-o to return home. Default bindings are listed in src/apps/config.toml.

State persistence

Successful shell tasks pass exported variables and working-directory changes to later tasks:

```bash [name:prepare]
export API_URL="http://127.0.0.1:8080"
cd /tmp
```

```bash [name:inspect, deps:prepare]
printf 'API_URL=%s\n' "$API_URL"
pwd
```

Python, Go, Rust, and TypeScript can opt into experimental state capture with --capture-state. Press e to inspect or edit the environment before running the next task.

Supported languages

Built-in runners cover Bash, POSIX shell, Zsh, Fish, Cmd, PowerShell, Python, JavaScript, TypeScript, Ruby, PHP, C, Go, Rust, and Zig.

TypeScript tries Node.js native strip-types, npx tsx, then ts-node. Rust uses rustc or cargo rustc --. Override a binary with [bin:...] on a task or binaries.<language> in the configuration. Compiled runners use isolated temporary workspaces.

Configuration and diagnostics

Persistent settings live at ~/.config/upmd/config.toml:

theme = "catppuccin-mocha"
transparent = true

[tui]
inline_max_lines = 20

Runner binaries and key bindings can also be overridden. Print every available setting and keymap section with:

upmd --dump-default-config

upmd reports code block status via OSC 7501 on a terminal by default (block). Use --report-program-status all to also relay child status or --report-program-status none to disable reporting. The same modes are available through report_program_status in config.toml.

Set RUST_LOG to write tracing output to the platform cache directory:

RUST_LOG=upmd=debug upmd README.md

License

MIT

Explore related projects

Loading…