frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: A React state profiler used to find double-render bugs in Excalidraw

https://github.com/liovic/react-state-basis
1•lpetronika•2w ago

Comments

lpetronika•2w ago
Hi HN, creator here.

I've been building react-state-basis, a runtime auditor for React state architecture.

The project is inspired by a simple idea from linear algebra: a "basis" is a minimal set of independent vectors. In React, many apps suffer from state that is "linearly dependent" -variables that always move in sync and should really be derived values or a single source of truth.

The tool ignores state values entirely. Instead, it tracks the high-resolution timing of state updates and hook firings. It treats these updates as temporal signals to identify redundant state and reveal hidden "sync leaks" (causal chains) that static analysis usually misses.

What’s new in v0.4.0: I recently moved the engine from simple binary snapshots to Temporal Cross-Correlation (Lead-Lag analysis). Instead of just asking if two states update at the same time, the engine now checks across multiple "temporal planes." It can detect if State B consistently follows State A with a phase shift, allowing it to distinguish between simple redundancy and causal update chains.

Real-World Results: I validated the v0.4.0 engine by running it on Excalidraw (114k stars). It successfully identified a causal sync leak in their theme-switching logic - a manual useEffect synchronization that was causing an unnecessary double-render. I submitted a PR to replace it with a computed value: https://github.com/excalidraw/excalidraw/pull/10637

Engineering Highlights:

Pointer-based Offsets: Uses index offsets to perform temporal analysis directly on raw history buffers, avoiding array slicing (.slice()) or creating temporary objects that cause GC micro-stutters.

Lead-Lag Analysis: Evaluates the correlation across three temporal planes (Sync, Lead, and Lag) to determine the "Direction of Flow" between variables (A → B).

Circuit Breaker: Detects high-frequency state oscillations and halts execution before the browser thread locks up.

Zero Production Overhead: The entire library is replaced with no-op shims in production builds via environment-aware exports.

I’m trying to bridge the gap between "State Management" and "Signal Processing." I’d love to hear your thoughts on using temporal correlation as a heuristic for architectural debt.

Goal: Ship 1M Lines of Code Daily

2•feastingonslop•6m ago•0 comments

Show HN: Codex-mem, 90% fewer tokens for Codex

https://github.com/StartripAI/codex-mem
1•alfredray•9m ago•0 comments

FastLangML: FastLangML:Context‑aware lang detector for short conversational text

https://github.com/pnrajan/fastlangml
1•sachuin23•12m ago•1 comments

LineageOS 23.2

https://lineageos.org/Changelog-31/
1•pentagrama•15m ago•0 comments

Crypto Deposit Frauds

1•wwdesouza•16m ago•0 comments

Substack makes money from hosting Nazi newsletters

https://www.theguardian.com/media/2026/feb/07/revealed-how-substack-makes-money-from-hosting-nazi...
1•lostlogin•16m ago•0 comments

Framing an LLM as a safety researcher changes its language, not its judgement

https://lab.fukami.eu/LLMAAJ
1•dogacel•19m ago•0 comments

Are there anyone interested about a creator economy startup

1•Nejana•20m ago•0 comments

Show HN: Skill Lab – CLI tool for testing and quality scoring agent skills

https://github.com/8ddieHu0314/Skill-Lab
1•qu4rk5314•21m ago•0 comments

2003: What is Google's Ultimate Goal? [video]

https://www.youtube.com/watch?v=xqdi1xjtys4
1•1659447091•21m ago•0 comments

Roger Ebert Reviews "The Shawshank Redemption"

https://www.rogerebert.com/reviews/great-movie-the-shawshank-redemption-1994
1•monero-xmr•23m ago•0 comments

Busy Months in KDE Linux

https://pointieststick.com/2026/02/06/busy-months-in-kde-linux/
1•todsacerdoti•23m ago•0 comments

Zram as Swap

https://wiki.archlinux.org/title/Zram#Usage_as_swap
1•seansh•36m ago•0 comments

Green’s Dictionary of Slang - Five hundred years of the vulgar tongue

https://greensdictofslang.com/
1•mxfh•38m ago•0 comments

Nvidia CEO Says AI Capital Spending Is Appropriate, Sustainable

https://www.bloomberg.com/news/articles/2026-02-06/nvidia-ceo-says-ai-capital-spending-is-appropr...
1•virgildotcodes•40m ago•2 comments

Show HN: StyloShare – privacy-first anonymous file sharing with zero sign-up

https://www.styloshare.com
1•stylofront•42m ago•0 comments

Part 1 the Persistent Vault Issue: Your Encryption Strategy Has a Shelf Life

1•PhantomKey•46m ago•0 comments

Show HN: Teleop_xr – Modular WebXR solution for bimanual robot teleoperation

https://github.com/qrafty-ai/teleop_xr
1•playercc7•48m ago•1 comments

The Highest Exam: How the Gaokao Shapes China

https://www.lrb.co.uk/the-paper/v48/n02/iza-ding/studying-is-harmful
2•mitchbob•53m ago•1 comments

Open-source framework for tracking prediction accuracy

https://github.com/Creneinc/signal-tracker
1•creneinc•54m ago•0 comments

India's Sarvan AI LLM launches Indic-language focused models

https://x.com/SarvamAI
2•Osiris30•56m ago•0 comments

Show HN: CryptoClaw – open-source AI agent with built-in wallet and DeFi skills

https://github.com/TermiX-official/cryptoclaw
1•cryptoclaw•58m ago•0 comments

ShowHN: Make OpenClaw respond in Scarlett Johansson’s AI Voice from the Film Her

https://twitter.com/sathish316/status/2020116849065971815
1•sathish316•1h ago•2 comments

CReact Version 0.3.0 Released

https://github.com/creact-labs/creact
1•_dcoutinho96•1h ago•0 comments

Show HN: CReact – AI Powered AWS Website Generator

https://github.com/creact-labs/ai-powered-aws-website-generator
1•_dcoutinho96•1h ago•0 comments

The rocky 1960s origins of online dating (2025)

https://www.bbc.com/culture/article/20250206-the-rocky-1960s-origins-of-online-dating
1•1659447091•1h ago•0 comments

Show HN: Agent-fetch – Sandboxed HTTP client with SSRF protection for AI agents

https://github.com/Parassharmaa/agent-fetch
1•paraaz•1h ago•0 comments

Why there is no official statement from Substack about the data leak

https://techcrunch.com/2026/02/05/substack-confirms-data-breach-affecting-email-addresses-and-pho...
13•witnessme•1h ago•4 comments

Effects of Zepbound on Stool Quality

https://twitter.com/ScottHickle/status/2020150085296775300
2•aloukissas•1h ago•1 comments

Show HN: Seedance 2.0 – The Most Powerful AI Video Generator

https://seedance.ai/
2•bigbromaker•1h ago•0 comments