Daniel Fry (@danfrydev) header
Daniel Fry (@danfrydev) profile picture

Software engineer in London. TypeScript and AI. VP SWE @jpmorgan @chase_uk

London
Joined February 2022
Photo by Daniel Fry (@danfrydev)Photo by Daniel Fry (@danfrydev)Photo by Daniel Fry (@danfrydev)Photo by Daniel Fry (@danfrydev)Photo by Daniel Fry (@danfrydev)Photo by Daniel Fry (@danfrydev)Photo by Daniel Fry (@danfrydev)Photo by Daniel Fry (@danfrydev)Photo by Daniel Fry (@danfrydev)Photo by Daniel Fry (@danfrydev)
bun.sh vs create-react-app 🤯 #bunjs
123
712
202
5,157
TypeScript can check a credit card number's checksum (Luhn). One wrong digit is a compile error, no runtime code.
2
1
16
1,008
#ggg is now a compile error. TypeScript types can check hex colors, alpha included, no runtime code.
1
3
305
How it works and its limits (string literals only, hex only): github.com/danfry1/typescrip… Playground: typescriptlang.org/play?#cod…
48
I built a Spotify client for the terminal. waxon has vim keys, album art and synced lyrics, and it can play music by itself or drive the Spotify app. Free and open source. Try the demo in your browser 👇
5
1
6
2,669
I read through every note and routine before using a Grok Bot template, and I'll probably keep doing it. But does @bot check templates for anything sketchy, or should everyone be reviewing them before they import?
1
119
My Fire TV was watching what I watch. A built-in service fingerprints what's on screen, even through HDMI, and sends Amazon the channels, shows and ads you watched. Joined the debloat trend and switched it off, plus 28 other packages, over ADB.
1
3
284
Amazon's own page on it (ACR): amazon.com/gp/help/customer/… There's a toggle in Settings > Preferences > Privacy Settings too. I disabled the package as well: adb shell pm disable-user --user 0 com.amazon.tv.acr
66
Typo a CSS module class and tsc fails. No codegen, no .d.ts files. typed-css-imports uses content mappers from the TypeScript 7.1 beta, so styles.buttn is an error in your editor and in CI. Completions update as you type in the CSS file. Sass works too. pnpm add -D typed-css-imports [email protected] github.com/danfry1/typed-css…
2
4
340
building on this: port 65536 is now a compile error. no runtime check, no recursion 🧱
turns out TypeScript types can enforce a min and max string length too
1
2
186
turns out TypeScript types can enforce a min and max string length too
turns out TypeScript types can enforce an exact string length
4
1
7
601
Built an open benchmark off the back of this: 5 typescript checkers, 3 real projects, raw output behind every result Controlled numbers come in under my quick first run. tsc-ts is 4.5x faster than tsgo on type-fest at defaults, 3.4x with both at 10 threads. ts-checker-bench.danfry.dev
TypeScript is 6 times faster than go[*]
3
1
12
1,224
tsgo 7.0.2 as the reference, plus tsc-ts, tsc-rs, tsrs and bun check type-fest, outline and vscode, each pinned to a commit, fresh process every run, no incremental cache tsc-ts 0.0.4 and tsrs 0.18 shipped today, after this ran. rerun with those coming
1
139
turns out TypeScript types can enforce an exact string length
8
4
2
145
122,405
nitter.cf/techsavvytravvy/status… builds on @techsavvytravvy's non-empty string trick. his gives you a minimum length, the `"" & String` end marker gives you an exact one.
i found a way to represent a non-empty string without branded types and without using `any`
2
812
love this effect in @opencode
3
1
37
13,087
Have also really been enjoying using the North Mini Code model from @cohere
1
289
Wild to think we might be heading toward a “modding” era of the web. Companies ship APIs, and the community builds better frontends on top - just like community-built game worlds. Frontend as an ecosystem, not a product.
i had opus credits to burn so i recreated github with instant navigation and the ui that i would want you can use it today fastergh.com, most of your workflow should work on it, private repos are supported, and it's open source
2
228
🚀
Can't emphasize enough how crazy good the queryOptions API is for TypeScript users. Here's a short clip of me showing what it can do on a live stream (you can tell it's from last year by the length of my hair 😂). Direct cache operations are finally really type-safe 🎉
1
183
Replying to @bluwyoo
@bluwyoo does a great job contributing to multiple open source communities including @vite_js, @sveltejs and @astrodotbuild, consider sponsoring his patreon to stay up to date with the cool stuff he's working on! patreon.com/bluwy?utm_medium…
1
3
Had a great time at #SvelteSummit and met some really amazing people, was also fortunate to get the chance to meet some of the folks who have had a major influence in my coding journey thus far - @Rich_Harris && @swyx - the future of webdev is looking bright! – at Stockholm, Sweden
1
20
Just got my ticket for #nextjsconf by @vercel, claim yours! Let's make the Web. Faster. nextjs.org/conf/tickets/oct2…
Replying to @fig
@fig just continues to impress
Launching so much cool stuff in August. This is a Fig Workflow.
1
1
9