@cascaide-ts/server-next
v0.5.1
Published
Cascaide is a fullstack agent runtime and AI orchestration framework in typescript.
Downloads
44
Readme
@cascaide-ts/server-next
Cascaide is a fullstack agent runtime and AI orchestration framework in typescript.
cascaide-ts/server-next provides the NextJS backend adapter for cascade executions. Used to create the action and persistence api routes.
Installation
npm i @cascaide-ts/server-nextExample Use
import { serverWorkflowConfig } from '@/graphs/server/config';
import { createWorkflowHandler} from '@cascaide-ts/server-next';
export const POST = createWorkflowHandler(serverWorkflowConfig);import { createPersistenceHandler } from '@cascaide-ts/server-next';
import { PostgresPersistor } from '@cascaide-ts/postgres-js';
import { sql } from '@/lib/pglite';
const persistor = new PostgresPersistor(sql);
export const POST =createPersistenceHandler(persistor);
