Skip to content

What is hop?

hop is a JSX-like syntax with static typechecking that compiles to Go, Python, TypeScript and JavaScript. The generated code is optimized, type-safe and has no runtime dependencies.

hop is designed for building fast server-side rendered websites but can be used in any application where the target language is HTML.

Installation

The hop compiler is implemented in Rust and is distributed as a single binary without any external dependencies.

The hop compiler is downloadable via npm and PyPI.

bash
npm install @hoplang/hop
bash
pnpm install @hoplang/hop
bash
yarn install @hoplang/hop
bash
pip install hop-cli
bash
uv add hop-cli

After installation you should be able to write

bash
hop --help

to view the manual in your terminal.