Cody's Avatar

Cody

@codey.bsky.social

Principal Engineer at Sanity.io

380 Followers  |  195 Following  |  127 Posts  |  Joined: 06.06.2023  |  2.1481

Latest posts by codey.bsky.social on Bluesky

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!

08.12.2025 09:42 โ€” ๐Ÿ‘ 18    ๐Ÿ” 4    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0
Preview
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...

Finally got around to digest the RFC and share my thoughts github.com/withastro/ro...

14.11.2025 16:12 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

It's ok we're all sinners here

12.11.2025 18:18 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
You Might Not Need an Effect โ€“ React The library for web and native user interfaces

A lot of you need to read react.dev/learn/you-mi... and it shows

12.11.2025 18:18 โ€” ๐Ÿ‘ 8    ๐Ÿ” 3    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 2

Unfortunately unlikely, by the time I started high school my family had moved to Lofoten ๐Ÿ˜”

22.10.2025 11:28 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

The city of where I was born! ๐Ÿฅฐ

22.10.2025 10:48 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Gotcha. What Iโ€™ve skimmed so far looks on target. Iโ€™ll deep dive and share feedback next week ๐Ÿ™Œ

17.10.2025 14:31 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Component Tree highlighted with โœจ memo for components that have been auto-memoized by the compiler

Component Tree highlighted with โœจ memo for components that have been auto-memoized by the compiler

โœจ welcome to @sentry.io, React Compiler โœจ

17.10.2025 13:02 โ€” ๐Ÿ‘ 45    ๐Ÿ” 1    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

For sure, hoping I'll have time next week to dive in. Do you have an idea of when there's a POC we can test drive? ๐Ÿ™Œ

17.10.2025 13:01 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

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 ๐Ÿ˜ค ๐ŸคŒ๐ŸคŒ๐ŸคŒ๐ŸคŒ๐ŸคŒ๐ŸคŒ

17.10.2025 08:52 โ€” ๐Ÿ‘ 5    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

We are so back ๐ŸคŒ

16.10.2025 10:48 โ€” ๐Ÿ‘ 5    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
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

Here's the code for my Async React demo:

github.com/rickhanlonii...

15.10.2025 20:41 โ€” ๐Ÿ‘ 85    ๐Ÿ” 12    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 1
Picture of Ricky and Cody at the chandelier bar

Picture of Ricky and Cody at the chandelier bar

Hyped for part 3 of @ricky.fmโ€™s Async React

09.10.2025 06:40 โ€” ๐Ÿ‘ 19    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Glad you loved it! ๐Ÿ’– happy birthday ๐Ÿฅณ

07.10.2025 20:45 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
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.

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!

05.10.2025 09:57 โ€” ๐Ÿ‘ 44    ๐Ÿ” 8    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Last minute tweaks to the slides ๐Ÿค got two looooong flights ahead ๐Ÿ˜ฎโ€๐Ÿ’จ

05.10.2025 12:03 โ€” ๐Ÿ‘ 11    ๐Ÿ” 1    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

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.

02.10.2025 05:19 โ€” ๐Ÿ‘ 8    ๐Ÿ” 1    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Super stoked to come talk about what weโ€™ve learned from using it in production โœจ

30.09.2025 20:02 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

@codey.bsky.social is giving a talk on React Compiler

29.09.2025 14:23 โ€” ๐Ÿ‘ 12    ๐Ÿ” 1    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 2

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 ๐Ÿ‘‡๐Ÿป

24.09.2025 19:37 โ€” ๐Ÿ‘ 3    ๐Ÿ” 3    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

More context here bsky.app/profile/rick...

19.09.2025 17:43 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
phil ๐Ÿซ  on X: "amazing to still see styled-components hidden in some codebases ๐Ÿ‘€ lots of differences from modern CSS approaches, but SC's ordering guarantees are still kinda neat also CSS-in-JS's perf would be even worse if this issue wouldn't have been fixed๐Ÿ˜‚ https://t.co/oTy95EZkp2" / X amazing to still see styled-components hidden in some codebases ๐Ÿ‘€ lots of differences from modern CSS approaches, but SC's ordering guarantees are still kinda neat also CSS-in-JS's perf would be even worse if this issue wouldn't have been fixed๐Ÿ˜‚ https://t.co/oTy95EZkp2

@kitten.sh re x.com/_philpl/stat... it explains why I could never reproduce github.com/reactwg/reac... nor react.dev/reference/re.... ๐Ÿคฏ I'd love to chat SC history with you if we cross paths, my interest in SC history is maybe above average (github.com/sanity-io/sa...) ๐Ÿ˜‚ It's such an impressive proj

19.09.2025 16:55 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Ok you win, when can we have a client/SSR cache API? ๐Ÿฅบ

18.09.2025 11:46 โ€” ๐Ÿ‘ 7    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
Mitigating supply chain attacks | pnpm Sometimes npm packages are compromised and published with malware. Luckily, there are companies like [Socket], [Snyk], and [Aikido] that detect these compromised packages early. The npm registry usually removes the affected versions within hours. However, there is always a window of time between when the malware is published and when it is detected, during which you could be exposed. Fortunately, there are some things you can do with pnpm to minimize the risks.

Published an article about mitigating supply chain attacks with pnpm
pnpm.io/supply-chain...

16.09.2025 08:32 โ€” ๐Ÿ‘ 56    ๐Ÿ” 12    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 1

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

16.09.2025 12:25 โ€” ๐Ÿ‘ 28    ๐Ÿ” 3    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0
Preview
React Compiler oxc plugin ยท Issue #10048 ยท oxc-project/oxc I wanted to open an issue capturing some of our past discussion on adding support for React Compiler as an oxc plugin. For context, the React team reached out to both the swc and oxc projects a few...

Iโ€™m not aware of any limits to i18n nor css-in-js with the compiler?
Could you show me some examples?
On performance, long term this is likely improving github.com/oxc-project/... and short term next.js and rolldown are already implementing strategies to only run babel if the compiler is needed

16.09.2025 08:18 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
React Compiler's memoization prevents fallbacks by stipsan ยท Pull Request #2 ยท jantimon/react-hydration-rules This is not meant to be merged as is, just sharing the findings that with memoization by React Compiler enabled it seems to pass all the tests ๐Ÿคฏ

Fascinating, it looks like when using React Compiler memoization is able to save us from these edge cases ๐Ÿคฏ github.com/jantimon/rea...

15.09.2025 19:57 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

I would love to learn more about this. Is there a sandbox or gist I could look at that demonstrates this? ๐Ÿ™Œ

15.09.2025 16:50 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0
The API calls were managed by a React useEffect hook, but we mistakenly included a problematic object in its dependency array.

The API calls were managed by a React useEffect hook, but we mistakenly included a problematic object in its dependency array.

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...

13.09.2025 08:26 โ€” ๐Ÿ‘ 128    ๐Ÿ” 14    ๐Ÿ’ฌ 6    ๐Ÿ“Œ 8

cool post!

12.09.2025 07:29 โ€” ๐Ÿ‘ 112    ๐Ÿ” 9    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0

@codey is following 20 prominent accounts