iii README

README проекта с github.com/iii-hq/iii. Одним файлом markdown: README.md.

iii

More application. Less infrastructure.

Connect any functions, agents, APIs, models, browsers, infrastructure, and machines into one live, composable system.

GitHub stars CI Release Contributors License

npm npm downloads PyPI PyPI downloads crates.io docs.rs Go Reference Docker pulls

Discord X

Website · Docs · Quickstart · Worker registry · Blog · Manifesto

Why iii

Every service comes with its own runtime, API, and failure modes. Getting services to work together means endless integration and instrumentation work: error handling, gateways, sync, tracing, and maintenance that never stops.

It's estimated that up to 70% of development time is dedicated to integrations. 40% is the lowest estimate we could find.

iii removes that work with one primitive, the Function. Services, agents, and tools connect to one engine as workers, and everything they can do is a Function that any other worker can call or observe, in any language and on any machine. Workers can then be defined in a Compose file and run on any infrastructure. An entire service stack can be brought up, down, upgraded, or swapped out with ease.

iii is like having an entire app platform at your fingertips without the vendor lock-in. The result is a system that is composable, observable, discoverable, extensible, and reactive. See Built for C.O.D.E.R..

One primitive: the Function

iii organizes software around one primitive, the Function, and two operators:

Workers host functions. Queues, databases, HTTP, streaming, sandboxes, observability, agents, and business logic are all functions. An HTTP request is a call of http::on-request. A database write is a call of database::on-row-changed. A queue message is a call of queue::on-message. To react to any of them, you use the same observe.

import { registerWorker } from 'iii-sdk'

const worker = registerWorker('ws://localhost:49134')

worker.registerFunction('orders::create', async (order: { item: string; total: number }) => {
  return { id: crypto.randomUUID(), ...order }
})

worker.registerFunction('alerts::big-order', async ({ input }: { input: { total: number } }) => {
  console.log(`Big order: ${input.total}`)
})

// When orders::create runs with a total of 500 or more, alerts::big-order runs
const observer = worker.observe(
  { function_id: 'orders::create', filters: { 'input.total': { $gte: 500 } } },
  'alerts::big-order',
)
await observer.ready()

// Run orders::create now and wait for its result
const order = await worker.call({ function_id: 'orders::create', payload: { item: 'widget', total: 750 } })
console.log(order)

The same API is in every SDK. See sdk/README.md.

Built for C.O.D.E.R.

Property What you get
C Composability Functions in different languages and locations work together seamlessly.
O Observability One trace follows every execution step across languages and machines. Export over OTLP.
D Discoverability The engine holds a live registry of every Function. It's always up to date so developers and agents have a clear picture.
E Extensibility Workers can be added and removed at any time with a single command.
R Reactivity Anything can be an observer or observed. Reactivity and events do not need to be pre-planned.

Install

curl -fsSL https://iii.dev/registry/install/iii/latest.sh | sh

On Windows, in PowerShell:

irm https://iii.dev/registry/install/iii/latest.ps1 | iex

The installer asks to set up your first project. Press Enter, then open http://127.0.0.1:3113.

For CI, Docker builds, and scripts, install without the prompt:

curl -fsSL https://iii.dev/registry/install/iii/latest.sh | sh -s -- --non-interactive

The install guide has all installer options.

Quickstart

In one terminal, create and start a project:

iii project init my-app && cd my-app
iii compose --up   # start the engine and the project's workers; keep it running

In a second terminal, add a worker from the registry:

cd my-app
iii call compose::add worker=http

The engine listens on ws://localhost:49134. The console serves at http://127.0.0.1:3113. Continue with the Quickstart.

SDKs

Language Package Install
TypeScript (Node.js) iii-sdk pnpm add iii-sdk
TypeScript (browser) iii-browser-sdk pnpm add iii-browser-sdk
Python iii-sdk pip install iii-sdk
Rust iii-sdk cargo add iii-sdk
Go iii go get github.com/iii-hq/iii/sdk/packages/go/iii

Repository structure

Path Contents
engine/ Rust engine and iii CLI
sdk/ SDKs for TypeScript, Python, Rust, and Go
docs/ Documentation source for iii.dev/docs (Mintlify)
website/ Source for iii.dev
skills/ Agent skills for coding agents
tech-specs/ Technical specifications

Contributing

Contributions are welcome. Read CONTRIBUTING.md for setup, commands, and the contribution license terms.

pnpm install && pnpm build   # JS/TS packages
cargo build --release        # engine and Rust SDK
pnpm test && cargo test      # tests

Report bugs and request features in GitHub issues.

Community

License

All contributions are made under Apache 2.0. See CONTRIBUTING.md for full contribution and licensing details.

iii (iii-hq/iii)

Ищем в базе…

19K ·GitHub
Что это такое?iii — это движок реального времени для вашего бэкенда: очереди, cron, HTTP, состояние, наблюдаемость, агенты и песочницы собраны в единую живую систему, где каждый сервис компонуемый и наблюдаемый.
То есть это библиотека, которую я подключаю, или что-то, что я запускаю?Это движок на Rust, который вы запускаете. Ваши сервисы подключаются как воркеры через SDK, регистрируются в движке и сразу попадают в живой каталог, который виден и доступен для вызовов всем остальным воркерам.
Как его запустить?Установите iii CLI, опишите воркеры проекта в файле worker-compose.yaml и запустите весь стек командой: iii compose --up. Готовые воркеры можно посмотреть на workers.iii.dev.
На каких языках я могу писать воркеры?Есть официальные SDK для Node.js (iii-sdk через npm/pnpm, нужен Node >= 20), Python (pip install iii-sdk), Rust (добавляется в Cargo.toml) и Go (go get github.com/iii-hq/iii).
Кто с этим работает каждый день?Платформенные команды публикуют воркеры, команды приложений регистрируют функции и описывают триггеры, а ИИ-агенты используют тот же каталог и те же вызовы функций — одна поверхность для всех троих.
Это полностью открытый код?Не совсем. Рантайм движка распространяется под Elastic License 2.0 (открытый исходный код с ограничениями), а все SDK, CLI, консоль, документация и сайт — под Apache 2.0.
Какая основная модель мышления здесь?Три примитива: Worker, Function и Trigger. Воркеры регистрируют функции со стабильными идентификаторами вроде content::classify, а триггеры декларативны — прямой вызов, HTTP-эндпоинт, расписание cron, подписка на очередь, изменение состояния или событие из потока — при этом iii сам занимается маршрутизацией, сериализацией и доставкой.
Как сюда вписываются ИИ-агенты?Агенты пользуются тем же каталогом, что и разработчики: когда для задачи не хватает какой-то возможности, агент может добавить воркер, обнаружить его функции, вызвать их и отследить, что произошло. Документация навыков, удобная для агентов, ставится командой npx skills add iii-hq/iii.
Можно ли добавлять сервисы, пока всё работает?Да — Compose умеет добавлять воркеры на ходу, так что агенты и приложения могут расширять живую систему без перезапуска. Воркеры также можно объявить заранее в worker-compose.yaml.
Как посмотреть, что делает система?Встроенная iii-console позволяет разработчикам и операторам просматривать воркеры, функции, триггеры, очереди, трейсы, логи и состояние в реальном времени. Это приложение на React + Rust, которое поставляется в этом репозитории.
Какие есть похожие проекты?encore, electric, openclaw-enterprise, flue, mem0, mcp-toolbox, evenfire, woml
Автор
iii-hq
Размер
611.2 MB
Звёзды
19K
Возраст
1 г
Коммиты · 90 дней