Live data from Hacker News

A 9KB (3KB gzip) single HTML notebook, perfect for minimalists

chunqiuyiyu.github.io

11–20 of 25 posts

Re: A 9KB (3KB gzip) single HTML notebook, perfect for minimalists

#11
post #5

It was not obvious to me that I needed to click the New button first. I clicked around everywhere else and tried typing and no go. Then after clicking New and getting a text area, it made sense and I said "well of course". So maybe not too many other people had this problem, but perhaps the top line could say "Click New, then just write." =) And/or start the page off with a note that describes the basic process: "cli…

Thank you very much for your trial and suggestions. I will add more detailed usage instructions to the page. After editing, please remember to click the "Publish" button again.

Re: A 9KB (3KB gzip) single HTML notebook, perfect for minimalists

#14

Well, it does what it says on the tin:) https://github.com/chunqiuyiyu/xie?tab=readme-ov-file#prereq... says it needs NodeJS; is that just for building? Could you make a release on github that includes it as a single .html file that could be downloaded and used with no deps but a browser?

You can click the "Save" button to save the entire page to your own notebook. Node.js is used only for development and deployment purposes.

Re: A 9KB (3KB gzip) single HTML notebook, perfect for minimalists

#15
post #9

Earlier quoted context omitted.

https://github.com/chunqiuyiyu/xie/tree/gh-pages in the gh-pages branch you have the final index.html. You can also literally download/save the page as well, should be the same. It does not use any other deps than the final index.html Now, speaking about the project itself, maybe it would be good if the notes get also saved into localStorage in some way. One browser refresh or reboot and it all goes away if it wasn't…

if it auto saved to local storage then it would 100% be a daily use Markdown capable editor

That's an excellent suggestion — I'll make sure to add this feature.

Re: A 9KB (3KB gzip) single HTML notebook, perfect for minimalists

#16

Well, it does what it says on the tin:) https://github.com/chunqiuyiyu/xie?tab=readme-ov-file#prereq... says it needs NodeJS; is that just for building? Could you make a release on github that includes it as a single .html file that could be downloaded and used with no deps but a browser?

https://github.com/chunqiuyiyu/xie/tree/gh-pages in the gh-pages branch you have the final index.html. You can also literally download/save the page as well, should be the same. It does not use any other deps than the final index.html Now, speaking about the project itself, maybe it would be good if the notes get also saved into localStorage in some way. One browser refresh or reboot and it all goes away if it wasn't…

Thank you! I’ll make sure to store the newly created notes in local storage.

Re: A 9KB (3KB gzip) single HTML notebook, perfect for minimalists

#17

This is an interesting project. I'm glad to see Markdown is supported. I was surprised that there is no persistent storage of notes, though (at least not on my device).

Every time you add new content, you should make sure to click the "Save" button to store the page locally.

Re: A 9KB (3KB gzip) single HTML notebook, perfect for minimalists

#19
Interesting project ! Tried it on brave mobile Android and it does the job. Just so you know, when I edited the note I wrote in markdown, the note is now in html. But I guess this would mean add a html to markdown converter to the page. I get the minimalist concept, and I sense this could be a daily driver for many.

Re: A 9KB (3KB gzip) single HTML notebook, perfect for minimalists

#20

Interesting project ! Tried it on brave mobile Android and it does the job. Just so you know, when I edited the note I wrote in markdown, the note is now in html. But I guess this would mean add a html to markdown converter to the page. I get the minimalist concept, and I sense this could be a daily driver for many.

Thanks, That's a good suggestion—I’ll consider it. For me, since I might not edit content frequently, I just added a simple Markdown-to-HTML conversion.
Post reply on HN