polterguy/magic

Instant SECURE Full Stack Apps and AI Agents

What it solves

Building a full-stack application normally takes a database, an API, business logic, a frontend, and a deployment step. Magic Cloud replaces most of that with a single self-hosted platform: you describe what you want in plain English, and it generates the database, a secure REST API, the business logic, and a frontend — all running on your own hardware, with no vendor lock-in. It positions itself as an open-source alternative to tools like Lovable, Bolt, and Replit, but with the entire backend included rather than just a frontend.

It also solves the problem of AI agents touching your data safely. A built-in MCP server turns every endpoint into a tool that Claude, Cursor, or Codex can invoke, so AI agents can query and update your own database behind your own role-based access control.

How it works

Magic Cloud is built around Hyperlambda, a programming language the platform can generate from natural language. When you type a request, the built-in generator produces an AST (abstract syntax tree) rather than raw text, and that tree is checked against the set of functions that actually exist before it runs. The README states this means the generator cannot return hallucinated function invocations — it can still write logically wrong code, but every function it calls is guaranteed to exist.

Hyperlambda runs sandboxed, with no file-system access outside its sandbox, and individual functions can be whitelisted through an RBAC system. This lets the server accept code as input and execute it safely, restricting invocations at the execution level. The README claims this is, as far as the author knows, the only language that currently does this.

The dashboard is the whole platform: an IDE for editing and replaying files on the server, a playground for trying code without saving, a SQL studio, an endpoint generator that turns database tables into secured CRUD APIs, an API importer that wraps any OpenAPI or Swagger URL, users and roles, scheduled tasks, and a plugin store. There is a Web Designer that opens any HTML page the server serves and lets you edit it in the browser as a document, writing changes straight back to the file on disk. Chat Ops (Ctrl+. anywhere in the dashboard) is a conversation with your cloudlet that can actually run AI functions — crawling a site, querying a database, generating a CRUD API — with each invocation shown as a pill you can click to inspect the exact arguments sent. The whole loop is enforced server-side under your own JWT, so it can never do anything you could not do yourself.

A Sandbox API tab generates a single HTTP endpoint that executes code its own callers send it, inside a whitelist defined per role. The caller runs with the union of what their roles grant, and any function not granted simply does not exist as far as their code is concerned. Pins can restrict access to specific resources, with wildcard support. The README points to a live guest-only endpoint that grants read access to the Chinook sample database for anyone to try attacking.

For the AI chatbot side, you can give it a website, it crawls the site, turns the content into training data, and produces an embeddable chatbot. Retrieval can use BM25 keyword search entirely inside SQLite when you do not want an OpenAI key, or semantic/hybrid retrieval via embeddings.

Who it's for

Developers and teams who want to build full-stack business apps — CRMs, admin panels, booking systems, internal tools — quickly, but keep their data and infrastructure on their own machines. It also suits people who want to expose their existing legacy databases (MySQL, PostgreSQL, SQL Server, MariaDB) as secure APIs, or wrap third-party APIs from OpenAPI specifications. And it suits anyone building database-driven AI agents who want those agents to invoke their own endpoints behind role-based access control, without widening the attack surface.

The README emphasizes zero lock-in: the code is MIT-licensed, self-hostable via Docker Compose, DigitalOcean droplet, or Kubernetes, and the generated files are not tied to a proprietary cloud.

Highlights

  • Generates a complete backend — database, secure API, business logic, and frontend — from plain English, with no build or deploy step before you can test it.
  • Runs on your own hardware with an MIT license and no vendor lock-in; the README calls it an open-source alternative to Lovable, Bolt, and Replit.
  • Built-in MCP server turns every endpoint into a tool for Claude, Cursor, Codex, or any MCP client, with a claimed token-consumption saving of roughly 80% in the author's measurements.
  • Hyperlambda generates an AST rather than text, so the generator cannot return hallucinated function invocations — every function it calls is guaranteed to exist.
  • Sandboxed execution with per-role function whitelisting lets your server accept caller-supplied code (even plain English turned into code) and run it safely.
  • Includes Hyper IDE, SQL Studio, a Web Designer that edits real files in the browser, Chat Ops for conversational control, an API importer for OpenAPI/Swagger specs, and Rewind for stepping through a past execution to inspect program state at each step.
  • Sign-in over OpenID Connect against providers like Google, GitHub, LinkedIn, Microsoft Entra ID, Okta, Auth0, Keycloak, and Slack, with server-side code-flow and PKCE.
  • Can run without any OpenAI key: chatbots can use BM25 keyword retrieval inside SQLite, or drive everything through the MCP server; Ollama and HuggingFace plugins can override the inference functions.

Related

  • Project
  • Project
  • Project
  • Project
  • Project