2
0
Fork 0
mirror of https://github.com/Mallne/DC-Synapse.git synced 2026-11-22 20:43:01 +01:00
No description
Find a file
Gamaliel Krauße 3b160afa58
Merge pull request #99 from Mallne/renovate/dependency.analysis.v
chore(deps): update dependency com.autonomousapps.dependency-analysis to v3.20.4
2026-11-18 09:16:33 +01:00
.ai **refactor: migrate Synapse configuration from YAML to HOCON** 2026-11-02 14:18:08 +01:00
.forgejo/workflows Add Actions workflows for PR checks, releases, and snapshots across multiple projects 2026-10-22 16:07:14 +02:00
.github/workflows Delete .github/workflows/release-housekeeping-recovery.yml 2026-11-06 08:58:18 +01:00
core feat: aggregate multi-provider Catalyst schemas with namespaced components 2026-11-09 16:05:03 +01:00
gradle chore(deps): update dependency com.autonomousapps.dependency-analysis to v3.20.4 2026-11-18 04:23:52 +00:00
host **feat: enhance Catalyst request handling with input defaults, improved schema generation, and error logging** 2026-11-03 23:06:57 +01:00
.gitignore Restructure Synapse 2025-08-15 09:38:32 +02:00
AGENTS.md **feat: improve CORS host configuration to handle scalars and lists consistently** 2026-11-02 10:49:43 +01:00
build.gradle.kts Align Dependencies and better support for JS Target 2026-03-17 23:17:50 +01:00
docker-compose.yml Restructure Synapse 2025-08-15 09:38:32 +02:00
gradle.properties chore: bump version to 1.1.1-SNAPSHOT [skip ci] 2026-11-06 08:39:01 +01:00
gradlew chore(deps): update gradle to v9.8.2 2026-10-26 22:45:43 +00:00
gradlew.bat chore(deps): update gradle to v9.8.2 2026-10-26 22:45:43 +00:00
http-client.env.json Restructure Synapse 2025-08-15 09:38:32 +02:00
LICENSE Add Readme and Agents Files 2026-03-19 21:50:55 +01:00
README.md Add Catalyst execution gateway with bounded fanout, timeout handling, and integration tests 2026-10-16 09:31:12 +02:00
renovate.json chore(ci): remove drone and teamcity from renovate auto-merge list 2026-11-17 12:26:17 +01:00
settings.gradle.kts aviator: restructure client plugins under plugins/client/ 2026-11-17 13:13:41 +01:00
test.http Restructure Synapse 2025-08-15 09:38:32 +02:00

Synapse

DiCentra Kotlin License

 .oooooo..o
d8P'    `Y8
Y88bo.      oooo    ooo ooo. .oo.    .oooo.   oo.ooooo.   .oooo.o  .ooooo.
 `"Y8888o.   `88.  .8'  `888P"Y88b  `P  )88b   888' `88b d88(  "8 d88' `88b
     `"Y88b   `88..8'    888   888   .oP"888   888   888 `"Y88b.  888ooo888
oo     .d8P    `888'     888   888  d8(  888   888   888 o.  )88b 888    .o
8""88888P'      .8'     o888o o888o `Y888""8o  888bod8P' 8""888P' `Y8bod8P'
            .o..P'                             888
            `Y8P'                             o888o

A part of DiCentra by Mallne

Synapse is the core service discovery and Catalyst execution gateway of the DiCentra Application Framework. It provides a centralized registry for Aviator-compatible services and an authorized HTTP gateway that executes registered actions through Aviator.


🚀 Key Features

  • 🔍 Service Discovery: A robust registry for public and multi-tenant (scoped) services.
  • ⚡ Catalyst Gateway: Locator-based execution through the original Aviator provider pipeline.
  • 🤖 MCP Server: Planned separately; no MCP endpoint is currently provided by this HTTP milestone.
  • 🔐 Secure by Design: Integrated OIDC/JWT authentication with fine-grained scope-based access control.
  • 🔗 Monorepo Ready: Seamlessly integrates with Aviator and Polyfill.

🏗 Architecture

Synapse is built with a modular approach:

  • :core: The heart of the system, containing domain logic, service definitions, and API routes.
  • :host: The execution environment, handling server configuration and application startup.

🛠 Tech Stack


🚦 Quick Start

Prerequisites

  • JDK 25 (monorepo Gradle toolchain; select it through mise)
  • Docker (for database)

Setup

  1. Start the database:

    docker-compose up -d
    
  2. Configure environment: Create a .env or set environment variables for DATA_USER and DATA_PASSWORD.

  3. Run the application:

    ./gradlew :host:run
    

📖 API Overview

Catalyst Endpoint

  • POST /catalyst/{selector} executes the caller-visible original actions matching a canonical URL-safe Base64 ServiceLocator.toString() selector. The JSON body is the version-1 CatalystRequest envelope; optional identities contains visible service-record IDs and overrides automatic filters. List results are flattened into a JSON array ordered by service ID. Any partial provider failure returns 502; invalid input returns 400.
  • Discovery remains GET /services; there is no GET /catalyst locator-list endpoint.

Catalyst is fail-closed for outbound execution. Configure CATALYST_ALLOWED_HOSTS as a comma-separated list of exact provider hostnames or IP addresses. Provider server URLs must use HTTPS on the standard port and must match an entry; automatic HTTP redirects are disabled. Configure limits with catalyst.max_targets, catalyst.max_concurrent_targets, catalyst.max_request_bytes, catalyst.max_response_bytes, catalyst.max_aggregate_response_bytes, catalyst.per_target_timeout_millis, and catalyst.overall_timeout_millis (environment-variable equivalents use the CATALYST_ prefix).

Discovery Endpoints

  • GET /services: Discover available services based on your permissions.
  • POST /services: Register or update a service definition.
  • GET /services/{id}: Get details for a specific service.
  • DELETE /services/{id}: Remove a service from the registry.

🤝 Contributing

Synapse is part of the DiCentra ecosystem. Contributions are welcome! Please check the main DiCentra documentation for contribution guidelines.


Built with ❤️ by Mallne under the DiCentra umbrella