$ show sintaxi/harp
Harp is a zero-configuration static web server and static site generator. It serves Jade, Markdown, EJS, Less, Stylus, Sass, and CoffeeScript files as HTML, CSS, and JavaScript without any build step. The architecture is a Connect-based middleware stack with a CLI wrapper. Key entry points are the `harp` CLI (bin/harp) and the library API (lib/index.js) which exposes `server()`, `compile()`, `mount()`, and `pipeline()`. The system reads project configuration from `harp.json` or `_harp.json`, supports layouts and partials via `_layout.jade` and `_data.json` files, and provides fallback 200/404 handling. It can compile projects to static assets for deployment. The codebase is well-structured with comprehensive tests and a smoke test for release validation. Dependencies are pinned, and the code uses modern JavaScript. It is a mature, stable project suitable for rapid prototyping and static site hosting.
The LLM identified 2 files worth highlighting for reuse:
A self-contained function that draws bordered boxes around multi-line messages for CLI output. It supports multiple themes (single, double, round), colors, padding, and alignment. This was vendored to replace a problematic dependency that required chalk at runtime. It is fully isolated, depends only on @colors/colors, and can be extracted into any Node.js CLI project to produce polished terminal output.
A smoke test script that packs the npm tarball, installs it into a clean temporary project (without devDependencies), and runs the CLI to verify version output, help text, and basic compilation. It guards against undeclared runtime dependencies and broken packaging that unit tests cannot catch. This pattern is reusable for any npm package to ensure the published artifact works correctly in a clean environment.