@melandlabs/api
v0.3.0
Published
OpenContext · api module
Readme
api (workspace)
Workspace package. Internal monorepo build artifact; not published to npm. End users install
@melandlabs/opencontext(the facade) instead. Monorepo contributors depend on this package via the workspace protocol.
Lightweight HTTP client helpers used by the OpenContext web app and other
packages. Wraps fetch with unified error handling and exposes a typed
ApiError for status / payload propagation.
Installation
pnpm add @melandlabs/opencontextExports
ApiError— Error class carryingmessage,status, anddetailsfetchApi<T>()— Promise-returningfetchwrapper that parses JSON and raisesApiErroron non-2xx responses
