Live data from Hacker News

Show HN: Nash, I made a standalone note with single HTML file

keepworking.github.io

111–120 of 153 posts

Re: Show HN: Nash, I made a standalone note with single HTML file

#111

Earlier quoted context omitted.

The idea is you would write everything in the webpage, like. Google Doc. Then you can download that web page and share it with anyone anywhere and nearly everyone will be able to read it because it will open in a browser

Would I be able to store and edit this type of note on Google Drive? I like to keep documents in the cloud so I can access and edit them from anywhere, like Google Docs. But I don't think Drive can actually open html files, despite working entirely inside the browser.

On my dropbox, I was able to modify and share it on the web or apps. It was not saved.

When I opened html on the file app on my iPhone, js didn't run, so I could only see it

I don't think it's perfect in many ways.

Re: Show HN: Nash, I made a standalone note with single HTML file

#112

I really like this, for two reasons: 1) I’ve been getting sick of Jekyll and using it to write, because I find all the work of managing images tedious. 2) my first name is Nash, so this feels like it was made for me. :)

I hope this was a good gift for you. ;)

I haven’t tried sticking an image in it yet, but I drafted a blog post in it already this morning.

Very fun. Nice and lightweight. I like it.

I may submit a PR for you - I have some ideas about how I could make this more personally useful. Saving off files as Markdown is one idea I had. Would solve my “no pretty markdown editor” woes, and also allow me to chuck output from this directly into my existing GitHub Pages blog.

Re: Show HN: Nash, I made a standalone note with single HTML file

#113
post #90

I am also creating a Log viewer in a single HTML file (like Splunk, but a bit smaller). Pure JavaScript with no dependencies makes it runnable and integratable everywhere, which is nice. https://github.com/dobin/SemiDataSieve

Something you might be interested in is that journalctl (systemd's logger) can output real time logs in a format for server-sent-events (journalctl -o json-sse) so with a minimal bash http wrapper you can get realtime logs from most linux systems into your app.

Re: Show HN: Nash, I made a standalone note with single HTML file

#115
post #51

I like it a lot, and I see from the source you're coding in vanilla js, which is awesome. It's underrated how much of an interactive web app you can build without using any libraries or frameworks nowadays. I actually also really like the idea of building simple/local web apps in a single HTML page. A while ago my child and I visited a science museum and played with a simple stop motion animator. I decided to make a…

really, just like we had a "you don't need jquery for that" we need a "you don't need react (or vue, or svelte, or whatever else you are thinking) for that." plain, vanilla js and some decent skills will do nearly almost everything in a cleaner and more maintainable way. after decades of maintaining other people's stuff, dumb design by smart people beats all the other combinations.

The downside, of course, is needing to code in JavaScript.

Re: Show HN: Nash, I made a standalone note with single HTML file

#116
post #79

Earlier quoted context omitted.

> Sorry I didn't mean to offend anyone. I know, and it's nothing that needs an apology from you. Sometimes people (like me) feel offended over nothing, and it's more interesting for them to question why that is, instead of blamig the other party. That's not to say the reverse can't be true, just that it's tempting and too easy to project one's own offendedness if one isn't careful. But back to the interesting questio…

Ok got it, I think I can relate to your feelings if someone assumed that I use TypeScript or React ;) I got the courage to ask because I felt that you sounded open for a bit of self-introspection. Thanks for taking the time to describe something that's difficult to describe! When I joined Microsoft in 2007, Visual Studio was at a state that it didn't even have syntax highlighting for Javascript. Many years later, I g…

Thanks for providing your perspective and a bit of backstory. It's interesting for me to hear from someone with such a different point of view. It certainly gives more nuance to the topic.

Re: Show HN: Nash, I made a standalone note with single HTML file

#117
post #18

This is cool. It's funny how we are (or maybe just I am) so used writing the JS parts of websites outside of the actual HTML that my first thought upon seeing this was "wow it's crazy that this can be done with just HTML". And then looking at the source and seeing all the JS in plain old script tags made me remember that that's a thing that you can do.

HTML is underrated. Most of the screens we look at daily, including our code editor are HTML pages.

[deleted]

Re: Show HN: Nash, I made a standalone note with single HTML file

#118
post #59

Much of the heavy lifting is done by this simple but powerful attribute, something surprisingly few developers seem to know about. It's been around for quite a while.

This one line was like 90% of the original implementation of Writely (the startup that became Google Docs; source: I was one of the founders).

The other 90% was all the backend code we had to write to properly synchronize edits across different browsers, each with their own bizarre suite of bugs in their contenteditable implementations :-)

Re: Show HN: Nash, I made a standalone note with single HTML file

#119
post #59

Much of the heavy lifting is done by this simple but powerful attribute, something surprisingly few developers seem to know about. It's been around for quite a while.

I love this. Once made a pdf editor by converting a doc to HTML then throwing in contenteditable="true" in the top-most div lol

What do/did you use to convert pdf to html?

Re: Show HN: Nash, I made a standalone note with single HTML file

#120

Earlier quoted context omitted.

Yeah, it's pretty amazing. Back in 2016 I was still doing a lot of custom sites for small/mid businesses, and realized that almost all of this could be done with WP or something except (1) WP styling is really annoying and I don't want to maintain that, (2) I didn't want to rely on plugin functionality and upgrading WP, and (3) I wanted people with different levels of access to be able to edit different parts of the…

In about 2009, the university I worked at adopted one of those enterprise CMS thingamajigs, but this one was called RedDot, and the central UX conceit was a red dot next to every piece of content, which transformed it into an edit control when clicked... Under the hood it was about as shit as every other enterprise CMS of the era, but our users fucking loved it.

Ah, RedDot - that’s a throwback if I ever heard one!
Post reply on HN