@diaval/bifrost
v0.2.0-beta.0
Published
Fast local HTTPS domains on Windows for localhost services.
Maintainers
Readme
Bifrost
Bifrost is a local HTTPS domain proxy CLI for mapping local services (for example 127.0.0.1:5173) to stable local domains like https://testapp.bifrost, with HTTPS, host mapping, service routing, and cleanup tools built in.
Current support:
- Windows: stable
- macOS: beta
- Linux: beta (Debian/Ubuntu and RHEL/Fedora trust-store workflows)
Installation
Prerequisites
- Windows, macOS, or Linux
- Node.js 20+
- pnpm
- Elevated shell for privileged operations (hosts updates, port 80/443 listeners, cert trust)
Install from npm
pnpm install @diaval/bifrostFor global CLI usage:
pnpm install -g @diaval/bifrostUsage
Quick start
- Start your app locally (example: Vite on
127.0.0.1:5173). - Create config (optional wizard):
bifrost init- Start one service:
bifrost start testapp -p 5173- Open in browser:
https://testapp.bifrostConfig file
Use .bifrost in YAML format:
tld: bifrost
https: true
httpsRedirect: true
logMode: minimal
services:
- domain: testapp
host: 127.0.0.1
port: 5173Core commands
bifrost start <name> -p <port>: start one service mappingbifrost stop [name]: stop one service or all servicesbifrost list [--json]: list active mappingsbifrost logs [name] [-f] [--flush] [--yes]: view/follow/flush access logsbifrost up [--config <path>]: start all services from configbifrost down [--config <path>]: stop all services from configbifrost doctor [--fix]: diagnose and reconcile state/hosts/TLS driftbifrost uninstall --yes: remove managed artifactsbifrost daemon ps|status|kill-stale|restart: advanced daemon operations
Troubleshooting
- If domains do not resolve, run:
bifrost doctor
bifrost doctor --fix- If daemon protocol is stale/outdated:
bifrost daemon kill-stale --yesThen restart your service command.
Development
Project scripts
pnpm build
pnpm test
pnpm lint
pnpm format:checkLocal dev loop
pnpm install
pnpm build
pnpm testRun CLI locally:
node dist/bin/bifrost.js --helpLicense
This project is licensed under the Mozilla Public License 2.0 (MPL-2.0).
Attribution and license notices must be preserved in derivative works according to MPL-2.0.
See LICENSE for full text.
