{"id":25033,"library":"brocode-cli","title":"brocode-cli","description":"A toy compiler for the BroCode programming language that allows writing code using Hindi-style syntax. Version 2.0.6 is the current release; the project appears to be in active development with no clear release cadence. It differentiates itself by making programming accessible to Hindi speakers through familiar syntax (e.g., 'bro maanle' for variable declaration) and includes DOM manipulation and debug mode. The package primarily targets educational/fun use, not production systems.","status":"active","version":"2.0.6","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","compiler","programming-language","brocode","fun-programming-language","hindi","language"],"install":[{"cmd":"npm install brocode-cli","lang":"bash","label":"npm"},{"cmd":"yarn add brocode-cli","lang":"bash","label":"yarn"},{"cmd":"pnpm add brocode-cli","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"The CLI command is 'brocode', not 'brocode-cli'. Use 'npx brocode@latest' to run without global install.","wrong":"npx brocode-cli your-file.bc","symbol":"brocode CLI","correct":"npx brocode your-file.bc"},{"note":"The package name is 'brocode-cli' on npm. Global install is required for direct 'brocode' command.","wrong":"npm install -g brocode","symbol":"global install","correct":"npm install -g brocode-cli@latest"}],"quickstart":{"code":"// hello.bc\nbro function FACTORIAL(n) {\n    bro maanle fact hai 1;\n    bro maanle i hai 1;\n    bro jbb tk (i <= n) hai {\n        bro maanle fact hai fact * i;\n        i++;\n    }\n    bro dikha de(\"Factorial of \" + n + \" is: \" + fact);\n}\nFACTORIAL(5);","lang":"javascript","description":"Creates a factorial program using BroCode syntax and runs it with the brocode CLI."},"warnings":[{"fix":"Use 'brocode' as the command. Example: 'brocode file.bc'.","message":"CLI command is 'brocode', not 'brocode-cli'.","severity":"gotcha","affected_versions":"all"},{"fix":"Run 'npm install -g brocode-cli@latest' first, or use 'npx brocode'.","message":"Global install required for standalone 'brocode' command.","severity":"gotcha","affected_versions":"all"},{"fix":"Add '<script src=\"https://brocode-cli.vercel.app/api/ajj-kuch-tufani-krte-hai\"></script>' to <head> and use '<bro-script>' tag.","message":"DOM scripting requires adding a specific script tag in HTML head.","severity":"gotcha","affected_versions":">=2.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install globally: 'npm install -g brocode-cli@latest' then run 'brocode'.","cause":"Package not installed globally or not in PATH.","error":"Command not found: brocode"},{"fix":"Use 'npx brocode' or 'brocode' after global install.","cause":"Using 'brocode-cli' as a command instead of 'brocode'.","error":"Cannot find module 'brocode-cli'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}