Skip to content

nativebpm/sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

51 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

NativeBPM Polyglot Client SDKs

NativeBPM Platform

Welcome to the official NativeBPM Client SDKs monorepo. NativeBPM is a cloud-native, high-performance BPMN 2.0 execution engine designed for modern microservice architectures.

This repository houses the client libraries and Fluent Workflow builders for all major programming languages, allowing you to define, deploy, and interact with process definitions and human-in-the-loop tasks using your favorite language.


πŸ“– API Documentation & Resources

  • Interactive Swagger UI: Accessible at http://localhost:8080/ui/docs (choose topic 6. REST API Reference inside your local NativeBPM Console).
  • Raw OpenAPI Specification: Exposed dynamically by the engine at http://localhost:8080/api/openapi.json.
  • Central Repo Resources:
    • openapi.yaml: The platform OpenAPI 3.0 specification file.

πŸš€ Supported Languages

Click on the language badges below to navigate to their respective subdirectories and check out the documentation and runnable examples:

Language Badge Quick Link
Go Go Go Client & Builder
Python Python Python Client & Builder
TypeScript TypeScript TypeScript Client & Builder
Java Java Java Client & Builder
.NET (C#) .NET .NET Client & Builder
PHP PHP PHP Client & Builder
Rust Rust Rust Client & Builder
Kotlin Kotlin Kotlin Client
Swift Swift Swift Client
Dart / Flutter Dart Dart & Flutter Client & Builder

πŸ› οΈ Server-side Workflow-as-Code Compilation

NativeBPM features a state-of-the-art Workflow-as-Code builder. Instead of writing verbose BPMN 2.0 XML by hand or using external visual tools, developers can write type-safe, fluent code in their host language.

To ensure client-side SDKs remain extremely lightweight, reliable, and free of heavy runtime dependencies (like WASM runtimes or local binary files), the compilation logic has been moved entirely to the server side.

How it Works

flowchart TD
    subgraph "Host Application (Go, Python, JS, Rust, Swift, etc.)"
        API[Fluent Workflow API Builder] -->|Builds AST| AST[Workflow AST JSON]
        AST -->|Direct HTTP POST| REST[REST API Client]
    end

    subgraph "NativeBPM Engine Server"
        POST_DEPLOY[POST /api/deploy] -->|Receives JSON AST| COMPILER[Embedded Go-in-WASM Compiler]
        COMPILER -->|Compiles & Validates| BPMN[BPMN 2.0 XML]
        BPMN -->|Registers & Runs| ENGINE[Execution Engine]
    end

    REST -->|Sends JSON AST| POST_DEPLOY

    style COMPILER fill:#4F46E5,stroke:#fff,stroke-width:2px,color:#fff
    style BPMN fill:#10B981,stroke:#fff,stroke-width:2px,color:#fff
    style ENGINE fill:#06B6D4,stroke:#fff,stroke-width:2px,color:#fff
Loading

By offloading the compilation to the engine backend, NativeBPM client SDKs require:

  • Zero Client Dependencies: No WebAssembly interpreters (like Wazero or Wasmtime) or local .wasm files are bundled.
  • Flawless Stability: Platform updates and schema validations are maintained server-side, meaning client SDKs do not need updates for compiler upgrades.
  • App Store Policy Compliance: Perfect for mobile platforms (iOS/macOS via Swift, Android via Kotlin) which strictly restrict JIT execution and arbitrary binary execution.

🌟 Why NativeBPM Loves Your Language

Every language has its unique ecosystem, strengths, and philosophy. NativeBPM embraces this diversity and optimizes the developer experience for each stack:

🐹 Go (Golang)

  • Native Cohesion: Since the core NativeBPM execution engine is written in Go, the Go client features direct and seamless integration.
  • Concurrency-First: Take full advantage of Go's lightweight goroutines and channels to write high-concurrency topic workers.
  • Minimal Footprint: Compiles into a single statically linked binary with absolute zero runtime dependencies.

🐍 Python

  • Outstanding Ergonomics: Clear, readable syntax makes writing workflows as code feel natural and pleasant.
  • Rapid Prototyping: Ideal for fast iterations, scripts, and startups.
  • AI & Agentic Ecosystem: Python is the lingua franca of AI. NativeBPM's first-class AITask integrates beautifully with LangChain, LlamaIndex, and GenAI libraries.

⚑ TypeScript / JavaScript

  • Universal Reach: Integrates natively with Node.js microservices, Edge runtimes, and frontend dashboards.
  • Asynchronous Mastery: Fits perfectly within the JS async/await event-loop model for event-driven workflows.
  • Type Safety: Full TypeScript typings for all REST APIs and workflow builders ensure autocomplete and compile-time correctness.

β˜• Java

  • Enterprise Powerhouse: Perfect for robust, long-running enterprise applications and high-throughput systems.
  • Strict Type Safety: Protects complex orchestrations with Java's mature object-oriented compiler.
  • Familiar Migration: Provides a modern, cloud-native migration path for legacy BPM (e.g. Camunda, Activiti) architectures.

πŸ’Ž .NET (C#)

  • High Performance: Native asynchronous tasks (async/await) and Linq integrations make backend execution extremely performant.
  • Premium Tooling: Integrates natively with Visual Studio and the modern .NET Core / ASP.NET ecosystem.
  • Robust Enterprise Layout: Type-safe client configurations and dependency injection patterns match enterprise architecture standards.

🐘 PHP

  • Web Native: Perfect for PHP-centric applications, frameworks (like Laravel), and rapid-delivery web backends.
  • Simple Execution Model: The straightforward, request-lifecycle PHP model makes queuing background tasks and invoking workflows highly intuitive.
  • Easy Integration: Perfect for transactional backends that need process orchestration without complex microservice overhead.

πŸ¦€ Rust

  • Maximum Performance: Zero runtime cost and zero-garbage-collector execution for absolute memory safety and speed.
  • Direct WASM Synergy: Rust compiles to and interacts with WASM runtimes (like Wasmtime) with the highest possible efficiency.
  • Bulletproof Safety: The compiler enforces strict ownership rules, preventing runtime data races in distributed workers.

πŸš€ Kotlin (Android / JVM)

  • Mobile & Backend Ready: Native Kotlin REST client, perfect for Android apps, backend microservices, or Kotlin Multiplatform projects.
  • Modern Concurrency: Built with OkHttp and coroutines compatibility for lightweight asynchronous requests.
  • Clean Syntax: Elegant Kotlin properties and builders that map directly to the platform API.

🍎 Swift (iOS / macOS)

  • Native Apple Integration: Native Swift implementation using URLSession and modern async/await for smooth integration into iOS, macOS, or watchOS apps.
  • Strict Type Safety: Fully compatible with Swift Codable schemas and AnyCodable variables, avoiding JSON deserialization issues.
  • Lightweight Bundle: REST-only client, avoiding WebAssembly and runtime overhead to keep your mobile application binary size tiny.

🎯 Dart / Flutter

  • Mobile & Cross-Platform Ready: Statically typed Dart client, optimized for Flutter apps running on iOS, Android, Web, or Desktop.
  • Declarative Workflow Builder: Full support for the Fluent API, including conditional branching using .when().then().Else() and automatic back-edge loops tracking.
  • AOT Compilation Friendly: Zero dependency footprint, avoiding WASM runtimes to comply with strict iOS AOT and app store execution policies.

πŸ€– AI Service Task Integration (aiServiceTask)

To facilitate seamless AI and LLM orchestration without breaking BPMN 2.0 standards:

  • Every client SDK provides a fluent .AITask(...) (or .ai()) helper.
  • Under the hood, this compiles into a standard BPMN <serviceTask> element with the type "aiServiceTask" and topic "ai_assistant".
  • System instructions, prompts, and target schemas are automatically serialized into <extensionElements> (matching standard Camunda input/output structures).
  • This keeps your process schemas fully compatible with standard BPMN 2.0 visual modelers while giving your developers a clean, type-safe API wrapper.

πŸ“ License

This project is licensed under the terms of the Unlicense (see individual directories for details).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors