@llm-dev-ops/llm-schema-api
v0.1.0
Published
LLM Schema API - Core API server for schema registry
Downloads
12
Readme
@llm-dev-ops/llm-schema-api
LLM Schema API - Core API server for schema registry with gRPC support
Installation
npm install -g @llm-dev-ops/llm-schema-apiUsage
# Start the API server
llm-schema-api
# Start with custom configuration
llm-schema-api --config /path/to/config.yaml
# View help
llm-schema-api --helpConfiguration
The API server can be configured using environment variables or a configuration file:
# Server configuration
server:
grpc_port: 50051
host: "0.0.0.0"
# Database
database:
url: "postgresql://user:password@localhost/schema_registry"
max_connections: 20
# Storage backend
storage:
type: "postgres" # postgres, s3, or hybrid
# Cache settings
cache:
enabled: true
redis_url: "redis://localhost:6379"
ttl_seconds: 300Features
- High-performance gRPC API
- Protocol Buffer definitions for schemas
- PostgreSQL storage with S3 backup
- Redis caching for fast lookups
- Streaming support for large schemas
- Schema versioning and compatibility checking
- Authentication and authorization
- Metrics and observability
gRPC Services
The API provides the following gRPC services:
SchemaRegistry Service
RegisterSchema- Register a new schema versionGetSchema- Retrieve a schema by namespace, name, and versionListSchemas- List schemas in a namespaceDeleteSchema- Delete a schema versionValidateData- Validate data against a schemaCheckCompatibility- Check compatibility between schema versions
Admin Service
GetMetrics- Retrieve server metricsHealthCheck- Check server healthGetConfig- Get server configuration
Documentation
For more information, visit: https://github.com/globalbusinessadvisors/llm-schema-registry
License
Apache-2.0
