{"id":40675,"library":"brovite","title":"brovite","description":"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.","status":"active","version":"1.3.1","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","vite","bundler","dev-server","esmodule","acode","mobile-editor","build-tool"],"install":[{"cmd":"npm install brovite","lang":"bash","label":"npm"},{"cmd":"yarn add brovite","lang":"bash","label":"yarn"},{"cmd":"pnpm add brovite","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"BroVite is a CLI tool, not a programmatic API. Use npx or install globally.","wrong":"npm run brovite dev","symbol":"brovite (CLI)","correct":"npx brovite dev"},{"note":"BroVite uses ESM exports. CJS require may not work properly. defineConfig is the main export for configuration.","wrong":"const brovite = require('brovite')","symbol":"BroviteConfig","correct":"import { defineConfig } from 'brovite'"},{"note":"Used to create vite.config.js equivalent. BroVite reads vite.config.js if present.","wrong":"module.exports = { ... }","symbol":"defineConfig","correct":"import { defineConfig } from 'brovite'"}],"quickstart":{"code":"mkdir my-app && cd my-app\ncat > main.js << 'EOF'\nimport { greet } from './utils.js'\ngreet('World')\nEOF\ncat > utils.js << 'EOF'\nexport function greet(name) {\n  console.log(`Hello, ${name}!`)\n}\nEOF\nnpx brovite dev","lang":"javascript","description":"Create a simple app with two JS files, then start the development server with live reload."},"warnings":[{"fix":"Run 'brovite build --professional' or 'brovite build -P' to enable esbuild-based bundling with full node_modules resolution.","message":"Standard build cannot resolve node_modules. Use --professional for npm dependencies.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use a HTTPS proxy or serve on localhost only. Alternatively, use 'brovite preview' after building.","message":"Live reload may not work on mobile browsers if using insecure HTTP on local network. Some browsers require HTTPS for WebSocket.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Explicitly specify an available port: 'brovite dev --port 8080'","message":"Port 3000 is default. If occupied, the server may fail silently or bind to a different port.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Manually navigate to the displayed URL.","message":"The '--open' flag may not open browser on mobile editors; it's best-effort.","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Upgrade Node.js to v16 or later.","message":"Node.js 16 is required. Older versions will fail with syntax errors.","severity":"gotcha","affected_versions":"<1.0.0"}],"env_vars":null,"search_vec":"'1.3.1':45 'acod':16,91 'activ':47 'brovit':1 'build':96 'build-tool':95 'bundl':30 'bundler':10,86 'cli':78 'constrain':57 'current':41 'depend':53 'dev':7,88 'dev-serv':87 'develop':22,48 'differenti':66 'editor':13,94 'environ':58 'esbuild':32,67 'esmodul':90 'focus':50 'full':60 'includ':69 'javascript':84 'jsx/typescript':71 'key':65 'lightweight':3 'like':6 'live':25 'may':62 'minim':52 'mobil':12,83,93 'mobile-editor':92 'mode':35,74 'optim':81 'preview':38 'profession':29,34,73 'provid':20 'reload':26 'run':64 'server':23,39,89 'simpl':77 'stabl':42 'standard':27 'support':70 'termux':18 'tool':8,97 'use':31 'version':43 'vite':5,61,85 'vite-lik':4 'work':55","created_at":"2026-06-04T18:48:42.447504+00:00","updated_at":"2026-06-04T18:48:42.447504+00:00","problems":[{"fix":"Ensure you have internet access during 'npm install -g brovite' or reinstall. If offline, use standard build only.","cause":"Professional mode requires esbuild, which is bundled but may be missing if installed in a restricted environment.","error":"Error: Cannot find module 'esbuild'"},{"fix":"Use a different port: 'brovite dev --port 3001' or kill the process using that port.","cause":"Port 3000 is already in use by another process.","error":"Error: listen EADDRINUSE :::3000"},{"fix":"Use Node.js >=16 and ensure your entry file has .js extension and 'type': 'module' in package.json, or use .mjs.","cause":"Running brovite with a Node.js version that doesn't support ESM, or using incorrect file extension.","error":"SyntaxError: Cannot use import statement outside a module"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"brovite","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-04","next_check":"2026-09-02","install_tag":null}}