TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Node-android – Run Node.js on Android

70 pointsby sequoiar6868almost 7 years ago

15 comments

unit91almost 7 years ago
Serious question: what sorts of things would a person do with this?<p>Not throwing rocks, this is a question based in my own ignorance. I know what Node is, but I don&#x27;t use it and I&#x27;m not an Android dev. Thanks!
评论 #17306979 未加载
评论 #17306857 未加载
评论 #17309574 未加载
mikecealmost 7 years ago
If the purpose is to just run JavaScript code on Android outside of a browser context, React Native and NativeScript have been doing this for a while.<p>If the purpose is to run JavaScript functions as background services this is somewhat implemented via Service Workers in Progressive Web Apps.<p>I don&#x27;t think there is any way (currently) to register a JavaScript function&#x2F;library as an always-on server process. I don&#x27;t see why this would be unsafe or particularly undesirable unless there is something computationally intensive happening.
laialmost 7 years ago
This is cool, but Termux gives you this and more.
rhackeralmost 7 years ago
This looks like a NodeJS implementation written in Java (I&#x27;m guessing from a dead-push to make Java&#x27;s JS VM capable of running NodeJS APIs - and note that its compatible with Node 0.10.x - very oldish) Still would likely fill a niche where previously not possible.
andrewguentheralmost 7 years ago
&quot;Run Node.js on Android by rewrite Node.js in Java&quot;<p>It also hasn&#x27;t been meaningfully updated in two years. I don&#x27;t think that this is really useable.
antoniuschan99almost 7 years ago
I was able to get Node running on both Android and iOS using this library: <a href="https:&#x2F;&#x2F;github.com&#x2F;janeasystems&#x2F;nodejs-mobile" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;janeasystems&#x2F;nodejs-mobile</a><p>Here&#x27;s the writeup:<p><a href="https:&#x2F;&#x2F;medium.com&#x2F;@tuffluver&#x2F;control-an-industrial-robot-with-your-iphone-or-android-88b5dd300ee1" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;@tuffluver&#x2F;control-an-industrial-robot-wi...</a>
jimpickalmost 7 years ago
Very nice! I&#x27;ve been playing with <a href="https:&#x2F;&#x2F;github.com&#x2F;janeasystems&#x2F;nodejs-mobile" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;janeasystems&#x2F;nodejs-mobile</a> to get the Dat project to run on Android and iOS. This might be another way to do the same thing on Android!
评论 #17306789 未加载
hyperpalliumalmost 7 years ago
termux (on android) has nodejs<p><pre><code> $ apt search nodejs nodejs&#x2F;stable 8.11.2 arm Platform built on Chrome&#x27;s JavaScript runtime for easily building fast, scalable network applications </code></pre> disclaimer: I haven&#x27;t used it
bitwizealmost 7 years ago
Great hack, but what does it give me that Node under Termux doesn&#x27;t?
评论 #17309806 未加载
JosephRedfernalmost 7 years ago
I&#x27;m probably being blind here, but why would you need to re-write node.js in Java in order to be able to run it under Android? Why couldn&#x27;t this be achieved through JNI (or similar)?
naorualmost 7 years ago
I used an old Android phone with Linux Deploy to run Node with MongoDB around 3 years ago. Now Termux allows to do basically the same.
sequoiar6868almost 7 years ago
the initial purpose is to run http over udp with nodejs on Android for p2p web service. I have spent years of effort on it, but I feel tired now. anyone interested in it, can fork and continue on it. thanks.
EGregalmost 7 years ago
Do we have one for iOS?<p>I would like to run my own web servers in Cordova!!
评论 #17307374 未加载
augbogalmost 7 years ago
Why link to a fork?
philliphaydonalmost 7 years ago
Now we just need android phones with 32gb of ram.