Skip to content

Commit

Permalink
Rayo is back. (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
aichholzer authored Oct 25, 2023
1 parent 7733241 commit aceab44
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
16 changes: 16 additions & 0 deletions benchmarks/rayo.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
'use strict'

async function run () {
const { default: rayo } = await import('rayo')

const app = rayo({ port: 3000 })

app.get('/', (req, res) => {
res.setHeader('content-type', 'application/json; charset=utf-8')
res.end(JSON.stringify({ hello: 'world' }))
})

app.start()
}

run()
1 change: 1 addition & 0 deletions lib/packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const packages = {
microrouter: { extra: true, hasRouter: true },
polka: { hasRouter: true },
polkadot: { hasRouter: false },
rayo: { hasRouter: true },
restana: { hasRouter: true, package: 'restana' },
restify: { hasRouter: true },
'server-base': {},
Expand Down
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,18 @@
}
],
"standard": {
"ignore": ["lib/packages.js"]
"ignore": [
"lib/packages.js"
]
},
"license": "MIT",
"dependencies": {
"0http": "^3.4.2",
"@hapi/hapi": "^21.1.0",
"@galatajs/app": "^0.1.1",
"@galatajs/http": "^0.1.2",
"@hapi/hapi": "^21.1.0",
"@leizm/web": "^2.7.3",
"@trpc/server": "^10.7.0",
"0http": "^3.4.2",
"autocannon": "^7.10.0",
"autocannon-compare": "^0.4.0",
"benchmark": "^2.1.4",
Expand Down Expand Up @@ -63,6 +65,7 @@
"ora": "^6.1.2",
"polka": "^0.5.2",
"polkadot": "^1.0.0",
"rayo": "^1.4.5",
"restana": "^4.9.7",
"restify": "^11.0.0",
"router": "^1.3.7",
Expand Down

0 comments on commit aceab44

Please sign in to comment.