@knowledgefutures/sdk
v0.1.0
Published
Zero-config clients for Knowledge Futures platform services, configured by the console.
Readme
@knowledgefutures/sdk
Clients for the services a Knowledge Futures Console
project declares, with nothing to configure: the console writes each service's
binding into every environment that declares it, and kf dev writes the same
variables pointing at local stand-ins.
npm i @knowledgefutures/sdkimport { storage } from '@knowledgefutures/sdk/storage' // kf/storage@1
await storage.put('covers/1.jpg', bytes, { contentType: 'image/jpeg' })
// In tests, an in-memory store with the same interface:
import { memoryStorage } from '@knowledgefutures/sdk/storage/testing'createStorage(env) builds a client from an explicit environment, such as a
Worker's env when nodejs_compat is off.
What a project declares and what the services give it:
console.knowledgefutures.org/llms.txt.
Source: packages/sdk/ in knowledgefutures/kf-console.
