monorepo for Hono third-party middleware/helpers/wrappers
 
 
Go to file
Sor4chi c608fa9532
feat: swagger ui middleware (#230)
* feat(zod-openapi): create swagger-ui jsx component

* feat(zod-openapi): add swagger ui docs

* chore(zod-openapi): add versioning doc

* chore(zod-openapi): fix SwaggerUI component doc

* refactor(zod-openapi): remove jsx comment

* feat(swagger-ui): create new package

* feat(swagger-ui): provides swagger ui middleware and swaggerui component

* feat(zod-openapi): Changed to use @hono/swagger-ui

* chore: add versioning doc

* feat: update ci for @hono/swagger-ui

* refactor: remove package-lock.json

* refactor: reverted the extra changes.

* chore: remove old changeset doc

* refactor(swagger-ui): remove unused file

* refactor(swagger-ui): change input type

* feat(swagger-ui): Select only the options you need.

* chore(swagger-ui): update README

* refactor(swagger-ui): rewrite simple

* refactor(zod-openapi): remove swagger-ui

* chore(swagger-ui): fix readme content

* chore(dep): add @types/swagger-ui-dist for option types support

* feat: implement SwaggerConfig Renderer for mapping config object to html

* feat: extend some option support for swagger-ui-dist

* test: move option rendering test and add some cases

* feat: add manually option for making full customizable

* docs: update swagger-ui middleware README

* fix: do not escape HTML strings

* docs: update README of swagger-ui middleware

* ci: update workflow environment for swagger-ui middleware

---------

Co-authored-by: naporin0624 <naporin0624@gmail.com>
2023-11-04 18:18:20 +09:00
.changeset feat: swagger ui middleware (#230) 2023-11-04 18:18:20 +09:00
.github/workflows feat: swagger ui middleware (#230) 2023-11-04 18:18:20 +09:00
.vscode chore: add vscode settings 2023-01-18 21:30:32 +09:00
packages feat: swagger ui middleware (#230) 2023-11-04 18:18:20 +09:00
.eslintignore chore(graphql-server): setup 2023-02-04 11:53:27 +09:00
.eslintrc.js setup Firebase Auth middleware 2023-02-04 20:20:42 +09:00
.gitignore initial commit 2022-10-16 17:52:21 +09:00
.prettierrc initial commit 2022-10-16 17:52:21 +09:00
README.md docs(readme): update 2023-02-04 20:37:45 +09:00
jest.config.js initial commit 2022-10-16 17:52:21 +09:00
package.json feat: swagger ui middleware (#230) 2023-11-04 18:18:20 +09:00
tsconfig.json fix(zod-openapi): support multiple params (#155) 2023-09-11 11:44:47 +09:00
yarn.lock feat: swagger ui middleware (#230) 2023-11-04 18:18:20 +09:00

README.md

monorepo for Hono third-party middleware

This repository is monorepo for third-party middleware of Hono. We develop middleware in this repository and manage the issues and pull requests.

What is third-party middleware?

Hono has three types of middleware.

  1. Custom middleware - Created by users themselves.
  2. Built-in middleware - Included in the Hono core package. It does not depend on any other external libraries.
  3. Third-party middleware - Created outside of the core package. It can depend on the external libraries.

Third-party middleware is maintained in this github.com/honojs/middleware repository and published to npm in the @hono namespace. For example, a third-party middleware called hello is hosted at github.com/honojs/middleware/packages/hello and distributed under the name @hono/hello. You can install it with the following command.

npm install @hono/hello

For Deno, we do not publish them on deno.land/x, but distribute them via CDNs such as Skypack and esm.sh. We will also use the npm: that will be introduced in the Deno itself in the future.

import { hello } from 'npm:@hono/hello'

How to contribute

Anyone can propose third-party Middleware. The Hono maintainers and other contributors will discuss whether we accept the middleware or not. If it's OK, it will be maintained in this repository. The proposer maintains it.

The specific flow is as follows

  1. Clone this repository
  2. Write your middleware. Refer to hello Middleware.
  3. Create the pull request.

We use changesets to manage releases and CHANGELOG. Run the following command at the top level to describe any changes.

yarn changeset

When merged into the main, a pull request for release is created. The Hono maintainers will merge it to release the package at the appropriate time.

Author & License

The Author of this repository is Yusuke Wada <https://github.com/yusukebe>. However, the code under the packges/* is in each Middleware author. Basically, distributed under the MIT license.