Architecture & Features
acodez is packed with engineering marvels designed specifically for mobile and desktop Acode plugin development.
Direct-to-Device Zero-Restart Soft Reloading
Acode plugins execute inside an Android WebView sandbox. Traditional workflows require uninstalling, reinstalling, and rebooting the editor on every change.
acodez completely eliminates this friction:
- When you run
acodez dev, an in-memory soft reload bridge is active. - When source files change, the dev server compiles
dist/main.jsand broadcasts a reload signal over WebSocket. - The plugin unmounts via
acode.unmountPlugin(), updates the script in memory, and re-invokesacode.initPlugin()in under 50ms without closing open editor tabs or refreshing the WebView.
Bi-directional Console Mirroring
Debugging on mobile typically requires connecting USB cables and running adb logcat or Chrome Remote Debugging. With acodez dev, console.log, warn, and error calls originating from inside Acode are intercepted and streamed directly back into your Termux terminal prefixed with [Acode].
Multi-Engine Quality Suite (lint)
Combines ESLint Flat Config with the official TypeScript compiler (tsc) and custom AST rules:
- Pre-declares all 25+ Acode globals (
acode,editorManager,fsOperation,helpers,toast, etc.). - Custom rules catch Acode-specific mistakes, such as registering
acode.setPluginInitwithout an unmount teardown, or directly modifyingdocument.body. - Persistent disk caching ensures repeat lints execute in ~100ms.
Advanced Asset Pipeline
Acode plugins require an icon.png and often include assets in assets/. When you run acodez build, the Advanced Asset Pipeline intelligently handles media:
- Intelligent Icon Optimization: If your
icon.pngis already under 50KB, it is preserved with 100% original fidelity without recompression. If it exceeds 50KB, an adaptive optimizer calculates the highest resolution and visual quality that fits within the 40–50 KB sweet spot (guaranteeing compliance with Acode Store limits). - Asset Compression: Deeply scans
assets/and resizes massive images over 100KB to a max of 1024x1024, shrinking bloated assets by up to 90%.
Signature Lavender Terminal UI
Every command in acodez is themed in a TrueColor Lavender palette (#B59AFF / #D8B4FE). Features an interactive arrow-driven inquirer prompt, animated braille spinners, multi-stop ASCII art gradients, and structured build statistics tables.
Native SASS & Scoped CSS
Acode plugins require styles to be injected via JavaScript strings. acodez uses esbuild-sass-plugin configured with type: "css-text". This means you can create .scss files with advanced nesting and variables:
.my-plugin {
background: #1e1e2e;
.header { font-weight: bold; }
}And import it directly into your TypeScript or JavaScript:
import styles from "./style.scss";
// styles is a raw CSS string ready for injection!Native Rust Security Scanner (Zero-Severity Guarantee)
acodez scan validates your plugin bundle before distribution. It downloads and executes an architecture-matched native Rust binary (plugin_scanner) supporting:
- Windows (
x86_64) - Linux (
x86_64,aarch64) - macOS (
x86_64,aarch64/ Apple Silicon) - Android Termux (
aarch64-linux-android,armv7l)
It checks for manifest anomalies, risky dynamic evaluation, forbidden remote code execution, and unoptimized assets, providing instant security feedback with automated binary updates.
Universal Package Manager Support (Bun, pnpm, npm, Yarn)
Engineered for ultimate flexibility across development environments. acodez runs blazing fast on Bun and provides first-class, out-of-the-box support for pnpm, npm, and Yarn. Project scaffolding automatically detects your active runtime or accepts --pm <manager>.
Enterprise Automation & JSON Output
Designed for modern CI/CD pipelines:
- Global
--quiet/-qsuppresses banners, interactive spinners, and formatting. --jsononbuild,lint, andscandelivers machine-parseable metrics and diagnostics.- Automatic compliance with
NO_COLORand non-TTY standard output streams.
Production Code Obfuscation
When building for release (acodez build), you can optionally enable javascript-obfuscator in package.json or pass -o, --obfuscate. This scrambles variable names, flattens control flow, and protects your plugin's source logic.