hapi

(★ 4,857)

App for Codex / Claude Code / Pi / OpenCode / Kimi Code / Grok Build, vibe coding anytime, anywhere

File Explorer

  • .gitignore
  • AGENTS.md
  • bun.lock
  • CONTRIBUTING.md
  • LICENSE
  • package.json
  • playwright.config.ts
  • README.md
  • SECURITY.md
  • tsconfig.base.json

# Installation Guide

node
Prerequisites

Setup Steps

bun install

Install all project dependencies.

bun run build:single-exe

Build the source code into a single executable.

npx @twsxtd/hapi hub --relay

Start the hub with E2E encrypted relay.

Key Commands

bun install

Install project dependency packages.

bun run build:single-exe

Build the project into a single executable file.

npx @twsxtd/hapi hub --relay

Run the hub with the relay server.

npx @twsxtd/hapi

Run a Claude Code session.

The relay uses WireGuard and TLS for end-to-end encryption.

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

bun install

View Details ▼

Install JavaScript dependencies for a project from `package.json`.

bun {{[i|install]}}

Install all dependencies listed in `package.json`:

bun {{[i|install]}} {{package_name}}@{{version}}

Install a single package (this is an alias for `bun add`):

bun {{[i|install]}} {{[-g|--global]}} {{package_name}}

Install a package globally:

🔍

bun run

View Details ▼

Execute a JavaScript/TypeScript file, or a script from `package.json`.

bun run {{script_name}}

Run a script defined in `package.json`:

bun run {{path/to/file.ts}}

Run a JavaScript or TypeScript file directly:

bun run --watch {{path/to/file.ts}}

Run a file in "watch" mode (restarts automatically when the file changes):

🔍

npx

View Details ▼

This command is an alias of `npm exec`.

tldr npm exec

View documentation for the original command:

// repository documentation