Business Tools Examples
Runnable examples live in qefro-js-backend-sdk/examples and qefro-rust-backend-sdk/examples.
SDK examples
| Example | Demonstrates |
|---|---|
| order-status | Public order lookup + OTP my_orders_list + lookup.required |
| rest-order-api | Plain REST mock + identity forwarding demo page |
| banking | Account balance with auth |
| healthcare | Appointments |
| ecommerce | Order track |
| crm | Leads list |
| erp | Inventory |
| internal-portal | Employee KPI snapshot |
| helpdesk | KB search handler |
| Template preview |
REST patterns (from examples)
| Pattern | Example endpoint | Auth |
|---|---|---|
| Order by ID | GET /rest/orders/{orderId} | API_KEY |
| Service account list | GET /rest/my-orders?customer_id= | BEARER_TOKEN |
| Identity whoami | GET /rest/identity/me | END_USER_IDENTITY |
| Identity orders | GET /rest/identity/my-orders | END_USER_IDENTITY |
Hosted demo (deploy your own): widget-identity-demo.html in rest-order-api example.
Mixed workflow example
E-commerce support workspace:
order_status_check(SDK, public) — ORD-1001 by IDmy_orders_list(SDK, OTP) — authenticated listshipping_track(REST, API key) — carrier APIidentity_my_orders(REST forward) — widget logged-in users
See Mixed integrations.
Quick start commands
git clone https://github.com/qefro-ai/qefro-js-backend-sdk.git
cd qefro-js-backend-sdk/examples/order-status
cp .env.example .env && npm install && npm start
# Webhook: http://localhost:8090/qefro
./scripts/smoke.sh
cd examples/rest-order-api && npm install && npm start
# REST: http://localhost:8091/rest/identity/me