Project archive: systems engineering case studies

A collection of product engineering case studies: cloud consoles, realtime systems, and Web3 platforms by Sangeet Banerjee.

Back to Sangeet Banerjee homepage

Statera: project facts

Project
Statera
Period
2024
Role
Creator · Systems Architect
Summary
Frontend state management SDK
Description
A tiny, super-fast state management library I built as an experiment. Its only 169 bytes gzipped, has high cache efficiency, and was designed to see how small and clean a React state library could be while still being practical for real projects.
Domains
SDK Design, Performance Engineering, DX, Runtime Design
Technologies
TypeScript, npm, React, State Management
Ownership
The entire library design, implementation, and packaging
Ownership
React hook integration and render-optimization logic
Ownership
npm publishing, TypeScript definitions, and build scripts
Ownership
Documentation and sample project code
Learning
I learned that you can get most of the value of state libraries from surprisingly simple ideas.
Professional signal
I like looking at core web problems and seeing if I can solve them with less code and fewer dependencies.

Statera

frontend state management SDK

Statera
Overview

a tiny, super-fast state management library I built as an experiment. its only 169 bytes gzipped, has high cache efficiency, and was designed to see how small and clean a React state library could be while still being practical for real projects.

Why this existed

i wanted to see how small state management could become before becoming painful.

How I approached it

i removed almost everything that wasnt necessary. then I kept reducing, testing, and simplifying until the API felt small but still useful.

What changed

i published it to npm, and it ended up at just 169 bytes. it was a fun project that proved you dont always need massive libraries to handle state efficiently in React.

Year2024
RoleCreator · Systems Architect
Size169B Gzip
Cache Efficiency87%+
What I actually owned
  • ·the entire library design, implementation, and packaging
  • ·react hook integration and render-optimization logic
  • ·npm publishing, TypeScript definitions, and build scripts
  • ·documentation and sample project code
What became difficult

standard state libraries like Redux or even Zustand can feel heavy or require too much setup for simple features. i wanted to see if I could write a state library that has zero boilerplate, loads instantly, and avoids unnecessary re-renders without making developers write complex config code.

What I learned

i learned that you can get most of the value of state libraries from surprisingly simple ideas.

What surprised me

i thought writing the logic would be difficult. keeping the size tiny became the real challenge.

Before → After
Before
  • ·heavy bundle overhead
  • ·excessive boilerplate setup
  • ·unnecessary render loops
After
  • ·sub-200 byte runtime
  • ·zero boilerplate syntax
  • ·focused key-based rendering
Small opinion

most libraries become larger because edge cases slowly pile up.

What I would improve now

i would add built-in support for persisting state to localStorage, but without blowing up the bundle size. id also look into supporting Reacts new transitions API directly inside the store hook.

Random things I remember
  • ·i spent three hours refactoring a single helper function just to save 12 bytes of bundle size.
  • ·it was incredibly satisfying when the build command finally outputted 169B.
What this project says about me

i like looking at core web problems and seeing if I can solve them with less code and fewer dependencies.

Built with
TypeScript
npm
React
State Management
Domains
SDK Design
Performance Engineering
DX
Runtime Design