Quick Reference
Receiver
Install Graftcode Gateway (gg) from
Gateway releases before hosting a module.
See Run Gateway locally.
Build a plain module, then host the actual artifact:
gg <path-to-built-module>
Use gg.exe on Windows. Supported CLI runtime names and version baselines are listed in
Gateway CLI. Confirm discovery and successful publication before installation.
Install a Graft
Public packages: install from the Graftcode registry at https://grft.dev (Maven:
https://grft.dev/maven2/, pip: https://grft.dev/simple/) using documented package coordinates.
See Obtain and install a Graft for
sample packages and commands.
Your own Receiver: open the running Gateway's Vision UI, choose the Caller package manager, and copy the entire install command. Never guess or reuse an example registry URL, identifier, package name, import, or version.
Example shapes by runtime (copy the complete command from Vision, not these placeholders):
dotnet add package <package-id> --version <version> -s <registry-from-vision>
Generated packages expose host and stateless configuration (field names, casing, and access differ
by runtime). Copy the exact API from Vision and set it before the first generated call. The default
is inmemory, which requires the Receiver module to be locally loadable. The host is the runtime
endpoint, not the registry URL — see
Project Key, registry, host, and credentials.
GraftConfig.Host = "ws://localhost/ws";GraftConfig.Stateless = true;
Ports
80: WebSocket calls, enabled by default;81: Vision HTTP, enabled by default;82: TCP, only with--tcpServer;83: HTTP/2, only with--http2Server.
All ports are configurable.
Configuration priority
Generated packages resolve configuration in this order (highest wins first). .NET and Node.js are fully covered; other runtimes follow the same conceptual levels—confirm field names in the installed package:
- graft-specific environment;
- global environment;
- graft-specific file;
- global file;
- programmatic user configuration;
- generated library default.
Frequent failures
- Receiver
FileNotFound: remote host was not configured;inmemorytried to load the module. - No types: pass the built module path explicitly; verify public/exported members.
- Install
404: repeat the exact registry-qualified command from the current Vision instance. - Package generation
422: remove the named framework complex type from every public signature and public model member. - State lost after restart/scale-in: recreate the remote object or redesign as static/stateless.
Operations
- Store
GC_PROJECT_KEYas a secret; it overrides--projectKey. - Use
GG_DEBUGonly for controlled diagnosis because it logs byte traffic. - Gateway provides
GET /statusfor liveness. It does not provide a dedicated readiness or metrics endpoint unless a newer product version explicitly adds one. - Pin and test Gateway plus generated packages together; Alpha has no cross-major compatibility guarantee.
Detailed references
- Gateway CLI
- Configuration keys and precedence
- Environment variables
- Supported runtimes and package managers
- Type matrix
- Errors and status
- Generated package structure
- Ports and protocols
- Known limitations