HUB
Sign inSign up
data-gateway logo

flaviorita/data-gateway

By flaviorita

•Updated 1 day ago

λORM data gateway: REST, MCP and WebSocket APIs over λORM schemas, configured by one YAML file.

Image
0

1.0K

flaviorita/data-gateway repository overview

⁠λORM data-gateway

Exposes λORM⁠ schemas by configuration: write and run λORM queries (lambda expressions over your domain, translated to MySQL, MariaDB, PostgreSQL, SQL Server, Oracle, MongoDB) through the transports you enable, each on its own port.

  • http: the REST API (/execute, /plan, /metadata, schema and stages), Swagger at /doc
  • mcpHttp: MCP over Streamable HTTP (and the legacy SSE); mcpWebSocket: MCP over WebSocket
  • webSocket: JSON-RPC with notifications
  • UI at /ui (off by default): query editor with the schema's autocompletion

Several schemas per instance (each folder with a lambdaORM.yaml is served at its route, e.g. /iot/v1), each in its own worker (thread or process) with its own environment; credentials with permissions (read, write, script, queue, stageImport); audit of writes; Prometheus metrics at /metrics.

⁠Run

docker run -v $(pwd)/workspace:/workspace \
  -v $(pwd)/data-gateway.config.yaml:/config/data-gateway.config.yaml:ro \
  -e HTTP_PORT=8080 -e MCP_PORT=8081 -p 8080:8080 -p 8081:8081 flaviorita/data-gateway:3.0.0-rc.1

# data-gateway.config.yaml
orm:
  workspacePath: /workspace
authentication:
  adapter: local
  type: apikey
  keys:
    - { name: reader, value: $READER_KEY, permissions: [ read ] }
transports:
  http: { port: $HTTP_PORT }
  mcpHttp: { port: $MCP_PORT }

No port, no transport: nothing is exposed unless configured.

Tags

- 3.0.0-rc.1: first release under this name (prerelease; latest is not set yet).
- Up to 2.4.0 the image was flaviorita/lambdaorm-svc, configured
  through infrastructure.service of lambdaORM.yaml.

Docs: design ·
changelog

Tag summary

Content type

Image

Digest

sha256:c4f5e3c3e…

Size

285.2 MB

Last updated

1 day ago

docker pull flaviorita/data-gateway