@owlmeans/client-config
v0.1.11
Published
Client-side configuration helper for registering web service endpoints.
Readme
@owlmeans/client-config
Client-side configuration helper for registering web service endpoints.
Overview
addWebService(cfg, alias, url)— add a named web service URL to a client config- Used when configuring which URLs the client uses to reach backend services
- Re-exported from
@owlmeans/server-appfor convenience in full-stack config setup
Installation
bun add @owlmeans/client-configUsage
import { addWebService } from '@owlmeans/client-config'
// or via server-app:
import { addWebService } from '@owlmeans/server-app'
const appConfig = config(AppType.Frontend, 'manager-web')
addWebService(appConfig, 'api', 'https://api.example.com')API
addWebService(cfg, alias, url): void
Registers a web service under alias in the config. The client resolves alias to url when making API calls.
ClientConfig
Extends BasicConfig with web?: Record<string, string> (service alias → URL map).
Related Packages
@owlmeans/config— base config utilities@owlmeans/client-context— context that uses the web service config
Agent guidance
This package ships embedded Claude Code skills and GitHub Copilot instructions under
agent-meta/. After installing your @owlmeans/* packages, run the OwlMeans
agent-skills installer to place them into your project's native locations
(.claude/skills/ and .github/instructions/):
npx @owlmeans/agent-skillsThe embedded files are version-matched to this package release. Do not edit them directly — they are regenerated on each publish. To contribute guidance edits, open a PR against the source monorepo.
