Getting Started
Prerequisites
Before you begin, make sure you have the following installed:
| Requirement | Version | Notes |
|---|---|---|
| Bun (Recommended) or Node.js | >= 1.1.0 / >= 18.0.0 | Primary runtime (bun.sh / nodejs.org) |
| Package Manager | Bun, pnpm, npm, or Yarn | Universal package management support |
| Acode | Latest | Play Store |
Termux Users
You can install Node.js directly inside Termux with:
bash
pkg install nodejsInstallation (Recommended)
Install the acodez CLI globally on your system using your favorite package manager:
bash
# 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/acodezWhy install globally?
- Instant Speed: Run
acodezanywhere without waiting for downloads. - Lean Local Storage: Avoid duplicate CLI binaries in your plugin directories.
Scaffolding a New Plugin
Run the following command anywhere to initialize a fresh TypeScript or JavaScript plugin:
bash
acodez init my-pluginThe interactive terminal UI will guide you through setup:
? Plugin Name: My Awesome Plugin
? Plugin ID (e.g. com.example.plugin): com.yourname.myplugin
? Version: 1.0.0
? Author Name: Your Name
? Author Email (Optional):
? Author GitHub Username (Optional):
? License: MIT
? Enable aggressive code obfuscation for production builds? [Y/n]
? Choose your language:
❯ TypeScript (Recommended)
JavaScriptOnce complete, acodez will:
- Copy the clean template into your new directory.
- Generate
.gitignoreand initialize a clean Git repository. - Personalize
plugin.json,package.json, andreadme.md. - Automatically install dependencies with Bun (or pnpm).
Starting Development
Navigate into your project and start the dev server:
bash
cd my-plugin
acodez devYou will see:
ACODEZ DEV — Live Direct-to-Device Watch Server
✔ Server running on port 3000
• Local Project: /path/to/my-plugin/plugin.zip
• Dev Server: http://127.0.0.1:3000/plugin.zip
• Live HMR/WS: ws://localhost:3000
⚡ Zero-Restart Soft Reload is active:
› Edits in src/ will soft hot-reload in Acode without restarting the editor.
› Press r to force reload, q to quit.Loading the Plugin in Acode
- Open Acode on your Android device.
- Go to Settings ➔ Plugins ➔ Add (+).
- Select Install from file and pick your local
./plugin.zip(or install via URL if testing across Wi-Fi). - Your plugin is now connected. Whenever you save a
.ts,.js, or.scssfile, it soft hot-reloads live in Acode in<50mswith zero editor restarts!