← Open Source

Shared libraries between all services.

TypeScript
Momentum
+-2stars in 24 hours-0.2%
881
Stars
5
Forks
37
Contributors
Created 2025-07-28 · Updated 2026-12-04 · #28812 today
Top developers
README

OpenFrame OSS Library

openframe-oss-lib is the shared library foundation behind OpenFrame, the unified, AI-driven MSP platform built by Flamingo. It is not a standalone application: it is a multi-ecosystem collection of libraries — Java/Maven modules, a TypeScript/npm frontend design-system package, and Rust/Cargo agent libraries — that the rest of the OpenFrame stack builds on top of.

It publishes reusable modules for API contracts and domain services, MongoDB/Redis/Kafka/NATS/Loki/Pinot integrations, event publishing and processing, audit, security, authorization, notification, machine delivery, Fleet MDM SDK bindings, the OpenFrame frontend component library, and the Rust agent code that runs on managed endpoints.

OpenFrame OSS Tenant assembles the running platform (API, gateway, authorization server, and backend services) on top of this library's Maven and Cargo artifacts, OpenFrame OSS Frontend consumes its npm design-system package, and the OpenFrame CLI drives self-hosted deployment of the resulting platform.

Features

  • Shared API and domain contracts — openframe-api-lib and openframe-api-service-core define the DTOs, validation, mappers, and services for devices, tickets, RMM, software, knowledge base, and time tracking, used consistently by every API consumer.
  • Data and messaging integrations — dedicated modules for MongoDB (openframe-data-mongo-common, -sync, -reactive), Redis, Kafka, NATS, Loki, and Apache Pinot keep persistence and messaging conventions consistent across services.
  • Security, authorization, and audit — openframe-security-core, openframe-security-oauth, openframe-authorization-service-core, and openframe-audit provide JWT, OAuth 2.0/OIDC, PKCE, and method/authorization auditing shared by every tenant service.
  • Event-driven architecture — openframe-event-publishing, openframe-event-processing, openframe-event-jobs, and openframe-debezium-initializer implement a transactional outbox, Kafka projections, retries, and resumable backfills.
  • Machine delivery and agent integration — openframe-machine-delivery, openframe-client-core, and openframe-tool-agent-nats-installation connect backend workflows to OpenFrame agents over NATS.
  • Frontend design system — @flamingo-stack/openframe-frontend-core ships the chat protocol, UI components, hooks, contexts, and shared types consumed by OpenFrame frontends.
  • Rust agent libraries — openframe_agent_lib and openframe_common under clients/ provide the system-management agent and code shared with desktop apps, including NATS connectivity, notifications, and platform-specific execution.
  • Fleet MDM SDK — the fleetmdm module gives typed access to Fleet MDM's REST API for inventory, policies, software, and vulnerabilities.

Every Java module is versioned together under one Maven revision property (currently 7.3.41), so consuming services upgrade the whole library family in lockstep rather than tracking dozens of independent versions.

Architecture

OpenFrame applications combine the reusable frontend, edge, service, domain, persistence, messaging, and agent-facing modules published from this repository. Transport and infrastructure concerns stay separate: API modules define service-facing contracts, data modules provide persistence and messaging boundaries, event modules maintain asynchronous projections, and client or delivery modules connect backend workflows to OpenFrame agents.

flowchart LR
    User["Technician or Client"] --> Frontend["Frontend Core Components"]
    Frontend --> Chat["Chat Protocol and Runtime"]
    Frontend --> Gateway["Gateway Service Core"]

    Gateway --> Auth["Authorization and Security"]
    Gateway --> Api["API Service Core"]
    Gateway --> External["External API Service Core"]

    Api --> ApiLib["API Lib Core"]
    External --> ApiLib
    ApiLib --> Domain["Core, Audit, Notification, and Management Libraries"]

    Domain --> Mongo["MongoDB Data Modules"]
    Domain --> Redis["Redis Data Module"]
    Domain --> Kafka["Kafka Data Module"]
    Domain --> Nats["NATS Data Module"]

    Kafka --> Stream["Stream Service Core"]
    Kafka --> Events["Event Publishing and Processing"]
    Events --> Debezium["Debezium Initializer"]

    Nats --> Delivery["Machine Delivery"]
    Delivery --> Client["Client Core"]
    Client --> Agent["OpenFrame Agent"]
    Agent --> Rust["Rust Agent Libraries"]

    Domain --> Fleet["Fleet MDM SDK"]
    Domain --> Pinot["Pinot Query and Initialization Modules"]
    Domain --> Loki["Loki Data Module"]
Loading

Where This Repository Sits in the Ecosystem

According to the organization's repository graph, this library publishes Maven artifacts under com.openframe.oss (currently 7.3.41), the npm package @flamingo-stack/openframe-frontend-core (0.0.108), and the Cargo crates openframe_agent_lib and openframe_common (0.1.0). It in turn pins async_nats 0.53.1 from the NATS Rust Client.

Downstream, OpenFrame OSS Tenant pins the Maven modules (including fleetmdm) at 7.0.11 and the openframe_agent_lib crate at v0.0.5, while OpenFrame OSS Frontend pins a pkg.pr.new preview build of @flamingo-stack/openframe-frontend-core.

flowchart LR
    Lib["OpenFrame OSS Library"] -->|"cargo 0.53.1"| Nats["NATS Rust Client"]
    Tenant["OpenFrame OSS Tenant"] -->|"maven 7.0.11"| Lib
    Frontend["OpenFrame OSS Frontend"] -->|"npm pkg.pr.new snapshot"| Lib
    Frontend -->|"cargo"| Nats
Loading

Index coverage for this graph is partial: one repository in the organization is not currently indexed, so an empty consumer list elsewhere does not prove a module is unused.

Technology Stack

Ecosystem Role Representative Modules
Java / Maven (Spring Boot 4.1.1, Java 25) API, security, data, event, delivery, notification services openframe-api-lib, openframe-api-service-core, openframe-authorization-service-core, openframe-client-core, openframe-audit, fleetmdm
TypeScript / npm Frontend design system and chat protocol @flamingo-stack/openframe-frontend-core
Rust / Cargo OpenFrame agent and shared client code openframe_agent_lib (clients/openframe-client), openframe_common (clients/openframe-common)

Key infrastructure dependencies pinned in the root pom.xml include Spring Cloud 2025.1.3, Netflix DGS 12.1.0 for GraphQL, the Apache Pinot client 1.5.1, JJWT 0.11.5, Lombok 1.18.48, and MapStruct 1.6.3.

Quick Start

This repository is a library collection, not a deployable application. The fastest path to a working build depends on which part you are touching.

If you only want to run the full OpenFrame platform (services, UI, agents together), use the OpenFrame CLI or OpenFrame OSS Tenant instead. This repository is a dependency of those, not a replacement for them.

1. Clone the Repository

git clone https://github.com/flamingo-stack/openframe-oss-lib.git
cd openframe-oss-lib

2. Build the Java Libraries (Maven)

The root pom.xml is a parent POM (com.openframe.oss:openframe-oss-lib, packaging pom) with Spring Boot 4.1.1 as its parent and Java 25 as the target language level, declaring around 40 modules.

mvn -version
mvn clean install -DskipTests

To build and test a single module while iterating:

mvn -pl openframe-api-lib -am clean install

3. Build the Rust Agent Crates (Cargo)

The agent code lives under clients/: openframe-agent-lib (clients/openframe-client) and openframe-common (clients/openframe-common).

cd clients/openframe-client
cargo build --release --locked

Or use the provided Makefile targets (make build, make build-bin, make test).

4. Build the Frontend Library (npm)

The design system package @flamingo-stack/openframe-frontend-core lives in openframe-frontend-core/.

cd openframe-frontend-core
npm install
npm run build

5. Run the Reference Embedding Example (Optional)

react-embedding-example/ is a small standalone React SPA that shows how to embed @flamingo-stack/openframe-frontend-core chat and content surfaces behind a /content reverse proxy.

cd react-embedding-example
cp .env.example .env
npm install
npm run dev

Edit .env to point HUB_ORIGIN at your running OpenFrame hub. Platform API keys and the act-as email used by this example are entered on the app's /debug page and stored in the browser's localStorage, not set as environment variables.

See the Quick Start guide for verification steps, expected output, and troubleshooting tips, and Prerequisites for the exact tool versions required (Java 25, a Maven compatible with Spring Boot 4.1.1, Node.js, Rust with Cargo, and Docker for Mongo-backed integration tests).

Documentation

📚 See the Documentation for comprehensive guides, including the full Reference Architecture covering every module (API, data, events, security, delivery, and frontend), the Getting Started tutorials, and the Development guides for setup, testing, security, and contributing.


Built with 💛 by the Flamingo team
Nearby in the ranking

AI Rank for iPhone

Follow AI model rankings

Download on the App Store