Cody
banner
codey.bsky.social
Cody
@codey.bsky.social
Principal Engineer at Sanity.io
Reposted by Cody
Wile E. Coyote Finally Kills Road Runner Then Immediately Wishes He Hadn’t
February 2, 2025 at 8:17 AM
'use cache' is FAST 🔥 🔥🔥🔥🔥🔥 It's even faster LIVE ✨ We've been cooking at @sanity.io , give it a try: github.com/sanity-io/ne...
github.com
February 6, 2026 at 3:12 PM
Migrating our largest FOSS repo (over 5k files) from prettier to oxfmt (github.com/sanity-io/sa...), it's 9x faster 🤯
a white and gray cat is sitting on a couch with its mouth open .
Alt: a white and gray cat is sitting on a couch with its mouth open, mind blown at the super fast oxfmt formatter powered by rust .
media.tenor.com
February 3, 2026 at 3:07 PM
Reposted by Cody
🚀pnpm 2025 recap: 2x download growth, new homepage, my first JSNation talk, and v10 feature highlights

pnpm.io/blog/2025/12...
🚀 pnpm in 2025 | pnpm
2025 has been a transformative year for pnpm. While our primary focus was redefining the security model of package management, we also delivered significant improvements in performance and developer e...
pnpm.io
December 29, 2025 at 2:13 PM
Reposted by Cody
If you are running a vulnerable Next.js or RSC app behind Cloudflare or other WAF, but your origin is still accessible directly from the internet then you are not protected! Attackers are iterating IP addresses so you will probably be found. Upgrade right now!
December 8, 2025 at 9:42 AM
A lot of you need to read react.dev/learn/you-mi... and it shows
You Might Not Need an Effect – React
The library for web and native user interfaces
react.dev
November 12, 2025 at 6:18 PM
Reposted by Cody
✨ welcome to @sentry.io, React Compiler ✨
October 17, 2025 at 1:02 PM
I’m extremely excited for how well this new api is shaping up to be. SanityLive on this setup will be S M O O O O T H 😤 🤌🤌🤌🤌🤌🤌
mk.gg Matt Kane @mk.gg · Oct 17
I have a new RFC up for route caching in Astro. It's our answer to ISR etc, but it has some important differences that I think would make it really powerful.

If you saw my talk at ViteConf you will have seen a preview, but this has a lot more detail on implementation and API. I'd love feedback!
Route Caching by ascorbic · Pull Request #1245 · withastro/roadmap
Summary A platform-agnostic route caching API for Astro SSR pages that enables declarative cache control using web standards. Examples Basic route caching --- // src/pages/products/[id].astro impor...
github.com
October 17, 2025 at 8:52 AM
We are so back 🤌
All of the colors are calculated based on a single CSS variable using relative oklch, so you can change the theme with just one line.

--tint: green;

Modern CSS is amazing! 😲
October 16, 2025 at 10:48 AM
Reposted by Cody
Here's the code for my Async React demo:

github.com/rickhanlonii...
GitHub - rickhanlonii/async-react: The final state of the React Conf 2025 Async React talk.
The final state of the React Conf 2025 Async React talk. - rickhanlonii/async-react
github.com
October 15, 2025 at 8:41 PM
Hyped for part 3 of @ricky.fm’s Async React
October 9, 2025 at 6:40 AM
Reposted by Cody
we've started building out an "awesome" list for @e18e.dev 🎉

this should provide a good resource for finding modern libraries and tools. contributions welcome!
GitHub - e18e/awesome-e18e: A curated list of awesome e18e-focused packages
A curated list of awesome e18e-focused packages. Contribute to e18e/awesome-e18e development by creating an account on GitHub.
github.com
October 5, 2025 at 9:57 AM
Last minute tweaks to the slides 🤏 got two looooong flights ahead 😮‍💨
October 5, 2025 at 12:03 PM
Reposted by Cody
We’ve been using the activity API at sanity since it was released as experimental to support multiple Iframes being mounted & unmounted whilst preserving their state & I’m really pleased at how fantastic it’s been.
React 19.2 is now available!

This release includes Activity, useEffectEvent, React Performance Tracks, partial pre-rendering, and more:

react.dev/blog/2025/10...
React 19.2 – React
The library for web and native user interfaces
react.dev
October 2, 2025 at 5:19 AM
Super stoked to come talk about what we’ve learned from using it in production ✨
@codey.bsky.social is giving a talk on React Compiler
September 30, 2025 at 8:02 PM
Reposted by Cody
@codey.bsky.social is giving a talk on React Compiler
September 29, 2025 at 2:23 PM
Reposted by Cody
We're hosting the official @nextjs.org Conf opening party 🎉

Can't make it to our *[NYC] event?
Don't worry—we'll be in SF too!

Oct 21, 7pm-midnight at Southern Pacific Brewing in the Mission.

Great food, drinks, games + the Next.js (and Sanity!) community.

Register below 👇🏻
September 24, 2025 at 7:37 PM
Ok you win, when can we have a client/SSR cache API? 🥺
ricky.fm Ricky @ricky.fm · Sep 15
Most of the people I see excited about the store API should actually be asking for a client/ssr cache API
September 18, 2025 at 11:46 AM
Reposted by Cody
trusted publishing is fantastic for ensuring that the state of a @github.com repo maps to a public package

... but maintainers are still vulnerable to phishing, allowing bypassing it

so: this action fails ci when upgrading to a 'non-provenanced' package
in light of the current supply chain attacks, I've just published a @github.com action to detect packages that _lose_ their provenance.

📦 supports pnpm-lock.yaml, package-lock.json, yarn.lock (v1)
🎨 inline GitHub annotations
✅ JSON output + configurable
💪 published in TS with zero deps
GitHub - danielroe/provenance-action: GitHub Action that detects dependency provenance downgrades from lockfile changes (npm/pnpm/yarn).
GitHub Action that detects dependency provenance downgrades from lockfile changes (npm/pnpm/yarn). - danielroe/provenance-action
github.com
September 16, 2025 at 12:25 PM
Reposted by Cody
Can't believe what I'm reading. Accidentally DDoS yourself because you fetch in useEffect in 2025 is so avoidable 😂

blog.cloudflare.com/deep-dive-in...
September 13, 2025 at 8:26 AM
Reposted by Cody
cool post!
sanity.io Sanity @sanity.io · Sep 11
styled-components maintenance mode doesn't have to mean panic mode.

Our engineer @codey.bsky.social made performant community forks. Linear's already seeing 40% faster renders with zero code changes.

Not a permanent fix, but it buys you time to migrate properly.

www.sanity.io/blog/cut-sty...
styled-components maintenance mode: A 40% faster fork | Sanity
After styled-components entered maintenance mode, we forked it with React 18's useInsertionEffect. Result: 40% faster renders for Linear. Open source solution.
www.sanity.io
September 12, 2025 at 7:29 AM
It's very difficult to get stable repeatable benchmark results for scenarios that tie into React Concurrent mode. The best I've come up with is this one:
- Before concurrent-styled-components.sanity.dev?strategy=ins...
- After concurrent-styled-components.sanity.dev?strategy=use...
September 11, 2025 at 7:15 PM
Great read! Would love to see your opinion @simeongriggs.dev on using useTransition() to render spinners where suspenseful actions are triggered. Changing a search filter, clicking on a row that opens a detail view, etc
September 6, 2025 at 9:04 AM