Hacker Newsnew | past | comments | ask | show | jobs | submit | zahir777's commentslogin

Hi HN,

I built Kamod Hooks, a Preact hooks library inspired by and ported from ahooks.

The goal is to bring a broad set of practical React-style hooks to the Preact ecosystem, while keeping the package lightweight and Preact-native.

Repo: https://github.com/kamod-ch/kamod-hooks

Some details:

- Preact-only peer dependency

- No runtime npm dependencies in @kamod-hooks/core

- ESM + TypeScript build

- Per-hook subpath imports, e.g. @kamod-hooks/core/useToggle

- Browser-native APIs where possible: ResizeObserver, IntersectionObserver, Fullscreen API, URLSearchParams, History API

- Hooks for async requests, debounce/throttle, localStorage/sessionStorage, URL state, virtual lists, WebSocket, drag/drop, responsive breakpoints, theme handling, and more

I started this because I often use Preact for small, fast frontend projects, but many useful hook libraries are still React-first. Kamod Hooks is meant to fill that gap without pulling in React-specific assumptions like react-router.

It is still early, so I would especially appreciate feedback on:

- API compatibility with ahooks

- Which hooks are most important for real-world Preact projects

- Bundle/tree-shaking behavior

- Missing docs or examples

- Whether the package structure feels right

Thanks!


I should probably mention — I’m one of the co-founders of https://www.syncding.com

I originally built it for my own setup (multiple devices, encrypted files, etc.), and it kind of grew from there.

Not everyone has a NAS at home, so the idea behind syncding.com was to provide a simple, encrypted online Syncthing hub that just works without the usual setup — with built-in ZFS snapshots for versioning and recovery.

Always cool to see others using similar workflows.


Haha now your comment might make it seem like I was trying to advertise for you, hence the downvotes.

As a disclaimer, no I wasn't paid and have never been contacted before by Syncding, just a happy customer.


Hello Fabrice

Please post this post also here => https://www.cofoundme.org/

Thanx in advance

Cheers


Please share this comment on https://www.cofoundme.org


if u are just looking for startups then I can recommend u => https://www.cofoundme.org


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: