Skip to content

SDK overview

An SDK is how an application talks to FlowCatalyst. Six languages have one: Go, Java, TypeScript, PHP (Laravel), Rust and Python. They are not six ports of one library. They share a wire contract and differ in how much of the platform each wraps, so check the feature matrix before you commit to one.

Only the platform itself is language-neutral. Everything an SDK does is also reachable over the HTTP API, which is the fallback for anything an SDK lacks.

Whatever the language, an SDK is some combination of these jobs:

Job What it means
Write Put events, dispatch jobs, audit entries and pushes in your own database, in your own transaction, for the outbox relay to send. See the transactional outbox.
Declare Describe the roles, event types, connections, subscriptions, pools and more your application owns, and sync them on deploy. See sync definitions.
Call A typed client for the platform’s control-plane API, with token handling and retries. See call the API.
Receive Verify the signature on a delivery or a scheduled-job firing, and run the job. See delivery.
Identify Validate bearer tokens, sign users in, verify field-worker tokens. See tokens.

The SDKs are not generated from one source of truth, so compatibility is tested:

  • The platform publishes an OpenAPI document, committed as api/openapi.lock.json. The Go, Java, TypeScript, PHP and Python clients are checked against it, and several are generated from it.
  • Outbox rows, TSIDs, webhook signatures and audit redaction are pinned by shared test vectors. The Go, Java and Rust SDKs write the same bytes for the same input, apart from one deliberate difference noted in the Go outbox page.
  • Because the SDKs follow the platform, a platform change can reach the SDKs after it reaches the console. The SDK changelogs say when.

Every cell below was checked against the SDK’s source, not its README. “Yes” means the SDK has code for it. A dash means it does not.

Go Java TypeScript PHP (Laravel) Rust Python
Status Released Released (tag only) Released Released Unreleased Preview, unpublished
Talking to the platform
Control-plane API client Yes Yes Yes Yes Yes (no field workers) Partial: roles sync, platform config, ingestions
Client-credentials tokens Yes Yes Yes Yes Yes Yes
Ingestions API Yes Yes Yes Yes Yes Yes
Platform config and secret reveal Yes Yes Yes Yes Yes Yes
Field-worker admin API Yes Yes Yes Yes - -
Writing
Transactional outbox: events, dispatch jobs, audit Yes Yes Yes Yes Yes -
Outbox databases Postgres (pgx, database/sql), MySQL Postgres, MySQL (JDBC) Postgres SQL through Laravel (MySQL, Postgres), MongoDB Postgres, MySQL (sqlx) -
Push rows in the outbox Yes Yes Yes Yes Yes -
Use-case envelope (validate, authorise, plan, atomic commit) Yes - (a separate module builds on the SDK) Yes (plain and Effect) Yes - -
Declaring
Definition sync 10 categories 11 categories 9 categories + push 9 categories + push 11 categories Roles only
Docs pages in the sync Yes Yes - - Yes -
Push topic rules in the sync - Yes Yes Yes Yes -
Annotation or attribute declarations - Yes (annotations) - Yes (PHP attributes, scanned) - -
Receiving
Webhook signature verification Yes Yes Yes Yes (middleware) Yes -
Scheduled-job runner Yes - Yes Yes - -
Distributed locks Yes (memory, Postgres, Redis) - Yes (memory, Postgres, Redis) Yes (Laravel cache) - -
Cache Yes (memory, Postgres, Redis) - Yes (memory, Postgres, Redis) - - -
Identity
Bearer-token validation (JWKS) Yes - Yes (Fastify) Yes (guards) Yes (auth feature) -
Sign-in (OIDC) helpers Yes (OAuth client only) - Yes (Fastify) Yes (guards, routes) Yes (auth feature) -
Customer-portal sign-in - - Yes Yes - -
Field-worker token verification Yes Yes Yes Yes - -
Push ticket minting - Yes Yes Yes Yes -
Agents
MCP server - - - - - -

How to read the less obvious rows:

  • Definition sync categories. Go: roles, event types, dispatch pools, connections, subscriptions, processes, scheduled jobs, principals, the OpenAPI document and docs pages. Java and Rust add push rules. TypeScript and PHP have the same nine without docs pages, plus push rules. Python syncs roles only.
  • Use-case envelope. The Go envelope is usecaseop; TypeScript has usecase and an Effect flavour; Laravel has UseCase. The Java SDK is deliberately only the client: the use-case framework is a separate module that builds on it. Rust’s crate leaves use cases to the application framework.
  • Sign-in helpers. Go gives you the building blocks (OAuthClient, PKCE, token validators) and no session handling. TypeScript’s Fastify plugin and Laravel’s guards manage the whole flow.
  • MCP. No SDK contains an MCP server. Agents read platform metadata through fcdev mcp; see MCP server and MCP tools.
  • Push. Writing a push row and minting a listening ticket are separate rows because only four SDKs do both. Go writes push rows but does not mint tickets or sync topic rules.
  • Dispatch jobs. All writers except Rust can set an idempotency key and a connection on a dispatch job. The Rust builder cannot yet.

Nothing is published to a public language registry (npm, Packagist, Maven Central). The Go, TypeScript and PHP SDKs are installed from a git tag; the Java SDK comes from the platform repository’s GitHub Packages Maven registry.

Terminal window
go get github.com/flowcatalyst/go-sdk@v0.7.0

The Go module proxy serves the tag. Go 1.27 or later. See the Go SDK.

SDK Current version Tag How it reaches you
Go v0.7.0 go-sdk/vX.Y.Z; the release script publishes vX.Y.Z to flowcatalyst/go-sdk Go module proxy
Java 0.0.38 java-sdk/vX.Y.Z; a workflow deploys to GitHub Packages GitHub Packages Maven registry
TypeScript v0.29.0 typescript-sdk/vX.Y.Z; a workflow splits to flowcatalyst/typescript-sdk and tags vX.Y.Z Git dependency
PHP (Laravel) v0.27.0 laravel-sdk/vX.Y.Z; a workflow splits to flowcatalyst/laravel-sdk and tags vX.Y.Z Composer vcs repository
Rust 0.1.0 (unreleased) none Git dependency on a commit
Python 0.0.1 (unreleased) none Install from a checkout

All the released SDKs are pre-1.0, so a minor release can change an API. Pin an exact tag, and read the changelog before you move (the Go changelog is on this site; the others ship change notes beside their code). Per-release commands and the full table of release lines are in packages and versions.

Other client libraries have their own pages: the function SDKs for code that runs inside the function runtime, the field libraries for phones and tablets, and the UI packages for application front ends. The Go and Java application frameworks build on the SDKs.

Use the language your application is written in. Two cases need thought.

  • You need a capability the matrix shows as missing. Either call the HTTP API for that part, or use another SDK in a small companion service. The Java SDK has no scheduled-job runner, for example, but it verifies a firing’s signature and has the API calls to report its outcome.
  • Your language is not listed. Write events with the outbox’s table schema (the DDL is in the outbox page), run a relay, and call the HTTP API for the rest. Webhook verification is an HMAC; the reference has test vectors.