#108108th of 110 in Backend and cloud templates
genai-api
Hono API on Cloudflare Workers proxying Gemini with bearer auth
- Stars
- 113
- License
- Apache-2.0
- Last commit
- Apr 2026
- Language
- TypeScript
106 on 28 Mar 2026113 on 21 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
Hono TypeScript worker exposing POST /completion that forwards OpenAI-style messages (text and data-URL images) to Gemini 2.0 and 2.5 Flash models through Cloudflare AI Gateway, validated with Zod and returned as plain text. Secured by a BEARER_TOKEN secret, with an optional X-API-Key header to pass a provider key per request; deployed with make deploy. Built for Apple Shortcuts; local dev on port 8788.
Who it is for: Developers wanting a small authenticated LLM proxy on Workers
Strengths
- Bearer-token auth and Zod validation on the single endpoint
- Requests route through Cloudflare AI Gateway for caching and logs
- Multimodal input via data-URL images
- Biome lint and Snyk badge
Weaknesses
- Google AI Studio provider only; four Gemini Flash models
- Plain-text responses, no streaming
- No tests mentioned; last commit 2026-04
- Needs a Cloudflare account and AI Gateway id
What it needs
- TypeScript, Gemini 2.5 Flash, 2.5 Flash Lite, 2.0 Flash, 2.0 Flash Lite via Cloudflare AI Gateway, OpenAI SDK client
- Needs Cloudflare account with AI Gateway, Google AI Studio API key
- GitHub template
Also in Backend and cloud templates
See all 110| Rank | Project | Score |
|---|---|---|
| #105 | symfony-7-es-cqrs-boilerplateSymfony 7 reference app for DDD, CQRS and event sourcing | 34 out of 100 |
| #106 | go-gin-exampleGo and Gin blog REST API example with JWT, MySQL, Redis and Swagger | 32 out of 100 |
| #107 | edwinhern/express-typescriptExpress and TypeScript backend starter with Zod validation and Swagger docs | 19 out of 100 |
| #109 | geekyants/express-typescriptExpress and TypeScript API boilerplate with MongoDB, Passport and JWT | 14 out of 100 |
| #110 | cookiecutter-django-restCookiecutter template for Django REST Framework APIs with auth and tests | 10 out of 100 |