Shared foundation for Marketing-OS OSS toolkits.
- AI abstraction —
createProvider(model, apiKey)for Gemini, OpenAI, and Anthropic - Errors —
CliError,FetchError,AIError - HTTP —
fetchPagewith cheerio parsing and a 15s timeout - Output —
render(result, format)for json/table/markdown strings - Read-only platform base —
ReadOnlyPlatformwithout write methods - Commercial hint —
COMMERCIAL_HINTfor optional OSS → commercial links
This package intentionally does not expose create/update/post/publish APIs.
Ads and Social toolkits inherit ReadOnlyPlatform to keep automated submission
and posting structurally out of scope.
npm install @start-x-work/mos-kitApache-2.0