Getting Started
howth is a fast JavaScript & TypeScript build tool, bundler, and dev server written in Rust.
Installation
The fastest way to install howth:
sh
curl -fsSL https://raw.githubusercontent.com/jschatz1/howth/main/install.sh | shSee Installation for more options.
Your First Build
Create a TypeScript file:
ts
// src/index.ts
const greeting: string = "Hello from howth!";
console.log(greeting);Build it:
sh
howth buildThis transpiles all TypeScript files in your project, outputting JavaScript to the dist/ directory.
Watch Mode
For development, use watch mode for instant feedback:
sh
howth build --watchBy default, watch mode only transpiles (no type checking) for maximum speed. Add type checking with:
sh
howth build --watch typecheckBundling
Bundle your application for production:
sh
howth bundle src/index.ts -o dist/bundle.jsThis produces a single optimized bundle with tree shaking and dead code elimination.
Dev Server
Start a dev server with hot module replacement:
sh
howth dev src/index.ts --port 3000Running Scripts
Run TypeScript files directly:
sh
howth run src/server.tsWhat's Next
- Installation - All installation methods
- CLI Reference - Full command reference
- Node.js API Compatibility - Supported Node.js APIs
