Skip to content

馃殌 Template proposal: type-safe Hono API with InferDI, D1, and Queues聽#1143

Description

@maxrendel

Describe the stack

Proposal

I would like to propose a Cloudflare Workers template demonstrating a type-safe service-layer architecture with Hono and InferDI.

The template would include:

  • Hono for routing and API endpoints.
  • InferDI for type-safe dependency injection and per-request scopes.
  • D1 for persistent application data.
  • Queues for asynchronous audit events.
  • A small web interface demonstrating the complete request flow.

Why it would be useful

The template would show how to structure a non-trivial Worker application with clearly separated routes, services, repositories, and infrastructure dependencies. It would also demonstrate how Cloudflare bindings can be supplied to request-scoped
services without decorators or reflection.

References

I would be happy to implement the template, documentation, deployed preview, and required end-to-end tests if this proposal is a good fit for the repository.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions