Nexus
1.x
Docs/Nexus/Go Packages
Open

Reading1 min
Updated31 Jul 2026
Sourcev1/api-reference/go-packages.mdx

Core01

PackageImportDescription
nexusgithub.com/xraph/nexusGateway, Engine, Config, Options
idgithub.com/xraph/nexus/idTypeID prefixes and constructors
plugingithub.com/xraph/nexus/pluginExtension interfaces and Registry

Providers02

PackageImportDescription
providergithub.com/xraph/nexus/providerProvider interface, Request/Response
openaigithub.com/xraph/nexus/providers/openaiOpenAI provider
anthropicgithub.com/xraph/nexus/providers/anthropicAnthropic provider
opencompatgithub.com/xraph/nexus/providers/opencompatOpenAI-compatible provider

Pipeline03

PackageImportDescription
pipelinegithub.com/xraph/nexus/pipelineMiddleware chain builder
middlewaresgithub.com/xraph/nexus/pipeline/middlewaresBuilt-in middleware
routergithub.com/xraph/nexus/routerRouting service
strategiesgithub.com/xraph/nexus/router/strategiesRouting strategies

Features04

PackageImportDescription
guardgithub.com/xraph/nexus/guardGuardrail interface and service
guardsgithub.com/xraph/nexus/guard/guardsBuilt-in guards
cachegithub.com/xraph/nexus/cacheCache interface and service
storesgithub.com/xraph/nexus/cache/storesCache backends
transformgithub.com/xraph/nexus/transformInput/output transforms
modelgithub.com/xraph/nexus/modelAlias registry and token counting

Infrastructure05

PackageImportDescription
storegithub.com/xraph/nexus/storePersistence interface
memorygithub.com/xraph/nexus/store/memoryIn-memory store
sqlitegithub.com/xraph/nexus/store/sqliteSQLite store
postgresgithub.com/xraph/nexus/store/postgresPostgreSQL store
tenantgithub.com/xraph/nexus/tenantTenant entity and service
keygithub.com/xraph/nexus/keyAPI key management
usagegithub.com/xraph/nexus/usageUsage tracking
authgithub.com/xraph/nexus/authAuth provider interface

Extensions06

PackageImportDescription
audit_hookgithub.com/xraph/nexus/audit_hookAudit event recording
observabilitygithub.com/xraph/nexus/observabilityMetrics and tracing
relay_hookgithub.com/xraph/nexus/relay_hookWebhook relay
extensiongithub.com/xraph/nexus/extensionForge extension adapter

Utilities07

PackageImportDescription
proxygithub.com/xraph/nexus/proxyOpenAI-compatible HTTP proxy
apigithub.com/xraph/nexus/apiForge HTTP handlers
fallbackgithub.com/xraph/nexus/fallbackCircuit breaking and retry
batchgithub.com/xraph/nexus/batchBatch processing
mcpgithub.com/xraph/nexus/mcpModel Context Protocol