Pavel Grinchenko

Senior Frontend Engineer
Pavel Grinchenko
Background for Pavel Grinchenko

I’m Pavel, a senior frontend engineer at Evil Martians, based in Lisbon. I’ve been writing frontend since the Photoshop era, and that’s where my handle comes from. Ancient, I know.

I build interfaces, component systems, and frontend architecture for projects that expect to still exist next year. I prefer native APIs, keeping business logic out of components, and choosing a stack to fit the project. On one occassion, my preference for native APIs meant taking React out of a site I had shipped myself, and that’s how nanotags was born.

With open source, I care about API design, composability, and good DX, and I love good TypeScript inference. I count bytes for fun. When I solve something other projects could reuse, I ship it as a small library. typed-channel makes postMessage type-safe in about 350 bytes, and it came out of my work on Harmonizer. datavolve upgrades old persisted data in 258 bytes. I also take part in the development of Nano Stores and the ecosystem around it. My nanostores-devtools shows every store in Redux DevTools under the name it has in your code.

HTTPie

Problem

HTTPie, a popular open source API testing tool, was growing from a command-line tool into a web and desktop app. Its users needed to work from several devices at once.

Solution

I worked on the design system, the sync engine, and the data flows, such as collection imports. HTTPie is also where I fell in love with sync engines and reactive stores.

Results

  • Carefully crafted UI system with composable components
  • Fully reactive data flows for collections and sync engine
  • The web and desktop apps share one codebase
HTTPie Desktop and Web app screens: an empty state, a request with its JSON response, and design system components

Aptos Network

Problem

Aptos, a Layer-1 blockchain with $350M in funding, needed a new content marketing site in one month. Its marketing team had to publish content on its own. The date was fixed and the final page designs arrived about a week before launch, so design and development had to run in parallel.

Solution

Ivan Chepurin and I started as a team of two. We brought utilities over from past projects, made the architecture decisions, and laid the ground for a design system on Astro. I implemented the whole integration between the CMS and incremental page rebuilds. When we saw that two people couldn’t hit the date, the modular design let Ivan Eltsov join and take isolated groups of components.

Results

  • aptosnetwork.com launched on the one-month deadline
  • Astro kept most of the site as plain HTML, which later made it quick to remove React
Aptos Network homepage with the headline Move Markets and Stablecoins

nanotags

Problem

Months after the Aptos launch, the site was still shipping React and Ark UI for a mobile menu, a theme toggle, a dropdown, a side panel, and the main navigation. React was the right call under that deadline, but I always planned to come back to it.

Solution

I replaced those components with native Web Components and kept state in Nano Stores. Accessibility was my biggest worry, so I implemented keyboard and focus behavior from the W3C ARIA patterns. The helpers I wrote along the way became nanotags, with reactive props, typed refs and events, and automatic cleanup. It doesn’t use Shadow DOM or a template engine.

Results

  • 100 KB less JavaScript with no functionality lost
  • Faster page load and interactivity on mobile, because there’s no framework runtime to download and run first
  • The core weighs under 2.5 KB, and with Nano Stores a reactive component system costs about 3 KB
Martians in a hot air balloon named Landing dropping sandbags marked 30 kB and 50 kB

Harmonizer

Problem

Anton Lovchikov vibe-coded the first version of Harmonizer, a palette generator built on OKLCH and APCA. The idea held up, but the prototype slowed down in real work. Recalculating a 10×6 palette took 200 ms, and hovering a column re-rendered the whole grid.

Solution

I moved the logic out of React components into signal-based stores, so a change no longer re-renders whole components. The color calculations went to a web worker. Then I restructured the code into a core package that can target several platforms.

Results

  • 60 fps rendering, with no extra re-renders on hover
  • The same core ships as a web app and a Figma plugin
  • The messaging code for the worker and the plugin became typed-channel
Harmonizer color levels, APCA contrast values, and generated palette in dark and light modes

Products

Open source projects

Posts