@jeffusion/bungee-types
TypeScript type definitions for Bungee - a high-performance reverse proxy server.
Installation
npm install @jeffusion/bungee-types
# or
bun add @jeffusion/bungee-types
Usage
import type { AppConfig, RouteConfig } from '@jeffusion/bungee-types';
const config: AppConfig = {
routes: [
{
path: '/api',
endpoints: [
{ target: 'http://localhost:3000' }
]
}
]
};
Available Types
Core Configuration Types
AppConfig- Main application configurationRouteConfig- Route configuration with upstreams and pluginsEndpoint- Upstream target, weight, conditions and directional rules
Modification and Plugin Types
ModificationRules- Request/response modification rulesPluginConfig- Plugin configurationLoggingConfig- Logging configuration
Type Exports
Root Entry
import type { AppConfig } from '@jeffusion/bungee-types';
Type-Only Export
import type { RouteConfig } from '@jeffusion/bungee-types/types';
Documentation
For storage aggregates and runtime validation, see configuration reference. Management identity and proxy Keys are plugin capabilities; an exported TypeScript shape does not bypass configuration validation.
Plugin runtime interfaces use @jeffusion/bungee-core/plugin, not this package.
License
MIT