Skip to content

Getting Started ​

Prerequisites ​

Before you begin, make sure you have the following installed:

RequirementVersionNotes
Bun (Recommended) or Node.js>= 1.1.0 / >= 18.0.0Primary runtime (bun.sh / nodejs.org)
Package ManagerBun, pnpm, npm, or YarnUniversal package management support
AcodeLatestPlay Store

Termux Users

You can install Node.js directly inside Termux with:

bash
pkg install nodejs

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/acodez

Why install globally?

  • Instant Speed: Run acodez anywhere 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-plugin

The 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)
    JavaScript

Once complete, acodez will:

  1. Copy the clean template into your new directory.
  2. Generate .gitignore and initialize a clean Git repository.
  3. Personalize plugin.json, package.json, and readme.md.
  4. Automatically install dependencies with Bun (or pnpm).

Starting Development ​

Navigate into your project and start the dev server:

bash
cd my-plugin
acodez dev

You 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 ​

  1. Open Acode on your Android device.
  2. Go to Settings ➔ Plugins ➔ Add (+).
  3. Select Install from file and pick your local ./plugin.zip (or install via URL if testing across Wi-Fi).
  4. Your plugin is now connected. Whenever you save a .ts, .js, or .scss file, it soft hot-reloads live in Acode in <50ms with zero editor restarts!

Built with precision by Rugved.