#108108th of 110 in Backend and cloud templates

genai-api

Hono API on Cloudflare Workers proxying Gemini with bearer auth

Releases and problems feed (RSS)

Stars
113
License
Apache-2.0
Last commit
Apr 2026
Language
TypeScript
Stars, last 34 weeks+7
28 Mar 2026: 106 stars4 Apr 2026: 106 stars11 Apr 2026: 106 stars18 Apr 2026: 106 stars25 Apr 2026: 106 stars2 May 2026: 106 stars9 May 2026: 106 stars16 May 2026: 106 stars23 May 2026: 106 stars30 May 2026: 107 stars6 Jun 2026: 107 stars13 Jun 2026: 108 stars20 Jun 2026: 108 stars27 Jun 2026: 108 stars4 Jul 2026: 108 stars11 Jul 2026: 109 stars18 Jul 2026: 109 stars25 Jul 2026: 109 stars1 Aug 2026: 109 stars8 Aug 2026: 109 stars15 Aug 2026: 109 stars22 Aug 2026: 110 stars29 Aug 2026: 110 stars5 Sept 2026: 110 stars12 Sept 2026: 111 stars19 Sept 2026: 111 stars26 Sept 2026: 111 stars3 Oct 2026: 111 stars10 Oct 2026: 111 stars17 Oct 2026: 111 stars24 Oct 2026: 111 stars31 Oct 2026: 111 stars7 Nov 2026: 112 stars14 Nov 2026: 113 stars21 Nov 2026: 113 stars

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
Also in Backend and cloud templates
RankProjectScore
#105symfony-7-es-cqrs-boilerplateSymfony 7 reference app for DDD, CQRS and event sourcing1.1k starsMIT34 out of 100
#106go-gin-exampleGo and Gin blog REST API example with JWT, MySQL, Redis and Swagger7.2k starsMIT32 out of 100
#107edwinhern/express-typescriptExpress and TypeScript backend starter with Zod validation and Swagger docs1.2k starsMIT19 out of 100
#109geekyants/express-typescriptExpress and TypeScript API boilerplate with MongoDB, Passport and JWT1.3k starsMIT14 out of 100
#110cookiecutter-django-restCookiecutter template for Django REST Framework APIs with auth and tests1.6k starsMIT10 out of 100