Examples
Backend examples:
- TypeScript —
@qefro-ai/backend: qefro-js-backend-sdk/examples - Rust —
qefro-backend-sdk: qefro-rust-backend-sdk/examples
# TypeScript
git clone https://github.com/qefro-ai/qefro-js-backend-sdk.git
cd qefro-js-backend-sdk/examples/<example>
cp .env.example .env && npm install && npm start
# Rust
cargo add qefro-backend-sdk
# or clone https://github.com/qefro-ai/qefro-rust-backend-sdk and run:
# cargo run --example basic
All example backends expose POST /qefro and include:
- customer lookup + authorization split
- authenticated tools with argument validation
- deterministic, structured response envelopes
Every example also ships with scripts/smoke.sh to run signed protocol checks (ping, tools.list, tool.invoke) against localhost.
Included examples
basic-sdk: minimal framework usage with profile/context toolsorder-status: public order lookup + authenticated my-orders listrest-api: REST-shaped order tools (orders_list,orders_get)ecommerce: order tracking, return creation, invoice link generationcrm: lead listing, note writeback, escalation ticket openingerp: inventory balance, purchase order draft, sales-order ETAhelpdesk: ticket intake and knowledge-base searchbanking: account balance checks and beneficiary validationhealthcare: appointment slot listing and booking confirmationeducation: catalog lookup and enrollment request flowmultilingual: locale detection plus response localizationwhatsapp: template preview and outbound send simulationinternal-portal: KPI snapshots and approval workflows
Each includes:
- README
- env template
- run instructions
- production-safe validation patterns