Better HN
topnewbestaskshowjobs
Log inSign up

dhax_or

37 karma · joined May 24, 2025 (1y ago) · 11 submissions

Submissions

comment 9mo ago · link · parent

Hi HN

I built Mynota, a minimal, browser-based text editor where the entire note is compressed and stored in the URL hash. That makes notes instantly shareable without any backend, accounts, or tracking.

Key ideas:

Uses the browser’s native Compression Streams API (deflate-raw)

Everything runs client-side (no servers, no DB, no analytics)

URL hash is the primary storage; localStorage is a fallback

Works offline and can be bookmarked

I’d love feedback on the approach, compression strategy, or edge cases you think I’ve missed.

2.

Mynota – a browser-based text editor that compresses notes into the URL(mynota-app.vercel.app ↗)

3 points · by dhax_or · 9mo ago · 2 comments

comment 1y ago · link · parent

I built this as an improved version of the popular Mitt library. It keeps the tiny footprint (~400 bytes gzipped) while adding genuinely useful features that I found myself needing in real projects:

- once() for one-time listeners - hasListeners() and listenerCount() for introspection - clear() to reset everything - Safer emission that protects against handler modification during events - Full TypeScript support with generic types

Same familiar API as Node's EventEmitter and original Mitt, so it's a drop-in replacement. I've been using it in production and it's been solid.

GitHub: https://github.com/Dhaxor/better-mitt

NPM: npm install better-mitt

Would love feedback from the community - and if you find it useful, a GitHub star would be much appreciated!

4.

Better-Mitt: A tiny (~400B) TypeScript-first event emitter that improves on Mitt(npmjs.com ↗)

3 points · by dhax_or · 1y ago · 3 comments

comment 1y ago · link · parent

I've not used es-toolkit but from what I see you get lower bundle size, typescript support and a better performance with our library. I will be releasing the the benchmark soon enough so do watch the repository if you can

comment 1y ago · link · parent

Thanks for this! I've already started adding more tests. I ran some benchmarks and they were really impressive. I will get it out in the next release

7.

Show HN: SuperUtilsPlus – A Modern Alternative to Lodash(github.com ↗)

91 points · by dhax_or · 1y ago · 75 comments