You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@getforma/kmd

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@getforma/kmd

K.md — kausing much damage to dev workflow chaos

latest
Source
npmnpm
Version
0.1.7
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

K.md

npm CI Socket Badge License: MIT

Kausing Much Damage to dev workflow chaos.

K.md is a local-first developer dashboard for navigating, searching, and annotating markdown documentation across your monorepo. It bundles a Rust server with a reactive TypeScript frontend into a single binary — no config, no cloud, just kmd.

Features

  • Markdown explorer — File tree with full-text search across all .md files in your workspace
  • Syntax highlighting — Code blocks rendered with Syntect, mermaid diagrams with client-side rendering
  • Text highlighting & annotations — Select text, pick a color, add notes. Highlights persist across sessions (SQLite)
  • Table of contents — Auto-generated "On this page" sidebar with scroll tracking and heading bookmarks
  • Script runner — Discover and run package.json scripts with real-time output streaming via WebSocket
  • Port monitor — Live scan of active ports with process info and one-click kill
  • Terminal — Embedded PTY terminal sessions
  • Multi-root workspaces — Point kmd at a monorepo and it discovers all documentation roots
  • Offline — Everything runs locally. No network required after install.

Install

npx @getforma/kmd

Or install globally:

npm i -g @getforma/kmd
kmd

Usage

Run from any directory containing markdown files:

kmd

kmd starts a local server (default port 4444) and opens your browser. It recursively discovers all .md files from the current directory.

Options

kmd                     # Start in current directory, open browser
kmd --port 3000         # Use a custom port
kmd --no-open           # Start without opening browser
kmd --force             # Force start even if port is in use

Keyboard shortcuts

ShortcutAction
Cmd/Ctrl + KFocus search
Cmd/Ctrl + Shift + HHighlight selected text with last-used color
EscapeClose toolbar / dismiss

Development

Prerequisites

Setup

npm install

Dev mode

npm run dev

Builds the client and starts the Rust server with hot-reload.

Build for release

npm run build

Run tests

npm test

Runs the Playwright E2E test suite (34 tests covering app shell, markdown explorer, script runner, port monitor, security, and more).

npm run link

Symlinks the built binary to ~/.local/bin/kmd for global access.

Architecture

client/          TypeScript frontend (@getforma/core reactive framework)
  pages/         Page components (DocsPage, ScriptsPage, PortsPage, TerminalPage)
  components/    Reusable components (FileTree, SearchBar)
  styles/        Gruvbox dark/light theme CSS
  lib/           Utilities (security, mermaid, logging)

src/             Rust backend (Axum web framework)
  server.rs      HTTP/WS routes, static file serving, CSRF protection
  db.rs          SQLite schema (annotations, bookmarks, FTS)
  services/      Markdown rendering, port scanning, env parsing

tests/e2e/       Playwright end-to-end tests
npm/             Platform-specific binary packages for npm distribution

License

MIT

Keywords

kmd

FAQs

Package last updated on 26 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts