Replies: 1 comment 2 replies
-
Look at this: https://github.com/yusukebe/my-first-workers-ai |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use Hono on Workers, to interface with a Nextjs frontend. However, I just noticed that Hono is a framework on Cloudflare Pages. I'm wondering then if it's possible to just create a simple frontend website with Hono on Cloudflare pages which will show a user a form (or forms) to fill out. I was looking at the html helper in Hono, but I'm not clear how to use that to set up the form.
BTW, the use case for this, is that I'm creating an AI application and for nearly all basic apps, all you need is a form prompt, which is then sent to Cloudflare Workers AI. To set up an entire Nextjs website to just have a basic form input is obviously overkill. If we can just use Hono (which we use already) to generate the frontend form also, then we can have a full AI application running on hono on cloudflare pages quite easily. I'm guessing someone has done this already? If so, is there any sample code?
Thanks very much.
Beta Was this translation helpful? Give feedback.
All reactions