Add Hono.js example
Hono.js is a web framework for the Edge environment. Works with Cloudflare Workers, Deno, Bun, Fastly, Vercel, Netlify, Lagon, AWS, Node.js.
Now that the Vercel AI SDK runs in Hono.js and the OpenAI package runs in Edge, you can build the backend of your AI application in a few dozen lines of code.
https://twitter.com/ogtimothymiller/status/1694208003346407722
https://hono.dev/
A PR with docs and/or an example would be accepted if you'd like to submit one
Node http server example: https://github.com/vercel/ai/tree/main/examples/node-http-server
Hono also runs in Node.js, but the core is web-standard and optimized for the Edge environment.
Recently, Hono maintainers created an Example:
https://github.com/yusukebe/hono-with-vercel-ai
@yutakobayashidev sadly their example is outdated. I'll send a PR to update it to AI SDK 3.1 when I find the time
@yutakobayashidev sadly their example is outdated. I'll send a PR to update it to AI SDK 3.1 when I find the time
would appreciate this so much!
If you're trying this out on bun it's currently not supported. https://github.com/oven-sh/bun/issues/5648
Did you update it? @lgrammel
Submitted a PR to update Hono's example to AI SDK Core: https://github.com/yusukebe/hono-with-vercel-ai/pull/1
https://sdk.vercel.ai/examples/api-servers/hono