Skip to content

Commit

Permalink
Add Hono (#318)
Browse files Browse the repository at this point in the history
* Add Hono

Signed-off-by: Matteo Collina <hello@matteocollina.com>

* packages

Signed-off-by: Matteo Collina <hello@matteocollina.com>

---------

Signed-off-by: Matteo Collina <hello@matteocollina.com>
  • Loading branch information
mcollina committed Nov 10, 2023
1 parent c52f6c7 commit 2198f62
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions benchmarks/hono.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { serve } from '@hono/node-server'
import { Hono } from 'hono'

const app = new Hono()
app.get('/', (c) => c.json({ hello: 'world' }))

serve(app)
1 change: 1 addition & 0 deletions lib/packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const packages = {
h3: { package: 'h3' },
'h3-router': { hasRouter: true, package: 'h3' },
hapi: { hasRouter: true, package: '@hapi/hapi' },
hono: { hasRouter: true, package: 'hono' },
koa: {},
'koa-isomorphic-router': { extra: true, hasRouter: true },
'koa-router': { extra: true, hasRouter: true },
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"@galatajs/app": "^0.1.1",
"@galatajs/http": "^0.1.2",
"@hapi/hapi": "^21.1.0",
"@hono/node-server": "^1.2.0",
"@leizm/web": "^2.7.3",
"@trpc/server": "^10.7.0",
"0http": "^3.4.2",
Expand All @@ -52,6 +53,7 @@
"frameguard": "^4.0.0",
"h3": "^1.0.2",
"hide-powered-by": "^1.1.0",
"hono": "^3.9.2",
"hsts": "^2.2.0",
"ienoopen": "^1.1.1",
"inquirer": "^9.1.4",
Expand Down

0 comments on commit 2198f62

Please sign in to comment.