frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: I created redux-lite: easy-use, high-performance React state manager

https://github.com/oldbig/redux-lite
2•oldbig•4h ago
Hi HN,

I'd like to share a project I've been working on: `@oldbig/redux-lite`. It's a state management library for React designed to be:

1. *High-Performance & Lightweight*: Zero runtime dependencies, a tiny footprint, and built-in optimizations to prevent unnecessary re-renders. It's incredibly fast. 2. *Super Easy to Learn & Use*: The API is so simple you can learn it in 5 minutes. It eliminates boilerplate by generating everything from a single store definition. 3. *Extremely Easy to Test*: Since the state is just a plain object and there are no complex reducers to mock, writing unit tests for your components is trivial. 4. *Fully Type-Safe*: End-to-end type safety with excellent autocompletion.

Here’s a quick look at the API:

// 1. Define your store const storeDefinition = { user: { name: 'Guest', age: 0 }, tasks: optional<string[]>(), // Optional state slices };

// 2. Initiate const { ReduxLiteProvider, useReduxLiteStore } = initiate(storeDefinition);

// 3. Use the hook in your component const { user, dispatchPartialUser } = useReduxLiteStore(); // dispatchPartialUser({ name: 'John' });

The library is designed to prevent unnecessary re-renders by performing deep equality checks on state updates.

GitHub Repo: https://github.com/oldbig/redux-lite NPM Package: https://www.npmjs.com/package/@oldbig/redux-lite Demo (Todo List): https://github.com/oldbig/redux-lite/tree/main/examples/todo...

I built this because I wanted a state manager that was powerful without the complexity and boilerplate of traditional Redux. I'd love to get your feedback and answer any questions. Thanks for checking it out!

Comments

gkoos•3h ago
Looks neat. A few things though: 1. Deep equality checks on every dispatch may become expensive for large, deeply nested objects. 2. Auto-generated partial dispatchers can obscure what actually happens in updates. 3. Middleware API is Redux-like, but can't see support for async flows (like thunks or sagas).

Show HN: SJT- A lightweight structured JSON table format for APIs

1•yukiakai•9m ago•0 comments

China Warns Against Excess Competition in Booming AI Race

https://www.bloomberg.com/news/articles/2025-08-29/china-warns-against-disorderly-competition-in-...
1•1vuio0pswjnm7•26m ago•1 comments

/proc/filesystems

https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/4/html/reference_guide/s2-proc-...
3•kamaraju•41m ago•0 comments

From Zero to 76.5B: The Grok Code Fast Review

https://blog.kilocode.ai/p/from-zero-to-765-billion-the-grok
4•sytse•42m ago•1 comments

The $10T AI Revolution: Why It's Bigger Than the Industrial Revolution [video]

https://www.youtube.com/watch?v=yoycgOMq1tI
1•mgh2•42m ago•0 comments

Investigating the July/August 2025 Price Gap Between LUNO and VALR

https://www.teruza.com/info-hub/crypto/investigating-the-july-2025-price-gap-between-luno-and-valr
1•teruza•47m ago•1 comments

Accelerating Linux Pipes with Solarflare Onload

https://medium.com/@sgn00/accelerating-linux-pipes-with-solarflare-onload-9c17ba9eb36b
2•sgn00•48m ago•0 comments

Linus Torvalds marks bcachefs as "externally maintained"

https://lwn.net/Articles/1035736/
2•Bogdanp•48m ago•0 comments

SSA Chief Data Officer Resigns

https://old.reddit.com/r/fednews/comments/1n3mm9m/ssa_chief_data_officer_resigns/
1•heywoods•48m ago•0 comments

An SF hackathon where the winner gets to take a shower

https://www.showerhacks.org/
2•JohnLins•50m ago•0 comments

I sat down with Werner Vogels, the CTO of Amazon

https://everton.xyz/i-sat-down-with-werner-vogels/
2•evertonmjr•54m ago•0 comments

Fun and Immersive Typing Game

https://keybara.io
1•martyhendricks•56m ago•0 comments

Niminst: A tool to generate an installer for a Nim program

https://nim-lang.org/docs/niminst.html
1•TheWiggles•57m ago•1 comments

Condor's Cuzco RISC-V Core at Hot Chips 2025

https://chipsandcheese.com/p/condors-cuzco-risc-v-core-at-hot
2•zdw•1h ago•0 comments

Linear Regression: A Visual Introduction to Almost Everything You Should Know

https://mlu-explain.github.io/linear-regression/
2•pykello•1h ago•0 comments

US Homeland Security chief reports breach at FEMA, fires 23 employees

https://www.reuters.com/world/us/us-homeland-security-chief-reports-breach-fema-fires-23-employee...
10•clwg•1h ago•3 comments

The fight against labeling long-term streaming rentals as "purchases" you "buy"

https://arstechnica.com/gadgets/2025/08/i-like-plaintiffs-chances-prime-video-back-in-court-over-...
9•makeitdouble•1h ago•0 comments

Today's game consoles are historically overpriced

https://arstechnica.com/gaming/2025/08/todays-game-consoles-are-historically-overpriced/
2•zdw•1h ago•0 comments

The feather's multi-functional structure inspires hierarchical design

https://royalsocietypublishing.org/doi/pdf/10.1098/rsif.2024.0776
1•zdw•1h ago•0 comments

The Long History of Life on Mars

https://www.newyorker.com/news/fault-lines/the-long-history-of-life-on-mars
1•petethomas•1h ago•0 comments

What is the current and accepted definition of formally proved software?

1•cauterize•1h ago•0 comments

Gilfoyle Show – AI in Business: The Great Productivity Strike [video]

https://www.youtube.com/watch?v=8CeMFSIV6sQ
1•real-hacker•1h ago•1 comments

Show HN: Hacker News em dash user leaderboard pre-ChatGPT

https://www.gally.net/miscellaneous/hn-em-dash-user-leaderboard.html
28•tkgally•1h ago•26 comments

FCC Rejects Calls for Cable-Like Fees on Broadband Providers

https://thedesk.net/2025/08/fcc-no-broadband-fees-nab/
3•m463•1h ago•0 comments

Battlefield 6 Dev Apologizes for Requiring Secure Boot to Power Anti-Cheat Tools

https://arstechnica.com/gaming/2025/08/battlefield-6-dev-apologizes-for-requiring-secure-boot-to-...
2•m463•1h ago•0 comments

OpenAI tackling life extension with LLMs

https://openai.com/index/accelerating-life-sciences-research-with-retro-biosciences/
3•oskarpearson•1h ago•0 comments

Stop Losing Traffic Arbitrage Accounts–Run Safer, Smarter Campaigns with DICloak

https://dicloak.com/blog-detail/from-clicks-to-cash-how-dicloak-helps-you-run-traffic-arbitrage-s...
3•DICloak•1h ago•1 comments

Bare Minimum LeetCode Extension

https://chromewebstore.google.com/detail/leetcode-difficulty-hider/lnhkllaalenghamgopegkgdfihhgidac
1•hmm_123•1h ago•0 comments

High-performance athletes at risk for depression despite benefits of activity

https://medicalxpress.com/news/2025-08-highlights-depression-high-athletes-benefits.html
2•PaulHoule•1h ago•1 comments

What happens to tariffs now that a federal appeals court has knocked them down?

https://apnews.com/article/trump-tariffs-court-ruling-trade-1c5a02ad38597c3629eff5977490813a
2•petethomas•1h ago•1 comments