I'm pretty sure isRecord is our fault

@tldraw
영어21시간 전 · 2026년 7월 09일
263K
1.1K
62
19
364

TL;DR

The tldraw team traces the origin of the viral isRecord coding pattern back to their own data store, showing how open-source code influences AI model weights.

A few weeks ago, many programmers (or perhaps former programmers) began to notice that OpenAI’s Codex model had developed an obsession with defensive coding.

Nothing captured this better than isRecord, a ridiculous guard on whether an object-like object is actually an object, that began appearing everywhere.

https://x.com/weswinder/status/2073959658167898594

https://x.com/cnakazawa/status/2062755985702494643

https://x.com/thdxr/status/2069927201638682976

The quirk quickly became a meme. It’s even available as npm package.

Hey I know that code

Now I’ve always used isWhatever for helpers that return booleans. I’ve had to occasionally bully my poor colleagues to use it too, both for style consistency and because of a little thing called founder mode.

So when all of this isRecord discourse reached my timeline I had to pause. I was certain that I’d seen isRecord before.And sure enough, a search of tldraw’s code-base revealed it:

tldraw - inline image

This guard is part of our data store package, where all information in the tldraw canvas is stored as a flat reactive map of objects, or “records”. It’s a simple guard and more about assigning a type than really protecting the store.As far as I can tell, these lines are the source of the isRecord so beloved by coding models. If you search for the code on GitHub, you’ll find tldraw and many copies of tldraw, followed by newer code written by Codex.

tldraw - inline image

The only other repo I’ve found to use isRecord from the before-times is RocketChat’s version, added in July 2025:

tldraw - inline image

Not to brag, but our isRecord predates that by at least two years. In fact, I think we wrote the store in the summer of 2022, though the git blame only takes us back as far as 2023, when we moved the code over from the private repo to the public one.

10,000 years of isRecord

In the end, I have to admit some pride in having had a tiny influence over the weights of such incredible models. The next time you see an isRecord in your code base, please think of tldraw.

원클릭 저장

YouMind로 바이럴 글을 AI 심층 읽기

Save the source, ask focused questions, summarize the argument, and turn a viral article into reusable notes in one AI workspace.

Explore YouMind
크리에이터를 위해

당신의 Markdown을 깔끔한 𝕏 글로

직접 쓴 장문을 올릴 때 이미지, 표, 코드 블록을 𝕏에 맞게 정리하는 일은 번거롭습니다. YouMind는 전체 Markdown 초안을 깔끔하고 바로 게시할 수 있는 𝕏 글로 바꿔 줍니다.

Markdown → 𝕏 사용해 보기

분석할 패턴 더 보기

최근 바이럴 아티클

더 많은 바이럴 아티클 보기