skip to main content
Atharv Kulkarni

Origa Labs · 01AI developer platform

Skyeline

Skyeline gives a team one place to version and approve the instructions their AI features use, send those requests to different AI providers, and see what each request cost.

A platform for versioning prompts, routing LLM requests across providers, and observing the latency and token usage of agent and RAG applications.

Next.jsNestJSPostgreSQLDrizzle ORMStytch B2BOpenAPITypeScriptGoogle Cloud Run
current statusverified
Prototype, runtime paused. The landing page and docs at skyeline.dev are live and the dashboard loads, but the hosted runtime is currently paused. It has no users or sales.
intended user
Engineering teams that need a controlled way to develop prompts and operate LLM-backed applications across environments.

where to look

provider adapters behind one gateway
4
public SDK surface is opt-in
Allowlist
database migrations run before deploy
Separate job

02

How it works

People govern prompts in the dashboard; applications call the same API through the SDK. Every model call crosses the gateway and leaves a trace.

One control plane, one gatewayPeople govern prompts in the dashboard; applications call the same API through the SDK. Every model call crosses the gateway and leaves a trace.workspace tenancyinterfaceDashboardNext.jsinterfaceYour apptyped SDKcontrolAPI boundaryauth, tenancyservicePrompt controlplaneversions, approvalsserviceLLM gatewaynormalise, routeserviceProvider adaptersone per providerexternalModel providersOpenAI, Anthropic,Google, GroqserviceObservabilitylatency, tokens, outcomedataPostgreSQLworkspace-scopedsessionAPI keymanage, approveexecute, streamprovider calltraceversionsrecords
One control plane, one gatewayPeople govern prompts in the dashboard; applications call the same API through the SDK. Every model call crosses the gateway and leaves a trace.workspace tenancyinterfaceDashboardNext.jsinterfaceYour apptyped SDKcontrolAPI boundaryauth, tenancyservicePrompt controlplaneversions,approvalsserviceLLM gatewaynormalise, routeserviceProvideradaptersone per providerexternalModelprovidersOpenAI,Anthropic, Googl…serviceObservabilitylatency, tokens,outcomedataPostgreSQLworkspace-scopedsessionAPI keymanage, approveexecute, streamnormalised requestprovider calltraceversionsrecords

Components:

  • Dashboard (interface): Next.js
  • Your app (interface): typed SDK
  • API boundary (control): auth, tenancy
  • Prompt control plane (service): versions, approvals
  • LLM gateway (service): normalise, route
  • Provider adapters (service): one per provider
  • Model providers (external): OpenAI, Anthropic, Google, Groq
  • Observability (service): latency, tokens, outcome
  • PostgreSQL (data): workspace-scoped

Connections:

  • Dashboard to API boundary (human): session
  • Your app to API boundary: API key
  • API boundary to Prompt control plane (control): manage, approve
  • API boundary to LLM gateway: execute, stream
  • LLM gateway to Provider adapters: normalised request
  • Provider adapters to Model providers: provider call
  • LLM gateway to Observability (return): trace
  • Prompt control plane to PostgreSQL: versions
  • Observability to PostgreSQL: records

Boundaries:

  • workspace tenancy: API boundary, Prompt control plane, LLM gateway, Provider adapters, Observability, PostgreSQL

steps

03

Harness anatomy

The code around the model: what keeps calling it, what it may run, what reaches it, and what bounds it.

01 · loop
Skyeline does not run an agent loop itself. It serves the loops inside other applications: a governed prompt lifecycle with approvals, and one request gateway every model call passes through.
02 · tools
Provider adapters for OpenAI, Anthropic, Google and Groq behind one gateway, and a typed TypeScript SDK generated from an allowlisted OpenAPI contract.
03 · context
Workspaces and applications scope every prompt, key and record. Versioned prompts decide what reaches the model; request traces record latency, tokens and outcome.
04 · controls
Provider keys encrypted per workspace, approval chains before a prompt version goes active, API-key authentication for SDK callers, and contract tests on the public surface.
agentsAgent and RAG apps (served)Claude Code (build)Codex (build)

04Architecture

The component inventory behind the diagram: system boundaries and the paths between them.
Two entry paths share one controlled backend: people manage prompts through the dashboard, while applications call an allowlisted API through the generated SDK. Provider access and persistence remain behind the service boundary.
  1. interface

    Next.js dashboard

    Human interface for prompt lifecycle, approvals, playground runs, and trace inspection.

  2. interface

    SDK consumer

    An application-scoped TypeScript client using bearer authentication.

  3. control

    NestJS API boundary

    Fastify HTTP layer with validation, authentication, workspace context, and authorization guards.

  4. service

    Prompt control plane

    Versioning, lifecycle transitions, diffs, rollbacks, and approval workflows.

  5. service

    LLM gateway

    Provider registry, request normalization, streaming, and trace capture.

  6. service

    Provider adapters

    A common boundary for supported model providers and provider-specific translation.

  7. data

    PostgreSQL

    Workspace-scoped prompts, credentials, approvals, and observability records behind repositories.

  8. output

    External model providers

    Third-party inference endpoints reached only through the gateway adapters.

  • Next.js dashboard → NestJS API boundary · session-authenticated HTTP
  • SDK consumer → NestJS API boundary · allowlisted API + API key
  • NestJS API boundary → Prompt control plane · manage and approve
  • NestJS API boundary → LLM gateway · execute and stream
  • Prompt control plane → PostgreSQL · versioned state
  • LLM gateway → PostgreSQL · credentials and traces
  • LLM gateway → Provider adapters · normalized request
  • Provider adapters → External model providers · provider-specific call

05Evidence boundary

What this case study establishes, and what it deliberately does not claim.

verified

  • Prompt lifecycle

    The repository implements versioned prompts, diffs, rollbacks, tags, template variables, lifecycle states, and approval workflows.

    basis · Private repository structure, service modules, and tests reviewed for this case study.

  • Multi-provider runtime

    A provider registry and adapters normalize requests, support streaming, and persist latency and token metadata for inspection.

    basis · Gateway architecture, adapter modules, and observability test inventory.

  • Tenant and credential controls

    Workspaces and applications form the tenancy boundary, with role checks and per-workspace encryption for provider credentials.

    basis · Authentication, authorization, workspace, application, and crypto modules.

  • Contract-driven SDK

    The public TypeScript SDK is generated from an explicit OpenAPI operation allowlist, then wrapped with application scoping, typed errors, retry behavior, templates, streaming, and webhook verification utilities.

    basis · OpenAPI generation pipeline, SDK package, and SDK test suites.

  • Cloud deployment design

    The deployment workflow builds a container, runs database migrations as a separate Cloud Run job, and deploys the API service with managed secrets.

    basis · Repository deployment workflow and architecture documentation.

not claimed

  • Current service state

    The landing page and docs are live and the dashboard loads, but the hosted runtime is currently paused, so the end-to-end flow cannot be tried today.

  • Outcome boundary

    This case study reports implemented engineering surfaces only. It makes no claims about adoption, traffic, commercial outcomes, or current uptime.

  • Private implementation

    The source repository and service configuration remain private. This module contains no copied source, private endpoints, identifiers, credentials, or operational data.

  • Verification boundary

    The repository contains broad automated test coverage, but this portfolio content does not claim that every suite or hosted workflow is currently passing.

06

Engineering decisions

The design choices, reasoning, and tradeoffs that shaped the system.

  1. Make the public API opt-in

    Generate the SDK from an allowlist of public OpenAPI operation identifiers.

    rationaleInternal endpoints stay private unless they are deliberately reviewed and added to the contract.

    tradeoffEvery intended public operation requires an explicit contract update and regeneration step.

  2. Keep provider logic behind adapters

    Route model requests through a registry of provider adapters and expose a normalized gateway surface.

    rationaleApplication code can use one execution path while provider-specific translation remains isolated.

    tradeoffA normalized interface cannot erase every provider difference, so unsupported capabilities still need clear runtime errors.

  3. Treat prompts as governed artifacts

    Model prompt changes as immutable versions with draft, active, and archived states plus approval workflows.

    rationaleA prompt change becomes reviewable and reversible instead of silently replacing the current behavior.

    tradeoffThe lifecycle adds workflow overhead for simple experiments, which the playground must keep lightweight.

  4. Separate schema changes from startup

    Run database migrations as a dedicated deployment job before updating the application service.

    rationaleStartup remains deterministic and failed migrations stop deployment before new application code receives traffic.

    tradeoffThe deployment pipeline must coordinate two artifacts and surface migration failures clearly.

  5. Scope credentials to the tenant boundary

    Encrypt provider credentials with AES-256-GCM using keys derived per workspace through HKDF, and decrypt them only for execution.

    rationaleA stored credential is not plaintext, and derived keys reduce cross-workspace blast radius.

    tradeoffMaster-key protection and rotation remain operational responsibilities beyond application-layer encryption.

07Reliability & safety

Controls that make failures visible, bounded, and recoverable.
  • Testing

    Unit boundaries

    Focused suites cover authorization guards, crypto helpers, provider adapters, prompt behavior, gateway orchestration, error mapping, and SDK utilities.

  • Testing

    Database-backed integration

    Integration and end-to-end suites exercise service boundaries with isolated PostgreSQL infrastructure through Testcontainers.

  • Safety boundary

    Public-surface contract checks

    Contract tests compare the generated SDK surface with the allowlisted public OpenAPI document to catch accidental exposure or drift.

  • Failure handling

    Transport failure handling

    The SDK has dedicated resilience tests for retry classification, backoff, retry guidance, streaming, and typed error behavior.

  • Observability

    Structured diagnostics

    Backend flows use structured logging with stable context, duration fields, sensitive-header redaction, and explicit outcome logging.

  • Testing

    Deployment gates

    Repository workflows define lint, type-check, unit, integration, end-to-end, build, contract, and packaging checks before deployment or release steps.

08

Synthetic evaluation

A six-row, public-safe fixture demonstrates how the case study can explain trace aggregation without presenting synthetic values as product performance.

Synthetic observability fixturesynthetic · not production or customer data

Synthetic traces
6
Fixture row count, not traffic.
Synthetic success rate
83.3%
5 success rows and 1 error row in the fixture.
Synthetic median latency
895 ms
Median of the six invented latency values.
Synthetic token volume
2,640
Sum of invented input and output token values.

set · 6 synthetic traces

method · Define six fictional traces across three of the supported provider adapters with explicit latency, token, and outcome fields. Compute counts, success rate, median latency, and total tokens in this module from those exported fixture rows. Use the output only to demonstrate the observability model and the UI's aggregation concepts.

limits · The fixture is not a benchmark, load test, production sample, or customer dataset. Provider, network, model, prompt, and cache behavior are intentionally uncontrolled, so the values cannot support performance comparisons. A credible future evaluation would define a repeatable workload, pin models and regions, record warm and cold runs separately, and report distributions rather than a single aggregate.

09State, material, next

Where the project stands, what can be shown publicly, and what comes next.

current state

  • skyeline.dev serves the public landing page and documentation.
  • The dashboard at app.skyeline.dev loads, but the hosted runtime is currently paused, so sign-in and requests do not complete.
  • There are currently no users, sales, or adoption metrics, so this is presented as an independent prototype.
  • The repository remains private while architecture and public-safe product material can be shared.

demo & public material

  • Architecture and case studyavailable

    Public-safe system flow, engineering decisions, security boundaries, and limitations.

  • Synthetic trace fixtureavailable

    Six fictional rows plus exported aggregation logic for reproducible display metrics.

  • Recorded walkthroughplanned

    Publish only after the hosted flow is re-verified and demo data is reviewed for disclosure safety.

  • Source repositorynot public

    Implementation remains private. No repository link or copied source is included.

next steps

  1. 01Bring the hosted runtime back and verify the full flow end to end before linking the dashboard as live.
  2. 02Run design-partner sessions to validate the prompt approval and observability workflows.
  3. 03Add usage-based feedback loops before treating the current feature set as a stable product surface.