Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
Instruction file imported from Christianmsousa/casamento (.cursor/rules/general-best-practices.mdc). Copyright stays with the author.
Dicas Gerais
✅ Sempre use TypeScript - Type safety é essencial
✅ Prefira Server Components - Use Client Components ('use client') apenas quando necessário
✅ Use Tailwind primeiro - Só use CSS custom quando Tailwind não for suficiente
✅ Use Tailwind Variants (cva) para componentes com variantes - Type-safe e composável
✅ Sempre use cn() helper - Para combinar classes com variants (evita conflitos)
✅ Mantenha componentes pequenos - Um componente = uma responsabilidade
✅ Documente funções complexas - JSDoc para funções utilitárias
✅ Siga a estrutura - Consulte project_structure.md sempre
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slot
curl -s -X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.