Anya is an autonomous backend engineer that lives in your GitHub repository. It introduces a new paradigm: Backend-as-an-Agent.
Instead of manually wiring up databases, writing API endpoints, and configuring BaaS (Backend-as-a-Service) platforms, you simply connect your frontend repository to Anya. Anya reads your frontend code, infers your data models and API needs, and automatically generates and maintains a complete, deterministic backend for you.
We've all seen BaaS platforms like Firebase or Supabase. They give you the primitives, but you still have to design the schema, write the validation rules, and wire everything up.
Anya takes a different approach:
- Connect your repo: Anya reads your entire frontend codebase (Next.js, React, etc.) and infers your data models and API needs based on your components and fetch calls.
- Automatic Generation: It automatically generates a complete, deterministic backend—including the database schema, API endpoints, and security guardrails.
- Incremental Updates: As you push new commits to your frontend, Anya computes the diff and proposes backend updates to match.
- PR-Style Approval: You are always in control. Anya presents the proposed backend changes as a diff for you to review and approve before they go live.
The best part? The AI operates entirely at build time. Once generated, your backend runs as normal, deterministic server code. No unpredictable AI latency in production.
The project is structured as a monorepo containing two main services:
frontend/: A Next.js application that serves as the marketing site and user dashboard. This is where users connect their GitHub repos and review/approve Anya's proposed backend changes.backend/: A NestJS application that houses the core agent logic, GitHub webhook listeners, and the engine that generates the backend code.
- Frontend: The marketing site and dashboard are built using Next.js, Tailwind CSS v4, and Framer Motion for animations. It features a premium "orange on black" aesthetic.
- Authentication: GitHub OAuth is integrated using
next-auth. Users can log in and view their dashboard. - Backend: The NestJS backend is initialized and contains the foundational logic for webhook processing and generation caps.
- Node.js (v20+)
- pnpm
- Clone the repository.
- Navigate to the
frontenddirectory and install dependencies:cd frontend pnpm install - Create a
.env.localfile in thefrontenddirectory with your GitHub OAuth credentials:GITHUB_ID=your_client_id GITHUB_SECRET=your_client_secret NEXTAUTH_SECRET=your_nextauth_secret NEXTAUTH_URL=http://localhost:3000
- Start the frontend development server:
pnpm run dev
MIT