Show HN: Hacker News desktop app made with Electron and Node
github.com
github.com
Regarding size, it appears to be around 100 MB, so you could have 20971 separate installations of it before filling up a 2 TB drive.
Memory usage could be an issue, but whether that matters will depend on your audience the app. In this case, the aim is toward HN, so it doesn't seem like an issue.
[ed: Not directed at op, as such, just how silly the general node ecosystem is currently]
For example, the only time I've maintained a proficiency in both a webdev stack and a native kit was when I was paid to work on both full-time.
Node's main appeal to me is a similar consolidation: using one language. At least until I find out I'm immortal.
That said, the big issue is that we don't (yet) get to share Electron installs. If all desktop applications had to bundle all their dependencies, including what the OS already provides to them, they would be just as big.
Electron apps themselves aren't that big. Even Atom.
Actually, I tried fixing that problem with `asv`: https://news.ycombinator.com/item?id=10244073
Edit:
One thing I would change is maybe make the overall border a more noticeable darker color, I keep getting confused as to where the borders are for when resizing it, and maybe a way of dragging and dropping the window (that is more obvious if it is there, I haven't figured out how to move the window without using what I assume to be KDE specific features).
https://vivaldi.net/en-US/blogs/teamblog/item/50-snapshot-1-...
You can have a sidebar in your browser with it's own webpage displayed, so you can have Hacker News open no matter what tab you're viewing.
Would save a lot of memory and time for everyone.
But if a single newsreader contains more code than a full PlayStation game, you know something’s wrong.
This is just Wirth’s Law in action.
Cool !!
Oh.. Mac only right now.
I did a quick browse and search of the source on github for "comment", "vote" and "login". How do you handle logging in/submitting comments/votes? Just present the regular hn login inside the app, and use the hn site?
I thought there was some TOS/gentlman's agreement that APIs only had read access to stories, and one needed/should use the hn page for comments/votes? Perhaps I'm mistaken?
I suppose there's no rule against making a custom browser though -- while a bit heavy handed, I suppose there's really no difference between wrapping node+electron and enhancing the UI/UX with greasmonkey -- I suppose the main issue is to behave closely enough to a regular web visitor, so as not to put undue strain on the service, not demand that every visitor actually uses a general purpose browser...?
hacker-menu$ node install
module.js:338
throw err;
^
Error: Cannot find module 'hacker-menu/install'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3 > node install
It's `npm install`The app seems pretty nice. I wonder why people are saying harsh things?
Anyway, keep up the good work ;)
1- http://i.imgur.com/5WjIJ5M.png
2- http://i.imgur.com/A1VHspL.png
This is about it. When you click on any link, it takes you to the website itself.
Currently the website has skewed image of the thing and then cropped round images of the thing.
If OP gave you free beer would you spit it out over him and say it's too bitter?
The cutting edge of building xplat desktop apps with browser tech involves independently bundling Node and Chromium, so it's gonna weigh 100+mb like a single Chrome browser tab. That's life.
Yes, we all have different appetites for different sets of trade-offs.
> "No thanks, I don't drink beer - cheers for the offer though!"I personally think that proxying by installing a 100 mb runtime just to be able to change some styles and change around some of the UX with custom javascript is a bit silly, but others here seem to like it, so who am I to judge?