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 上,在任意客户端项目里用你常用的包管理器(npm、dotnet、pip 等)安装自动生成的强类型 Graft,然后导入其中的类,像调用本地代码一样调用方法。有一份手把手的快速入门指南会带你走完每一步。
它支持哪些语言和包管理器?它支持 20 多种语言和 10 多种包管理器——README 里的示例包括 npm、dotnet 和 pip——所以服务端和客户端可以各用不同的技术栈,完全不需要写集成胶水代码。
是不是每个方法都会自动对 AI 智能体开放?不是——只有参数和返回值都是值类型的公开静态方法才能变成可调用的 MCP 工具。另外总的来说,每次调用都要经过 Gateway,而 Gateway 需要你自己托管并保持运行。
Gateway 可以跑在哪里?哪些东西能调用我的服务?Gateway 可以运行在云主机、裸金属服务器、容器(有官方 Docker 镜像发布)或你的本地机器上。客户端则从 Web、移动端到边缘端都可以。
Graft 到底是什么?是 Graftcode 根据你的服务自动生成的强类型客户端包。你在消费它的项目里用常规的包管理器(npm、dotnet、pip 等)安装它,导入里面的类,然后就像调用本地模块一样调用远程 API。
相比 REST 和 gRPC,它宣称有哪些性能提升?调用速度比 REST/gRPC 最快提升 70%,CPU 占用明显更低;代码库体积最多减少 50%;AI 辅助修改的 token 开销降低 30% 到 70%。带性能对比的在线演示放在 graftcode-demos 仓库里。
能在单体和微服务之间切换而不用重写代码吗?可以——Graftcode 宣称单体到微服务的切换零代码改动,而且通信通道(WebSocket、HTTP/2、RabbitMQ、Kafka、Service Bus、SQS、Pub/Sub 等)可以通过官方插件来替换,一行代码都不用改。
用 AI 编程智能体开发时,它能帮上什么忙?除了原生支持 MCP,Graftcode 还提供开箱即用的智能体规则(Cursor、Claude 等),在项目根目录用一条命令就能装好。智能体读取这些规则后,可以搭建新的 Graftcode 系统或迁移现有系统,官方宣称 token 用量能降低 30% 到 70%。
Creator
grft-dev
Size
0.4 MB
Stars
927
Updated
CommitSep 24
Age
3mo
Commits · 90 Days