Skip to main content

JavaScript / TypeScript SDK

npm install @qefro-ai/backend
export QEFRO_SIGNING_SECRET="your-signing-secret"
import { Qefro } from '@qefro-ai/backend';

const app = new Qefro({ signingSecret: process.env.QEFRO_SIGNING_SECRET! });

app.tool(
{
name: 'order_status_check',
description: 'Look up order by ID',
auth: 'none',
input_schema: {
type: 'object',
properties: { order_id: { type: 'string' } },
required: ['order_id'],
},
},
async (ctx) => {
return { found: true, status: 'shipped', order_id: ctx.parameters.order_id };
},
);

await app.listen({ port: 8088, path: '/qefro' });

Learn more