graftcode README

The project's README from github.com/grft-dev/graftcode. As one markdown file: README.md.

graftcode

Graftcode

Roadmap Quick Start Stars

WeAreDevelopers 2026 — Berlin

We are at WeAreDevelopers World Congress 2026 in Berlin. If our session or product caught your interest, star this repo — it helps us a lot.

Conference demo repositories:


Call remote code like local dependencies.

Graftcode is the integration-layer-free development framework that lets you call methods across any language and runtime as if they were local, without writing integration code, SDKs, or client layers.

Supported Languages
.NET Java Python Node.js Go PHP C++ Ruby

Platforms & OS
Windows Linux macOS Android

Cloud Ready
Azure AWS GCP Docker

Call remote code like local dependencies. Let package managers keep them fresh.

Graftcode is the integration-free development layer that lets you call methods across languages and runtimes as native dependencies: no integration layer code, no SDKs, no client code.

Turn your public methods into instantly consumable, strongly-typed clients in any technology using regular package managers.

Access your remote services from web, mobile, and edge clients. Seamlessly connect microservices and expose business logic the way it was always meant to be clean, type-safe, and effortless.

Imagine a world where you can share business logic across any technology as easily as publishing a package to a public repository. With Graftcode, you simply write public methods, communicate errors through exceptions, and call them like local code.

Graftcode removes the need to hand-write REST, gRPC, or Thrift integration layers, or to couple your code to message buses and event systems. It reduces your codebase by up to 50%, dramatically improves AI-assisted development (lower token usage, higher efficiency, and simpler code reviews), and makes every backend immediately MCP-compatible for AI agents.

It also enables true modular monoliths you can decompose and recombine modules at will, switch communication channels (WebSocket, HTTP/2, RabbitMQ, Kafka, Service Bus, SQS, Pub/Sub, etc.) without changing a single line of code, and build truly polyglot systems with zero integration overhead.


What is Graftcode?

Instead of building and maintaining APIs, DTOs, clients, and integration layers, Graftcode lets you:

No controllers. No OpenAPI. No client code. No IDL.

Graftcode works with monoliths, microservices, and everything in between — and comes with built-in MCP support for AI agents.


Quick Start

1. Host your service

# 1. Build/package your library
# 2. Navigate to the output folder
# 3. Download Graftcode Gateway

# Windows
iwr https://grft.dev/get | iex

# Linux / macOS
curl -fsSL https://grft.dev/get | sh

# Run the Gateway with your module:
# Example with .NET
gg --modules ./MyService.dll

2. Consume it from anywhere

Install a Graft using your package manager (example for npm):

npm install --registry https://grft.dev/YOUR_PROJECT_ID @graft/your-service-name

Graft installed command can be obtained by navigating to your service hosted on Graftcode Gateway i.e. http://localhost if executed locally.

3. Call it like local code

Once you install Graft in client project of your choice, just import classes replicating your remote API and call the methods as if they where available as local module.

import { EnergyPriceCalculator } from '@graft/...';

const price = await EnergyPriceCalculator.GetPrice();

Whenever API evolves, graftcode will take care to inform your package manager that new version of dependency is available.

Interactive Quick-Start Journey

The best way to get started with Graftcode is our hands-on tutorial series.

→ Open Quick Start Guide

It contains step-by-step tutorials such as:

Core Repositories

Repository Purpose
graftcode-gateway Core multi-runtime host (the engine)
graftcode-demos Live demos + performance comparisons
graftcode-quick-start-guide Hands-on tutorials
graftcode-documentation Full documentation
graftcode-docker-images Official Docker images
graftcode-plugins Official Open Source plugins for any communication channel (ServiceBus, RabbitMQ, Kafka etc..)

Key Features

Exposing your methods for AI Agents (MCP)

Graftcode has native support for Model Context Protocol (MCP). Any public static methods with value type arguments and results become callable as MCP tools. Run your module on Graftcode Gateway, enter the service address and copy MCP configuration from Graftcode Vision portal exposed by Graftcode Gateway.

Ready to use AI Agent rules

Adding graftcode rules to your repository allows you to build entire monolith or distributed systems based on graftcode using pure prompts — the AI agent reads the rules and can easily build new systems in greenfield project, migrate existing solutions to graftcode, and evolve your solution with significantly higher context efficiency and lower token usage.

Use command below in your project root directly to download rules for any IDE Agent.

# PowerShell
iwr grft.dev/get | iex

# Linux / macOS
curl -fsSL grft.dev/get | sh

# Alternative with wget
wget -qO- grft.dev/get | sh

AI Agent Rules Raw Files

If you want to access the raw files of our ready-to-use rules and instructions for AI coding agents that are getting installed when you call abovementioned one-liner command, check the folder below:

→ /rules

These files help AI agents (Cursor, Claude, etc.) understand and effectively use Graftcode when generating or refactoring code.



Used by

Graftcode is already trusted by innovative teams at:

Total TRUMPF Siemens IQVIA Breas

(and many more engineering teams building the future of software)


⭐ Star us if you like the project

If Graftcode helps you ship faster and cleaner or just inspire you with its bold vision — please star the repository.
It really helps the project grow and motivates the team.

Star

Contributing

We welcome contributions! Please read our Contributing Guide and feel free to open issues or PRs.

Made with ❤️ for developers who want to focus on business logic instead of integration layers.

Join the Community

Join other Grafters building the future of software integration.

Join Discord

Chat with the team, get help, share ideas, and stay up to date with the latest developments.

graftcode (grft-dev/graftcode)

Searching Database…

Что это такое?Graftcode — это слой разработки без интеграций: вы вызываете методы на удалённых сервисах на любом языке и в любом рантайме так, как будто это локальные зависимости — без самописных REST/gRPC-слоёв, SDK или клиентского кода.
Это фреймворк, который я запускаю сам, или облачный сервис?Это фреймворк, а не хостинговый сервис. Вы запускаете свои публичные методы на Graftcode Gateway — хосте с поддержкой нескольких рантаймов, который разворачиваете сами, — а другие проекты используют их через автоматически сгенерированные типизированные клиенты.
Как запустить всё от начала до конца?Разместите свой сервис на Graftcode Gateway, установите автоматически сгенерированный строго типизированный Graft в любой клиентский проект через привычный пакетный менеджер (npm, dotnet, pip и другие), затем импортируйте его классы и вызывайте методы как обычный локальный код. Пошаговое Quick Start Guide проведёт вас через каждый этап.
С какими языками и пакетными менеджерами он работает?Работает с более чем 20 языками и более чем 10 пакетными менеджерами — в примерах README используются npm, dotnet и pip, — так что сервисная и клиентская части могут быть на разных стеках без интеграционного клея.
Каждый ли метод автоматически становится доступен AI-агентам?Нет — в виде MCP-инструментов становятся доступны только публичные статические методы с аргументами и результатами значимых типов. В более широком смысле каждый вызов проходит через Gateway, который вам нужно самостоятельно разместить и поддерживать в рабочем состоянии.
Где работает Gateway и что может использовать мои сервисы?Gateway работает на облачных инстансах, bare metal, в контейнерах (публикуются официальные Docker-образы) или на вашей локальной машине. Клиенты — от веба и мобильных приложений до edge.
Что такое Graft?Это автоматически сгенерированный строго типизированный клиентский пакет, который Graftcode создаёт из вашего сервиса. Вы устанавливаете его в проект-потребитель обычным пакетным менеджером (npm, dotnet, pip и т.д.), импортируете классы и вызываете их так, как будто удалённое API — это локальный модуль.
Какой прирост производительности он обещает по сравнению с REST и gRPC?Вызовы до 70% быстрее при заметно меньшей загрузке CPU, чем у REST/gRPC, сокращение объёма кодовой базы до 50% и снижение расхода токенов при изменениях с помощью AI на 30-70%. Живые демонстрации со сравнением производительности лежат в репозитории graftcode-demos.
Можно ли переключаться между монолитом и микросервисами без переписывания кода?Да — Graftcode заявляет переключение монолит-микросервисы без изменения кода, а каналы связи (WebSocket, HTTP/2, RabbitMQ, Kafka, Service Bus, SQS, Pub/Sub и другие) можно менять через официальные плагины, не трогая ни строчки.
Чем это помогает при разработке с AI-кодинг-агентами?Помимо нативной поддержки MCP, Graftcode поставляет готовые правила для агентов (Cursor, Claude и др.), которые устанавливаются одной командой в корень вашего проекта. Агенты читают эти правила и могут строить новые системы на Graftcode или мигрировать существующие — с заявленным снижением расхода токенов на 30-70%.
Creator
grft-dev
Size
0.4 MB
Stars
927
Updated
CommitSep 24
Age
3mo
Commits · 90 Days