Skip to content

Graphorin API reference v0.13.8


Graphorin API reference / @graphorin/server / / GraphorinAppFactory

Type Alias: GraphorinAppFactory

ts
type GraphorinAppFactory = (ctx) => 
  | GraphorinAppBag
| Promise<GraphorinAppBag>;

Defined in: packages/server/src/app.ts:258

Stable

Factory signature of an app-compose module (graphorin.config's app field). The module default-exports it (or exports it as createApp); the launcher imports the module, calls the factory with a GraphorinAppContext, and spreads the returned GraphorinAppBag into createServer(...), mounting the sessions / memory / agents / workflows surface that a bare graphorin start leaves 404.

Parameters

ParameterType
ctxGraphorinAppContext

Returns

| GraphorinAppBag | Promise&lt;GraphorinAppBag&gt;