question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi there – big fan, really love working with hono, it makes building services such a fun experience.

I know hono is built with web standards in mind, so only things like edge runtimes/deno/bun work, but I have a new API that uses some dependencies that only work in node right now. Is it possible to run hono in node? I saw this gist, which uses the Response and Request from node-fetch, but is this the recommended way to do so?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
yusukebecommented, Sep 8, 2022

Hi @aulneau

It’s interesting to run the application built with Hono on Node.js. However, I do not know the better way to do it because I have only tried a few. I think node-fetch is not the best. Anyway, we have to do “polyfill”. Edge Runtime is an available option.

I’ll try it when I have time too. I’ll let you know here if I find a better way.

1reaction
aulneaucommented, Sep 9, 2022

Despite the issue, I think it is a good idea to create an “adaptor” server for Node.

Very much agree! My favorite things about hono are more around how you construct an API versus where it can be deployed. Making it compatible with node would increase access to more people ✨

Read more comments on GitHub >

github_iconTop Results From Across the Web

Usage and example | Node.js v19.3.0 Documentation
An example of a web server written with Node.js which responds with 'Hello, World!' : Commands in this document start with $ or...
Read more >
Why the Hell Would I Use Node.js? A Case-by-case Tutorial
Node.js is easily employed as a server-side proxy, where it can handle a large amount of simultaneous connections in a nonblocking manner. It's...
Read more >
usage - npm
Simple interface to lookup cpu and memory usage of any accessible process on the system. Works on OSX, Linux, SmartOS and Solaris; Tested...
Read more >
Why and When to Use Node.js in 2021 [Complete Guide]
Real-time applications. As we have found that Node.js can ensure great speed and performance, one of the textbook Node.js use cases is real-time ......
Read more >
What Is Node.js and Why You Should Use It
Node.js is a single-threaded, open-source, cross-platform runtime environment for building fast and scalable server-side and networking ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found