Lurker News
Hey!

I made Heynote entirely for my own use case. For many years, I always had an Emacs instance running with the scratch buffer open, even long after I had abandoned Emacs as my programming editor in favor of more recent IDE:s.
The simplicity of having just one big scratch buffer appeals to me, but I still want to separate the different things I jot down somehow (without using tabs or similar). Previously, my solution was to insert a bunch of blank lines between the notes, but hitting C-A would still select the entire buffer. That's why I came up with the concept of "blocks", which turned out really well for my use cases.
I decided to release Heynote, thinking it might be useful to others.

Comments (303) 149 threads

jsdalton6 replies#
This is just outstanding. It's so exactly what I wish for out of a scratch pad.

My feature request to add to your pile (possibly a lonely one, since maybe it's just unique to how my brain works):
I really want a scratch pad like this to have UX that supports "inverted" order. Meaning, new blocks get added to the top of the page instead of the bottom. The blocks naturally flow in descending order of creation rather than ascending. The scratch pad always opens at the top of the page. Over time, blocks thus end up "decaying" toward the bottom, with the most relevant at the top.
It just fits better with how my brain works.
I also +1 the sentiment given elsewhere in this thread to bias toward ignoring the vast majority of these feature requests and preserve the simplicitly of what you've built. That includes mine!

vy007vikas#
+1. This would be great. I could then use this for daily logging as well.
hjadal#
I agree that this addition would be very helpful as it is already how I take notes in a markdown document.
jonatanheyman5 replies#
Happy you like it :).

I get the idea of the "inverted order". I wonder if it would be enough to make it configurable so that C-Enter inserts a new block before the current one + Heynote sets the cursor at the beginning of the buffer at startup (instead of last which is the current behavior)?

jsdalton#
Yeah I was thinking similar. And/or a separate shortcut key that opens a new block at the very top of the page (regardless of where the current cursor is positioned).
smusamashah#
Having an option to set either behaviour the default would be a better choice here.
drBonkers#
That would be plenty for me!
al_borland#
Another option might be to have the default scroll position at the bottom, to act more like a terminal or chat app. Scroll up to see the history, rather than scrolling down to see the latest.

(Sorry if this is how it already works, I’m on my phone right now, so I can’t download it, but I’m very interested in the block idea. I like that concept a lot for a scratch pad. I’m definitely saving this for later.)

dwilding#
Your app is awesome, it's just so satisfying to use. Really fantastic job!

My two cents on block insertion: Personally, I would love if Cmd+Enter inserts a new block at the very top
For inserting a new block in sequence, I feel like Cmd+Shift+Enter (splitting the current block) might already be enough - but I obviously haven't used heynote for long enough to have a very informed opinion on this :)
Maybe there's some way to make the behavior configurable?

amadeuspagel1 reply#
I made a notes app that's kind of like that. Notes get added to the top and when you edit a note it gets "bumped" to the top again: https://thinktype.app/
SpaghettiCthulu2 replies#
TIL using the .app TLD makes your website categorically an app
amadeuspagel1 reply#
I'm not sure what you mean. This is an app that stores everything client side. It works offline. It's no different from a native app.

Continue this thread — 1 reply

phanimahesh#
A web page that can run offline is typically called a web app. With some metadata it is possible to "install" them to run in ui chrome less windows like a natively installed app on multiple environments.

It's not the .app domain so much as the functionality. Web apps are nicer and easily accessible imo, lower friction than an install. Not everything should need an install.

chatmasta2 replies#
I also like this. But I don't like the distraction of seeing all the blocks below my cursor move every time I make a new line.

The perfect UX would be to add a new buffer at the top, but with enough padding to fill the window so that you can't see the movement of previous blocks while you're typing.
(Maybe this is already kinda how it works - I haven't downloaded the app yet, but I'm excited to try it, because it looks great!)

radley1 reply#
>I don't like the distraction of seeing all the blocks below my cursor move every time I make a new line.

Uhm... They don't move. They stay the same distance, relative to your line. As you add more lines, they'll disappear below the fold.

chatmasta#
In a regular doc, if you start typing at the beginning, then all the lines after it move down as you type. It's just the movement I find distracting, compared to appending to a doc with no space below where I'm inserting text. I'd rather feel like I'm typing into empty space rather than up against a wall.
oezi#
I wrote a small Ruby TUI which works like this called Rodo (Ruby Todos). Pressing CTRL+t will get you a new Todo list (it's just markdown) at the top of a file.

https://github.com/coezbek/rodo

breakfastduck#
please do this inverted order
bomewish#
I would probably pay for this if:

- vi bindings
- show me where the file is so I can move it around, sync it across machines, back it up, etc.
- the inverse order stuff
It's really really good. thank you.

dceddia3 replies#
This looks awesome! I love the blocks idea. I’m gonna download and give it a try.

I see lots of comments about Electron (per usual here haha) and I just thought I’d shout out Tauri if you hadn’t run across it. It’s basically Electron-but-in-Rust and uses the system webview instead of Chromium, so bundle size and memory usage is reduced a bunch.
I took a look at the code and it looks like you haven’t got a ton of Electron-side code so if you felt like playing with Rust it might not be too hard to swap. I have a video editing app that I started building with Electron and then switched to Tauri midway and it’s been pretty nice.
I hope it’s clear this isn’t a request and please feel free to disregard this comment entirely :)

jonatanheyman1 reply#
Yeah, I looked at Tauri in the beginning of the project. What made me go with Electron was the maturity and large user base. And it has actually been a bliss to work with Electron (my expectations after having worked with other cross-platform tools for mobile were extremely low), so I haven't regretted my choice. I've dealt with very few bugs. I love that there is a large ecosystem, and that it was easy to automate building (as well as auto-updating) for multiple platforms.
dceddia#
That makes a lot of sense. I miss a bit of that from Electron. Its auto-updater is nicer, and while I haven't had a ton of cross-browser issues there've been a couple that I had to fix with transpiling or avoiding some newer CSS stuff. Shipping everything with one browser engine lends a lot toward peace of mind.

I wish there was a way to build a stripped-down Electron, like a configurator where you could uncheck things you don't need. Printing support? WebGPU? WebRTC? Video playback? PDF reader? Straight to jail. It would be lovely. I'd love to see what would happen to the bundle size.

esafak1 reply#
I read that the Rust part was unergonomic. Do you find Tauri productive?
dceddia#
Yeah, it works pretty well for me. Rust definitely took some getting used to (I was new to it when I started).

There's a lot of functionality you can access from JS without needing to get into Rust, but on the Rust side Tauri has this notion of "commands" for calling Rust from the UI.
You can write a Rust function and annotate it with #[tauri::command], and register it, and then you can call it from the JS side with invoke('your_command_name', args). Those commands can be async too, so you can do blocking work on the Rust side and the UI won't freeze.
You can inject State variables into those commands, which get injected at call time and are effectively global to the Rust side. I would say the State stuff is a bit unergonomic in that you run up against needing to share them between threads, so everything inside them needs to be Arc> and writing those wrappers was boilerplatey.
I wish the JS <-> Rust calling overhead were lower. It serializes everything to JSON and back, so I try to avoid too many calls, and try to avoid sending lots of data between them.

OccamsMirror#
My issue with Tauri is that it used WebKitGtk2 on Linux. Which is pretty poor from a performance perspective and missing feature support compared to WebKit on MacOS or Webview2 on Windows.
evnc3 replies#
I love this! Simple and solid execution. I've been wanting to build something similar for some time now, might fork and play around with it. Thank you for open sourcing it!

I've started using Obsidian with a new note for each day and separating "blocks" with a Markdown horizontal rule (`---`) to achieve something similar, but this is much cleaner.
The strength of such an approach is making capture extremely easy -- new block, start writing, no thinking about where this goes and how to fit it into pre-existing structure. I find that if I'm trying to do that, then by the time I find where my idea goes, I've lost the idea.
The downside, of course, is finding things again. The ability to tag or title a block and search by tag or title would be great. More ambitiously, it would be cool to experiment with incorporating LLMs and embeddings to automatically tag, summarize, categorize, cluster etc. your blocks.
There's a lot of different directions one could take this, but I'll echo the sentiment of others to refrain from adding too many features and losing the original appeal of simplicity. :)
Also: How do you handle performance when the buffer gets very large?

jonatanheyman#
Performance is mostly handled by CodeMirror (https://codemirror.net/), the underlying editor that Heynote is built upon. It seems to handle quite large buffers well. Where I have seen some minor performance issues is when working with very large blocks in certain language modes.
mkl2 replies#
It's not open source, as it uses the Commons Clause which severely limits what can be done with it (the name is misleading).
prartichoke1 reply#
As far as a quick google search got me, it seems pretty open with the only caveat being you can't sell or monetize it... how is that not open source?
aryonoco2 replies#
If you put any restrictions on usage or what can be done with it (like selling), then it's absolutely not open source.

open source doesn't mean source code is there. open source has a specific definition. There is a list of acceptable open source licenses, as defined by OSI. similarly there is a list of acceptable free software licenses, as defined by FSF. Broadly, the two lists are the same. Commons Clause is definitely not open source.

Continue this thread — 2 replies

jonatanheyman1 reply#
I didn't put too much consideration into picking a license. If someone has compelling arguments for why I should license it differently, I would absolutely consider it.
mkl#
If you want to make commercial profit unlikely but encourage contributions and widespread use, GPL would probably work better than Commons Clause.
niels_bom#
I use Obsidian for my programming notes, troubleshooting logs, thinking on “paper”, writing and checking assumptions. It’s very powerful and quite performant. AMA.

Load more comments