AcodeZ
The modern, high-performance CLI framework for creating, developing, linting, scanning, and publishing plugins for the Acode code editor on Android.
🔥 Features
- Lavender TrueColor Terminal UI: Styled in a signature Lavender palette (
#B59AFF) with dynamic braille spinners, arrow-driven selection prompts, and clean status reporting.
- Zero-Restart Soft Hot-Reloading (
dev): Live changes in src/ are hot-reloaded directly inside Acode in under 50ms without restarting the editor or losing open tabs.
- Bi-directional Console Mirroring: Streams
console.log, warn, and error from inside Acode's WebView back to your Termux terminal prefixed with [Acode].
- Multi-Engine Linter & Type-Checker (
lint): Powered by ESLint Flat Config and the official TypeScript compiler (tsc). Pre-configured with all 25+ Acode runtime globals, custom AST safety rules (require-unmount, no-body-append, no-dangerous-eval), and persistent disk caching.
- Direct Acode Store Release Pipeline (
publish): Build, security-scan, and upload your plugin directly to the official Acode Store registry via Bearer API keys (acode_...).
- Native Security Scanner (
scan): Architecture-matched Rust scanner validating manifest schemas, AST safety, and store guidelines.
- Advanced Asset Pipeline (
build): Automatically compiles .scss, preserves icons already under 50KB with zero recompression, and adaptively optimizes icons over 50KB at highest visual quality to ~40-50KB before emitting production plugin.zip.
- Universal Package Manager Support: First-class compatibility with Bun, pnpm, npm, and Yarn. Auto-detects runtime or accepts explicit
--pm.
🚀 Getting Started
1. Installation
Install acodez globally for access across all projects:
# Using Bun (Recommended)
bun add -g @rvrugved/acodez
# Or using pnpm
pnpm add -g @rvrugved/acodez
# Or using npm
npm install -g @rvrugved/acodez
# Or using Yarn
yarn global add @rvrugved/acodez
2. Scaffold a New Plugin
# Using Bun (Recommended)
bun x @rvrugved/acodez init my-plugin
# Or using pnpm
pnpm dlx @rvrugved/acodez init my-plugin
# Or using npm
npx @rvrugved/acodez init my-plugin
# Or using Yarn
yarn dlx @rvrugved/acodez init my-plugin
# Or directly if installed globally
acodez init my-plugin
cd my-plugin
Prompt options guide you through Plugin ID validation, versioning, author info, and language selection (TypeScript or JavaScript). Every project is initialized with a pre-configured .gitignore, personalized readme.md, and optional git init.
3. Live Development Server
acodez dev
Starts the unified HTTP and WebSocket server on port 3000. Install the generated ./plugin.zip in Acode once. Whenever you save a file in Termux, Acode automatically soft hot-reloads the changes in milliseconds!
Keyboard Shortcuts during dev:
- Press
r to trigger a manual reload broadcast across connected Acode instances.
- Press
q to stop the dev server cleanly.
4. Code Quality & Type-Checking
acodez lint # Fast cached linting + TypeScript checking
acodez lint --fix # Automatically fix style and formatting issues
acodez lint --types # Run deep TypeScript compiler diagnostics
acodez lint --no-cache # Bypass cache and re-check all files
5. Production Build
acodez build # Compile, optimize assets, and package plugin.zip
acodez build --clean # Wipe dist/ and plugin.zip before compiling
acodez build -o # Force code obfuscation
6. Store Compliance Scan
acodez scan
7. Publish to Acode Store
acodez publish
acodez publish --dry-run
Authenticate with your Acode Store API key from acode.app/api-keys to submit new plugins or release updates directly from your terminal or CI/CD.
📖 CLI Commands Quick Reference
| Command |
Description |
Key Options |
acodez init [dir] |
Scaffold a new plugin |
-y, --lang, --skip-install, --pm, --no-git |
acodez dev |
Live watch & soft HMR server |
-p, --port, -H, --host |
acodez build |
Production compiler & packager |
--clean, -o, --obfuscate, --no-obfuscate |
acodez lint |
Multi-engine linter & typecheck |
--fix, --types, --no-cache |
acodez scan |
Native security scanner |
Runs local Rust binary diagnostics |
acodez publish |
Official Acode Store deployer |
-k, --key, --dry-run |
🐛 Bug Reports & 💡 Feature Requests
If you encounter bugs or have suggestions, please open an issue on the Public Repository.
📄 License
MIT