JSPM

@fabrk/config

0.3.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9
  • Score
    100M100P100Q42576F
  • License MIT

Type-safe configuration builder for FABRK framework

Package Exports

  • @fabrk/config

Readme

@fabrk/config

Type-safe configuration builder for FABRK framework.

Installation

npm install @fabrk/config

Usage

import { defineConfig } from '@fabrk/config'

export default defineConfig({
  theme: {
    defaultColorTheme: 'green'
  },
  ai: {
    provider: 'openai',
    costTracking: true,
    dailyBudget: 50
  }
})

Features

  • Type-safe - Full TypeScript IntelliSense
  • Validation - Zod-powered schema validation
  • Defaults - Sensible default values
  • Environment - Auto-loads from .env files

Configuration Options

{
  theme?: {
    defaultColorTheme?: string
    storageKeyPrefix?: string
  }
  ai?: {
    provider?: 'openai' | 'anthropic' | 'google' | 'ollama'
    costTracking?: boolean
    dailyBudget?: number
    monthlyBudget?: number
  }
}

Documentation

View full documentation

License

MIT