Files

3.5 KiB

APK Forge 🔨

AI-powered prompt-to-APK builder. Describe an app in plain language, and APK Forge generates, builds, and delivers a ready-to-install Android APK.

How It Works

  1. Describe your app — Use natural language to explain what you want
  2. AI generates the code — LLM creates a complete web app based on your prompt
  3. Build & package — The build worker wraps it into a native Android APK using Capacitor
  4. Download — Get a signed APK ready to install on any Android device

Features

  • Conversational AI builder — Chat-based interface to refine your app iteratively
  • Real-time build progress — WebSocket-powered live build status updates
  • Template library — Start from pre-built templates or describe something from scratch
  • Project management — Save, revisit, and iterate on your app projects
  • Multi-model LLM support — Configurable model with automatic fallback chain
  • Admin dashboard — User management, build analytics, system monitoring
  • PWA support — The builder itself is installable as a PWA

Tech Stack

  • Framework: Next.js 16 (App Router, React 19)
  • UI: shadcn/ui + Tailwind CSS
  • Database: MongoDB
  • Build system: Android SDK + Capacitor (bundled in Docker image)
  • Process management: supervisord (Next.js server + build worker)
  • Real-time: WebSocket for build progress

Quick Start

Prerequisites

  • Node.js 22+
  • MongoDB instance
  • Access to an OpenAI-compatible LLM API

Development

npm install
cp .env.example .env  # Configure your environment
npm run dev

Environment Variables

Variable Description
MONGODB_URI MongoDB connection string
NEXTAUTH_SECRET JWT signing secret
LLM_API_KEY API key for LLM provider
LLM_API_URL OpenAI-compatible API base URL
LLM_MODEL Default model to use
NEXT_PUBLIC_APP_URL Public URL of the app

Docker

The production image bundles Next.js, the build worker, and the Android SDK into a single container managed by supervisord.

docker build -t apk-forge .
docker run -p 3000:3000 --env-file .env apk-forge

Architecture

┌─────────────────────────────────────┐
│           Next.js App               │
│  ┌──────────┐  ┌─────────────────┐  │
│  │ Chat UI  │  │  Admin Panel    │  │
│  └────┬─────┘  └────────────────┘   │
│       │                             │
│  ┌────▼──────────────────────────┐  │
│  │  API Routes                   │  │
│  │  /api/chat  /api/build  ...   │  │
│  └────┬──────────────────────────┘  │
│       │              │              │
│  ┌────▼─────┐  ┌────▼───────────┐  │
│  │ LLM API  │  │ Build Worker   │  │
│  │ (proxy)  │  │ (Capacitor +   │  │
│  └──────────┘  │  Android SDK)  │  │
│                └────────────────┘   │
└─────────────────────────────────────┘

License

Private repository.