A serverless, event-driven platform for data, APIs, AI agents and pages
LedgyX runs a product you describe: its data, logic, pages and automations. Business logic is stored in the platform as SQL handlers, templates and agent graphs and executed on demand — there is no build, container or deploy step. Saving an object makes it live.
This page summarises the Technical Overview for integrators (PDF, 32 pages). A plain-text version for language models is at /llms-full.txt. Everything described here exists in the running platform; firm limits are listed in Design boundaries.
The model: serverless and event-driven
Serverless. You do not deploy servers or write a backend service. The platform handles routing, execution, isolation and scaling.
Event-driven. The unit of work is an event: a named handler that runs when something happens — a REST call, a change to a record, a timer, a file landing in storage, a Telegram or WhatsApp message, an Ethereum smart-contract log. A handler reads and writes data, calls other services, starts an AI agent or renders a page. Its outcome changes shared state, and that change can trigger the next event.
Seven building blocks, one runtime
1 · Ineron SQL engine
Queries that return finished JSON, whatever their complexity, plus writes and entity definitions.
2 · Entities
Typed, linked data objects. Change the model live — there is no migration step.
3 · Events & API Builder
SQL handlers published as REST endpoints with generated docs and a test console.
4 · AI agents & AI Builder
Visual agent graphs with skills, triggers, sandboxed code execution and access to every module.
5 · File storage
A per-workspace disk that is also the site root, the agents’ workspace and an event source.
6 · HTML generation
Mustache templates rendered together with the JSON an event returns.
7 · Subscriptions
React to data changes, schedules, file operations, chat messages and Ethereum smart-contract events.
All seven share one data model, one event bus and one permission system, so a finished product is mostly configuration: an API that works the moment you save it, pages that read the same data, agents that act on it, and automations that connect them. Request work and background work are separate — agent runs, scheduled jobs and blockchain listeners run in their own workers, and code you do not trust runs in isolated micro-VMs with no network by default.
Core concepts
| Term | What it is |
|---|---|
| Configuration | A tenant workspace. Entities, events, endpoints, templates, agents, files, API keys, disks, credentials and quotas all belong to exactly one configuration. |
| Entity | A typed data object (Dictionary, Enum, Const, Operation, Contract, …) with user-defined fields. A field is a scalar or a reference to another entity. |
| Event | A named handler holding one Ineron SQL query per HTTP method (GET, POST, PUT, DELETE). The query result becomes the response. |
| Endpoint | A public URL /{group}/{name} bound to an event, with generated documentation and a test console. |
| Subscription | A listener that runs an event when something happens: a record changes, a timer fires, a file is added, a contract emits a log. |
| Agent | An LLM-driven worker defined as a node in a graph, with a system prompt, a model and a set of skills. |
| Skill | A tool an agent may call: run code, query data, read a file, send a message, call an HTTP API, start another agent. |
| Trigger | The entry point that starts an agent: cron, webhook, Telegram, WhatsApp, Google Drive, file operation, manual input. |
| Template / Sitemap | A Mustache HTML template, and the route table that maps a URL to a template plus the event supplying its data. |
| Release | An immutable, named snapshot of a configuration’s logic that can be made the default and rolled back instantly. |
| Vault | The credential store. Secrets are written by a human, applied by the platform and never shown to an LLM or an API client. |
Ineron SQL engine
A SQL-style statement becomes finished JSON. A query ends with TYPE OBJECT (one JSON object) or TYPE LIST (an array). A sub-select in the select list becomes a nested JSON array or object, so a parent and its children arrive in one response. The same language reads, writes and defines data (SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER, DROP); parameters come straight from the request (&name, &id::uuid); archived records are filtered out automatically.
select h.name, h.city,
(select r.number, r.price
from Dictionary.room as r
where r.hotel = &hotel::uuid
type list) as rooms
from Dictionary.hotel as h
where h.ref() = &hotel::uuid
type object;{ "name": "Palm Residence", "city": "Dubai",
"rooms": [ { "number": "101", "price": 420.00 },
{ "number": "102", "price": 455.00 } ] }A handler can reach other modules with CALL (asynchronous): AI_AGENT, AI_CHAT_COMPLETION, TG_SEND_MESSAGE, TG_SEND_DOCUMENT, TG_GET_FILE, AI_TRANSCRIBE_AUDIO, WEBHOOK and SSE_SEND. Entity categories are Dictionary, Enum, Const, Operation, Contract, Ledger, InfoReg, Graph (queried with GRAPH.nodes MATCH …) and Vector (semantic search with NEAREST). The data model is defined in the same language, and a change is live without a migration:
CREATE DICTIONARY IF NOT EXISTS room (
number text field NOT NULL,
price numeric(12,2) field NOT NULL,
hotel DICTIONARY.hotel field NOT NULL -- reference to another entity
);
ALTER DICTIONARY.room ADD COLUMN note TYPE text(50);| Conventional stack | LedgyX | |
|---|---|---|
| Change a field | Write a migration, deploy, update the API layer and client types | Edit the field; queries and endpoints see it at once |
| Shape the response | Resolvers or serializers per endpoint (or a generated GraphQL schema) | Write the query; the response is its result |
| Add a relationship | Foreign key, ORM mapping, API change | Add a reference field; join or sub-select it |
Events and the API Builder
An event has a stable identifier such as rooms/list and up to four handlers — GET, POST, PUT and DELETE — each one an Ineron SQL query. The API Builder arranges events into groups and endpoints (/{group}/{name}), generates a Swagger-style reference and gives you a test console that proxies real requests. Saving a changed event creates a new version and keeps the previous one.
# key in the path
curl https://app.ledgyx.com/rest/v2/{api-key}/rooms/list
# key in a header
curl https://app.ledgyx.com/api/rooms/list -H "X-API-Key: {api-key}"
# write
curl -X POST https://app.ledgyx.com/api/rooms/create \
-H "X-API-Key: {api-key}" -H "Content-Type: application/json" \
-d '{"hotel":"<uuid>","number":"103","price":470.00}'A missing or invalid key returns HTTP 401 with {"success": false, "message": "…"}. Clients can pin a version with the Ledgyx-Version: <release> or Ledgyx-Snapshot: <branch|latest> header. Any external system can start a flow with POST /webhooks/{token}; the JSON body becomes the event’s input.
AI agents and the AI Builder
Agents are first-class objects, defined as graphs on a visual canvas and run on a managed runtime. They reach every other module through skills, so an agent works on the same data, files and events as the rest of the product. An agent has a name, a system prompt, a model, a temperature, a maximum number of tool iterations and an autopilot switch. Models: Anthropic Claude natively, plus OpenAI and any OpenAI-compatible endpoint (for example Google Gemini or a local Ollama) through the tenant’s own credential and base URL.
Skills cover data (exec_query, build_structured_event), files, Google Drive, messaging (telegram_reply, whatsapp_reply, send_email, read_email), external APIs (http_request), code (execute_python, execute_shell in an isolated micro-VM), knowledge search, scheduling and orchestration (agent_run, call_pipeline). A custom UserSkill is a name, a description, a JSON-Schema input and a script.
| Trigger | Starts the agent when… |
|---|---|
| cron | a schedule fires |
| webhook | an external system POSTs to the trigger URL |
| telegram, whatsapp | a message arrives at the connected bot or number, including attachments |
| gdrive | a file appears or changes in a watched Google Drive folder |
| file operation | a file is added to a folder of the workspace disk |
| text_input | you type a test message in the canvas |
A whole graph can be deployed as a flow with Condition, Loop, Smart Switch (rules, LLM or hybrid routing with a confidence threshold and fallback) and Pipeline nodes. Credentials never pass through a model: an administrator stores them once in the vault, an agent is given a credential by name, and the platform attaches the secret after the request is assembled and scrubs it from responses, errors and run logs. Each agent lists the exact hosts a credential may be sent to. Every run is recorded step by step; quotas are enforced per plan.
The AI Builder is a chat assistant in the admin panel that builds projects, not just snippets: entities, events, endpoints, templates, sitemap routes, disk files, agents and triggers. For multi-object builds it inspects, designs, shows a plan, waits for confirmation, executes, then reads back and verifies. It never receives a secret. You can also drive it from Telegram: in Settings → Channels → Telegram Bot, send /start to the bot (@ElasticAI_Bot), paste the 6-digit code it replies with and click Link. Messages then go to the same AI Builder chat as in the panel, plans are approved in the chat, and /config selects the configuration. Text only, 20 messages a minute per chat, service messages in English. It runs on the same Anthropic key as the panel.
File storage
Each configuration has its own disk. The same disk is the site’s document root (CSS, JavaScript, images and JSON are served from it), the agents’ /workspace, a source of events (a document dropped into a folder can start an agent or a SQL handler) and a place to exchange documents with people through the File Manager — folders, upload, zip import, search, recovery and a trash with retention. Access is governed by per-folder rules and a web policy.
HTML generation
A page on LedgyX is not a separate front-end application that calls an API. The path is URL → sitemap route (layout + event) → event SQL returns JSON → Mustache render → HTML response, so the page is produced in the same step as its data and needs no separate web application tier. Templates are logic-less Mustache (variables, loops, inverted sections, partials); the same SQL that serves /api/hotels/get as JSON can serve /hotels/palm as HTML. Also available: a visual Page Builder, live pages over server-sent events, custom domains with automatic SSL, and AI-generated sites.
Subscriptions — reacting to the world
| Source | Fires when… | Runs |
|---|---|---|
| Data change | a record of a Dictionary, Enum or Const entity is created, updated or deleted (before or after) | an event |
| Schedule | a cron expression ticks | event or agent |
| File operation | a file is added to a watched folder | event or agent |
| Chat | a Telegram or WhatsApp message arrives | an agent |
| Google Drive | a file appears or changes in a watched folder | an agent |
| Smart contract | a registered Ethereum contract emits a chosen event | an event |
| External data | an external source posts a notification | an event |
Ethereum is the supported network. You register a contract once — its ABI, address and a node endpoint — then subscribe to a specific event from the ABI; every matching log is delivered to your event as JSON, where SQL can store it, branch on it, notify someone or start an agent. Ethereum transactions and logs can also be queried directly in Ineron SQL and joined with your own entities. A chain such as contract log → record → notification → agent review → report file is configuration, not code.
Arabic and English, natively
Language support goes below the interface. The full admin interface is available in English and Arabic with right-to-left layout (even the agent canvas mirrors). Ineron SQL keywords exist in Arabic as well as English — 127 keywords, mixing allowed — and entity categories, entity names and field names can all be Arabic. Customer-facing pages, API responses and agent conversations carry Arabic text without special handling.
اختر t."الاسم", t."المدينة"
من قاموس.دليل_العملاء باسم t
حد 100 نوع قائمة;Tenancy, security, versioning and metering
- Tenancy. A configuration is a hard boundary: objects, files, credentials, API keys and quotas belong to one configuration. Typical layouts are one per client or one per environment.
- Authentication. Email/password, Google and GitHub sign-in for administrators; API keys for REST; unguessable tokens for inbound webhooks; bearer tokens for the MCP endpoint and the end-user API.
- Credential vault. Secrets are encrypted at rest, the master key is kept outside the database, values are write-only for people and decrypted only at the moment of use. Kinds:
http_bearer,http_basic,http_header,query_param,oauth2_service_account; header and parameter names are chosen per credential. - End-user tier. A separate API under
/app/…with sign-up, sign-in, roles and grants for the people who use your product. - MCP gateway. A JSON-RPC MCP endpoint acts as a firewall in front of tools: each call is evaluated against policy and ends in allow, deny or require approval; every call is logged.
- Versioning. Latest (working version with history), branches (staged drafts you review and promote) and releases (immutable named captures; switching the default release is an instant rollback).
- Packages and backup. A configuration can be exported as an installable package, or as a ZIP (complete, with data) or YAML (structure only); no stored secret value is ever written into an export.
- Metering. Plans bound API requests, subscriptions, webhooks, disk size, agent call depth, execution time, parallel VMs and VM minutes. See pricing.
Integration surface
| Surface | Direction | Use it to… |
|---|---|---|
| REST API /rest/v2/{key}/… · /api/… | in | Read and write data, run any event, from your own app or service. |
| Inbound webhooks /webhooks/{token} | in | Let an external system start an event or agent. |
| Outbound webhooks (WEBHOOK, webhook_send) | out | Push an event to your endpoint. |
| HTTP skill | out | Let an agent call your API with a vault credential. |
| End-user API /app/… | in | Give your customers sign-in, roles and access to their own data and agent runs. |
| MCP endpoint POST /mcp | in | Let external AI clients use platform tools under allow / deny / approve policy. |
| Server-sent events | out | Push live updates to open pages and clients. |
| Telegram, WhatsApp | both | Conversational front ends for agents. |
| Files & Google Drive, Email | both | Exchange documents through the workspace disk or a Drive folder; read and send mail. |
| Ethereum | in | Turn contract events into platform events. |
For integrators: a headless back end (model entities, write events, publish endpoints), full-stack in one place (pages, end-user sign-in and agents over the same data), multi-client delivery (one configuration per client, a package as reusable base), process automation, and the AI Builder as an accelerator. For providers: make your API available to agents (describe how it takes its key; the customer stores their key once in the vault), design for an agent’s context (support field selection or paging for large responses), push webhooks, ship a skill or a package, or become an on-chain provider by registering a contract.
Design boundaries — what to plan around
These are the places where the platform is deliberately or currently limited, measured on the running engine.
| Area | Boundary |
|---|---|
| Joins | Inner joins only; LEFT, RIGHT, OUTER and FULL are refused. Attach children with a nested sub-select. |
| Related-field paths | A dotted path through a reference field (r.hotel.name) is not resolved; join explicitly. |
| Sub-queries | IN (select …) and NOT IN (select …) do not work; use EXISTS or a join. |
| DISTINCT, BETWEEN, dates | DISTINCT is ignored; BETWEEN and date arithmetic (now() - interval) are not supported — compute bounds outside and pass them as parameters. |
| UPDATE / DELETE | Without WHERE they apply to the whole table; there is no guard. |
| Writes | No RETURNING. ON CONFLICT works only with INSERT … SELECT over a recordset; use ref() / uuid() for idempotent single-row writes. |
| Aggregates | Work over one table; GROUP BY only with TYPE LIST; no ORDER BY beside an aggregate. |
| Empty results | No match returns {}, not []. A WHERE filter on a stored field excludes rows that never had a value for it. |
| Blockchain | Ethereum is the supported network; subscriptions are to contract events declared through an ABI. |
| Agent code execution | No outbound internet by default (per-agent domain allowlist set by a human); only /workspace persists. |
| Agent HTTP skill | 30 s timeout, HTTPS only for credentialed calls, no redirects, response cap 256 KB (default 32 KB). |
| Models | Agents use the tenant’s own LLM credentials: Anthropic Claude natively, OpenAI and OpenAI-compatible endpoints (Gemini, Ollama and similar). Availability follows the provider. |
| Interface languages | English and Arabic. |
| Money fields | A Number field stores whole numbers unless you give it a scale; declare scale 2 for currency. |
FAQ
What is LedgyX?
LedgyX is a serverless, event-driven platform for data, APIs, AI agents and pages, powered by SQL. You describe a product — its data, logic, pages and automations — and the platform runs it inside your own workspace; there is no backend service to deploy.
How does LedgyX differ from a conventional backend?
The model is data you edit live rather than a migration you ship: a new field is visible to queries, endpoints and agents as soon as it is saved, and a query’s result is the API response, so there are no resolvers or serializers per endpoint.
Which AI models can the agents use?
Anthropic Claude natively, plus OpenAI and any OpenAI-compatible endpoint (for example Google Gemini or a local Ollama) through the tenant’s own credential and base URL.
How are third-party secrets handled?
In an encrypted credential vault. Values are write-only for people, attached by the platform at call time, scrubbed from responses and run logs, and never shown to an LLM.
Does LedgyX support Arabic?
Yes, natively: the admin interface has right-to-left layout, SQL keywords exist in Arabic and English, and entity and field names can be Arabic.
Is there a free plan?
Yes. A free tier exists; paid plans vary by region. See the pricing page.
Next step
The fastest way to understand LedgyX is to build something small in it: create a configuration, ask the AI Builder for a three-entity model with an API, and open the generated reference.