Hono Cf Access

B 82 completed
Library
unknown / json · tiny
27
Files
5,162
LOC
2
Frameworks
4
Languages

Pipeline State

completed
Run ID
#369264
Phase
done
Progress
1%
Started
Finished
2026-04-13 01:31:02
LLM tokens
0

Pipeline Metadata

Stage
Cataloged
Decision
proceed
Novelty
62.93
Framework unique
Isolation
Last stage change
2026-05-10 03:34:51
Deduplication group #57236
Member of a group with 1 similar repo(s) — this repo is canonical view group →
Top concepts (2)
Project DescriptionWeb Backend
Methodology: Repobility · https://repobility.com/research/state-of-ai-code-2026/

AI Prompt

Create a Cloudflare Workers-based access control middleware for Hono applications. I need to implement features like country blocking and ASN blocking using a declarative API, so I don't have to write manual conditionals. Please include middlewares for country blocking, ASN blocking, and maintenance mode. The system should leverage `request.cf` for geo data and support custom responses via `onDenied` and `onMaintenance` escape hatches. Also, ensure that the `cfInfo` context variable is populated with normalized geo data like country, ASN, and city for use in handlers.
cloudflare hono middleware access-control workers typescript json security
Generated by gemma4:latest

Catalog Information

Provides Cloudflare Workers‑based access control middleware for Hono applications.

Description

This library supplies a middleware component for the Hono web framework that leverages Cloudflare Workers’ request.cf properties to enforce access control. It allows developers to define rules based on IP address, country, or other request metadata and automatically permits or blocks traffic. The middleware is written in TypeScript, integrates seamlessly with Hono’s routing system, and is fully testable using Vitest. It targets developers building serverless applications on Cloudflare Workers who need a lightweight, declarative way to secure routes. By using Cloudflare’s built‑in data, it reduces the need for external services and simplifies deployment.

الوصف

يُقدِّم هذا المكوّن وسيلة تحكم بالوصول مدمجة في إطار عمل Hono، مستفيداً من خصائص request.cf في Cloudflare Workers. يتيح للمطورين تحديد قواعد اعتماداً على عنوان IP، أو بلد الزائر، أو بيانات الطلب الأخرى، ثم يقرر السماح أو حظر المرور تلقائياً. يعمل المكوّن بلغة TypeScript ويتكامل بسلاسة مع نظام مسارات Hono، مع إمكانية اختبار شامل عبر Vitest. يستهدف المطورين الذين يبنون تطبيقات خالية من الخوادم على Cloudflare Workers ويبحثون عن طريقة مبسطة وموثوقة لتأمين المسارات. بفضل الاعتماد على البيانات المدمجة في Cloudflare، يقلل الحاجة إلى خدمات خارجية ويُسهل عملية النشر.

Novelty

6/10

Tags

access-control middleware cloudflare-workers request-filtering security ip-restriction geolocation authentication

Technologies

hono vitest

Claude Models

claude-opus-4.6

Quality Score

B
81.5/100
Structure
82
Code Quality
100
Documentation
36
Testing
85
Practices
80
Security
100
Dependencies
60

Strengths

  • CI/CD pipeline configured (github_actions)
  • Good test coverage (64% test-to-source ratio)
  • Code linting configured (biome)
  • Low average code complexity \u2014 well-structured code
  • Good security practices \u2014 no major issues detected
  • Properly licensed project

Security & Health

4.1h
Tech Debt (B)
A
OWASP (100%)
PASS
Quality Gate
A
Risk (2)
Repobility · MCP-ready · https://repobility.com
MIT
License
0.0%
Duplication
Full Security Report AI Fix Prompts SARIF SBOM

Languages

json
77.4%
typescript
19.4%
markdown
2.5%
yaml
0.7%

Frameworks

Hono Vitest

Concepts (2)

Data scored by Repobility · https://repobility.com
CategoryNameDescriptionConfidence
Citation: Repobility (2026). State of AI-Generated Code. https://repobility.com/research/
auto_descriptionProject Description![CI](https://github.com/paveg/hono-cf-access/actions/workflows/ci.yml) ![License: MIT](https://opensource.org/licenses/MIT)80%
auto_categoryWeb Backendweb-backend70%

Quality Timeline

1 quality score recorded.

View File Metrics

Embed Badge

Add to your README:

![Quality](https://repos.aljefra.com/badge/93467.svg)
Quality BadgeSecurity Badge
Export Quality CSVDownload SBOMExport Findings CSV