Registry / devops / brovite

brovite

JSON →
library1.3.1jsnpmunverified

A lightweight Vite-like dev tool and bundler for mobile editors such as Acode and Termux. It provides a development server with live reload, standard and professional bundling (using esbuild for professional mode), and a preview server. The current stable version is 1.3.1 with active development. It focuses on minimal dependencies and works in constrained environments where full Vite may not run. Key differentiators: esbuild is included, supports JSX/TypeScript in professional mode, has a simple CLI, and is optimized for mobile.

npm install brovite
INSTALL
IMPORT
SIG · BROVITE
B
brovite
devopsjavascriptv1.3.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

brovite (CLI)
npx brovite dev
npm run brovite dev
BroVite is a CLI tool, not a programmatic API. Use npx or install globally.
BroviteConfig
import { defineConfig } from 'brovite'
const brovite = require('brovite')
BroVite uses ESM exports. CJS require may not work properly. defineConfig is the main export for configuration.
defineConfig
import { defineConfig } from 'brovite'
module.exports = { ... }
Used to create vite.config.js equivalent. BroVite reads vite.config.js if present.

Create a simple app with two JS files, then start the development server with live reload.

mkdir my-app && cd my-app cat > main.js << 'EOF' import { greet } from './utils.js' greet('World') EOF cat > utils.js << 'EOF' export function greet(name) { console.log(`Hello, ${name}!`) } EOF npx brovite dev
Debug
Known issues
gotchaStandard build cannot resolve node_modules. Use --professional for npm dependencies.
fix
Run 'brovite build --professional' or 'brovite build -P' to enable esbuild-based bundling with full node_modules resolution.
affects: >=1.0.0
gotchaLive reload may not work on mobile browsers if using insecure HTTP on local network. Some browsers require HTTPS for WebSocket.
fix
Use a HTTPS proxy or serve on localhost only. Alternatively, use 'brovite preview' after building.
affects: >=1.0.0
gotchaPort 3000 is default. If occupied, the server may fail silently or bind to a different port.
fix
Explicitly specify an available port: 'brovite dev --port 8080'
affects: >=1.0.0
deprecatedThe '--open' flag may not open browser on mobile editors; it's best-effort.
fix
Manually navigate to the displayed URL.
affects: >=1.0.0
gotchaNode.js 16 is required. Older versions will fail with syntax errors.
fix
Upgrade Node.js to v16 or later.
affects: <1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'esbuild'
Professional mode requires esbuild, which is bundled but may be missing if installed in a restricted environment.
fix
Ensure you have internet access during 'npm install -g brovite' or reinstall. If offline, use standard build only.
Error: listen EADDRINUSE :::3000
Port 3000 is already in use by another process.
fix
Use a different port: 'brovite dev --port 3001' or kill the process using that port.
SyntaxError: Cannot use import statement outside a module
Running brovite with a Node.js version that doesn't support ESM, or using incorrect file extension.
fix
Use Node.js >=16 and ensure your entry file has .js extension and 'type': 'module' in package.json, or use .mjs.
Upgrade
Version history
1.3.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
brovite — npm install brovite · libregistry