Luke Edwards Profile Banner
Luke Edwards Profile
Luke Edwards

@lukeed05

5,033
Followers
266
Following
597
Media
8,120
Statuses

Dogs & Devtools @GitHubNext | Previously @Cloudflare

San Francisco, CA
Joined January 2013
Don't wanna be here? Send us removal request.
Pinned Tweet
@lukeed05
Luke Edwards
1 year
✨Introducing – the easy, lightweight, and affordable OAuth solution that works with any tech stack! 🔒 Privacy-first, stores nothing ⚖️ Client SDK is 1.5 kB, fully loaded 💸 Affordable at any scale 💄 Fully customizable 🌎 Globally quick 👉 @btn_social
36
86
561
@lukeed05
Luke Edwards
6 years
Friends, meet "PWA" – the universal PWA builder 🎉🎉🎉 Still very WIP, but ready for other devs. So far, PWA is: 🌎Framework agnostic 🔌Pluggable & Extensible 🚫Zero-config, unless needed 🎊Capable of automatic code-splitting Repo:
24
429
2K
@lukeed05
Luke Edwards
1 month
Introducing `tschema` — a tiny (359b) utility to build JSON schema types ~! 🌴 fully tree-shakable 🚀 very performant 🧐 static TS types Useful for producing JSON schema definitions; eg for OpenAI tool-calling definitions. Validators coming 🔜 GitHub:
Tweet media one
Tweet media two
Tweet media three
Tweet media four
27
68
661
@lukeed05
Luke Edwards
7 years
It's Monday~! Polished up a module this weekend for you fine folks! 🤠 Introducing 🧦 Sockette, the cutest little WebSocket wrapper 🤝 Auto-reconnect to server ♻️ Reuse your WebSocket configuration / hooks 🔧 Configure reconnect behavior 🔍 340 bytes
Tweet media one
14
187
750
@lukeed05
Luke Edwards
6 years
Today I found out that nearly all browsers have an `Intl` object that handles formatting for DateTime, Currency, Number, and Pluralization! 🤯 My examples here are pretty simple, but the formatters give you full control 💯
Tweet media one
Tweet media two
8
189
583
@lukeed05
Luke Edwards
4 years
Introducing `uvu` – an ultra fast & lightweight test runner~! 🚀 🔸browser-compatible 🔹supports async tests 🔸can support native ESM 🔹allows `node test.js` execution 🔸optional `uvu/assert` package I have projects w/ 120+ tests finish in 6ms. GitHub:
26
117
583
@lukeed05
Luke Edwards
5 years
Introducing `dimport`, an ESModule polyfill allowing you to run `import`, `export`, and `import()` in any browser – even IE! It offers 3 modes, with varying backwards reach. They vary in size from 675B to 1.14 kB 🙂 GitHub: Demo:
Tweet media one
10
170
547
@lukeed05
Luke Edwards
5 years
Introducing `klona` – a tiny (281B) and fast utility to deep clone Arrays, Objects, Dates, RegExps & more~! It works in Node & all browsers, and so far it's the fastest version I've found. GitHub: PS: @_developit totally inspired me to do this yesterday
Tweet media one
Tweet media two
8
106
523
@lukeed05
Luke Edwards
3 years
PSA, I guess 😔 Node.js HTTP server performance results: Node v10.13.0 – 49.8k req/sec Node v12.18.4 – 32.1k req/sec Node v14.15.3 – 31.8k req/sec Node v16.2.0 – 37.1k req/sec Everything running the code in the screenshot. Benchmark: wrk -t4 -c4 -d10s http://localhost:3000/
Tweet media one
21
70
503
@lukeed05
Luke Edwards
4 years
Excited to announce `rosetta` – a general purpose internationalization (i18n) library in 292 bytes! Yes, you read that correctly 🙃 Works in Node.js & all modern browsers. Also includes a "debug" mode that shouts on undefined key access. 🥳 GitHub:
Tweet media one
Tweet media two
12
82
499
@lukeed05
Luke Edwards
7 years
What's as easy as Express but as fast as Node's HTTP server? 📢 Introducing.... Polka! A micro web server so fast, it'll make you dance! 👯‍♀️ GH: 🗺️ Routing 🔀 Middleware ✅ Express compat ⚡️ 33-50% boost for simple apps 👌 Async OK 🔍 ~100 LOC
Tweet media one
Tweet media two
Tweet media three
20
115
475
@lukeed05
Luke Edwards
3 years
Announcing `worktop`, the next-gen web framework for Cloudflare Workers!! 🥳😍 It's like a Polka/Express/Fastify, but for the Workers platform 🔸1st-class TypeScript support 🔹Submodules for à la carte extras 🔸Request/Response handlers 🔹Routes GitHub:
Tweet media one
Tweet media two
15
81
463
@lukeed05
Luke Edwards
5 years
Just released `calendarize` into the wild – a tiny (196B) utility for generating calendar views for dates. It returns an array of Week arrays, where `index: 0` is Sunday. You can apply & swap custom labels instantly! Demo: GitHub:
Tweet media one
Tweet media two
Tweet media three
12
59
444
@lukeed05
Luke Edwards
5 months
Announcing `fetch-event-stream` 🥳 A tiny (745b) utility to handle Server-Sent Events via `fetch` and/or the Web Streams APIs 🔹Supports all JS runtimes 🔸Allows WebWorker / ServiceWorker usage 🔹Accepts AbortController for cancellable streams GitHub:
Tweet media one
Tweet media two
12
57
447
@lukeed05
Luke Edwards
3 years
Introducing `tsm` – TypeScript Module Loader~! 🎉 Supports: 🔹`tsm <file>` usage, like `node` 🔸`--loader tsm` usage for ESM hooks 🔹`--require tsm` for CommonJS hooks 🆕 the ".mts" and ".cts" extensions 🔧 optional per-extension config file GitHub:
Tweet media one
11
61
398
@lukeed05
Luke Edwards
8 months
So 2023 was a good year for the `clsx` module 😊 It's become a standard in UI kits like @shadcn -ui, @MUI_hq , and is used by ~2.5M projects according to GitHub 🤯 Thank you all so much. Thrilled it's been useful! I spent some time studying its usage & found that most of you use
Tweet media one
Tweet media two
22
22
372
@lukeed05
Luke Edwards
8 months
It happened 😅
Tweet media one
25
4
339
@lukeed05
Luke Edwards
8 months
GitHub changed my life. (announcement below) Until I discovered GitHub, I was learning how to code by buying WordPress themes & studying/breaking source code. It was slow and expensive, but I thought it was the only way forward without school. I literally couldnt believe a
49
10
336
@lukeed05
Luke Edwards
4 years
Released `astray` – a tiny (1kB) and fast utility that allows you to traverse an AST without being led astray 🤪 Its API is like `babel/traverse` – allowing you to pass & track state, modify the AST directly, collect bindings information, etc... GitHub:
Tweet media one
Tweet media two
Tweet media three
10
53
324
@lukeed05
Luke Edwards
3 years
Today I have a different kind of announcement... 😁 I've officially joined the @CloudflareDev team as a Developer Advocate!! 🥳🎉 It's no secret that I've been a fan & a happy user of what this team & company has built. Now I have an excuse to talk about it all a bit more! 😇
Tweet media one
43
8
322
@lukeed05
Luke Edwards
8 months
Introducing ✨ A free tool & and badge service to easily analyze all licenses involved in a package's dependency graph. You may also upload a `package.json` file to generate a custom report for your project! (Video to follow)
Tweet media one
Tweet media two
Tweet media three
10
55
306
@lukeed05
Luke Edwards
4 years
Introducing Vegemite, a Pub/Sub state manager you'll love... or hate 🔸Familiar API 🔹Composable Actions 🔸Full TypeScript Support 🔹Immutable state updates 🔸623 bytes, with dependencies See "/examples" for TypeScript, Preact, and Svelte demos GitHub:
Tweet media one
Tweet media two
15
52
288
@lukeed05
Luke Edwards
7 years
Published `deepset`, a tiny (145b) utility for safely writing deep Object values! 💡It's the inverse of @_developit 's `dlv` module Repo:
Tweet media one
12
56
273
@lukeed05
Luke Edwards
7 days
For a while now, @boshen_c has been crushing it, setting the foundation for the next generation of JS tooling. Spark Notes: (actually tho) OXC is a full ecosystem of bundler / compiler primitives: AST, parser, linter, resolver, transformer, minifier, etc. These all: ▸ are
Tweet media one
@boshen_c
Boshen
7 days
Thank you for the sponsorship @lukeed05 , much appreciated 🙇‍♂️
Tweet media one
0
1
49
5
44
279
@lukeed05
Luke Edwards
5 months
A few of you noticed that this module was fully written, tested, built, and published using @deno_land .. this was my first time fully leaning into the ecosystem and I wanted to share my experience. 🧵 > TLDR; it's new (to me) and so required a small transition but the Deno
@lukeed05
Luke Edwards
5 months
Announcing `fetch-event-stream` 🥳 A tiny (745b) utility to handle Server-Sent Events via `fetch` and/or the Web Streams APIs 🔹Supports all JS runtimes 🔸Allows WebWorker / ServiceWorker usage 🔹Accepts AbortController for cancellable streams GitHub:
Tweet media one
Tweet media two
12
57
447
1
40
253
@lukeed05
Luke Edwards
2 years
✨LIFE UPDATE😂 Today is my last day at Cloudflare Dunno where I'm off to next (DMs open😉) but I'm certain that I was incredibly lucky to work & hang out w/ an amazing group of kind, talented, & caring ~people~ friends 💙 @CloudflareDev Thanks for the laughs & good times🥲💌🏆
20
4
251
@lukeed05
Luke Edwards
4 years
Introducing `watchlist` – a simple CLI (and util) to recursively watch a list of directories & run a command/callback when their contents change 🧐 Perfect attaching a "watch" feature to your linters, test runners (like `uvu`), etc. GitHub:
Tweet media one
Tweet media two
Tweet media three
8
30
223
@lukeed05
Luke Edwards
2 years
A type-only CRON expression parser 🤪 Generates a human-readable string for any valid cron schedule expression Gist: (Playground link in gist & in next tweet, hopefully)
Tweet media one
11
17
216
@lukeed05
Luke Edwards
6 years
Release Day! Time to share `httpie` w/ you ~! Promise-based HTTP requests Automatically handles JSON requests and responses Extremely lightweight w/ no dependencies – 544 bytes! Includes aliases for common HTTP verbs: get, post, put, patch, and del Repo:
Tweet media one
7
44
204
@lukeed05
Luke Edwards
3 years
As of this weekend, you can now use `tsm` as a shebang interepreter! AKA, with `tsm` installed globally, you can write & run TypeScript files – even with `import` support – as bash scripts 🤓🎉 Example:
Tweet media one
6
30
186
@lukeed05
Luke Edwards
5 years
Released `foid` last night – a tiny (134B) and fast utility to generate IDs (or any string) of fixed length GitHub:
Tweet media one
Tweet media two
8
38
186
@lukeed05
Luke Edwards
11 months
Svelte has fucked me up for the last several years. I actually don't think I can React anymore
19
5
177
@lukeed05
Luke Edwards
9 months
Fully ported from shadcn-ui (React) to shadcn-svelte! Thank you @shadcn for having created such a great UI kit and making sense of Tailwind for most of us 💙 Altho as great as it is, Svelte truly did ruin me & I can never not use it anymore. So a massive thanks to @huntabyte
Tweet media one
@lukeed05
Luke Edwards
11 months
Svelte has fucked me up for the last several years. I actually don't think I can React anymore
19
5
177
11
11
175
@lukeed05
Luke Edwards
7 years
Over the weekend, I put the finishing touches on a new tool~! Introducing Sade 🎶, yet another CLI builder that's smooth as butter. 😁 It's fast AF & focused on automatic help text generation. Check it out~!
Tweet media one
Tweet media two
9
29
172
@lukeed05
Luke Edwards
6 years
Welcome Navaid into the world~! ☸️ It's the (850-byte) router I use w/ any Vanilla or Svelte app & now it's time to share. Image #1 is general info. Image #2 is @sveltejs w/ 404 handling & auto code-splitting via webpack 🎉 > Repo:
Tweet media one
Tweet media two
9
36
166
@lukeed05
Luke Edwards
3 years
It's been a while since the last Release Tuesday, so... Introducing `tempura` – a light, crispy, and delicious template engine 🍤 🔹Very lightweight (1.2kB) 🔸Super performant 🔹Familiar handlebar syntax 🔸Supports custom directives GitHub:
Tweet media one
Tweet media two
Tweet media three
5
17
162
@lukeed05
Luke Edwards
5 years
Do you like Svelte? Interested in Cloudflare Workers? Then this template is for you: Svelte SSR inside a Worker 🎉 Repo: Live Demo:
Tweet media one
10
28
160
@lukeed05
Luke Edwards
4 years
Released `flattie` – a tiny (187B) and extremely fast utility to recursively squash an Object/Array into a flat object. Keys from multiple levels are joined using a customizable glue (default is ".") GitHub:
Tweet media one
Tweet media two
6
25
143
@lukeed05
Luke Edwards
7 years
Have you ever stopped to think how incredibly strange (and lucky) we are for having "open source"? I mean, it's not like plumbers or lawyers stop what they're doing and just hand over hours of work/research to a complete stranger for free. We are pretty cool 😎 but strange, lol
4
47
132
@lukeed05
Luke Edwards
6 years
📣 Release Day! Put together "kleur" over the weekend, the fastest ANSI color formatter for Node to date! Check out the feature list: > TLDR: basically an optimized "ansi-colors" w/o symbols & bright colors And of course, screenshot made w/ kleur 😁
Tweet media one
6
24
132
@lukeed05
Luke Edwards
3 years
Released `mrmime` into the wild 🤡 (( Yes, like the Pokemon )) It's a 2.8kb utility/dictionary for getting the MIME type from an extension or filename. 🔸Supports native ESM and Deno 🔹Omits experimental/vendor-only types 🔸Customizable 🔹Fast GitHub:
Tweet media one
Tweet media two
4
12
129
@lukeed05
Luke Edwards
5 years
Introducing `wrr` – a tiny (148B) weighted round robin utility~! 🎉 Weighted round robins are generally for load-balancing but you can use `wrr` anywhere you'd want a weighted/skewed randomizer. GitHub:
Tweet media one
3
21
116
@lukeed05
Luke Edwards
6 years
I felt like `lru-cache` needed some ES6 lovin' 😘 Turns out that `Map` replaces most of the original source! 👉 Introducing `tmp-cache`, a LRU cache manager in 35 lines of code~ Repo:
Tweet media one
2
13
110
@lukeed05
Luke Edwards
1 month
My (somewhat) hidden favorite bit of `tschema` is its CI and release pipeline. I'll probably reuse this in modules to come 😍 I have: - source is @deno_land powered --> native TypeScript --> lint, type check, auto fmt, auto-docs, test, etc - oxc-transform generates the .d.ts &
Tweet media one
@lukeed05
Luke Edwards
1 month
Introducing `tschema` — a tiny (359b) utility to build JSON schema types ~! 🌴 fully tree-shakable 🚀 very performant 🧐 static TS types Useful for producing JSON schema definitions; eg for OpenAI tool-calling definitions. Validators coming 🔜 GitHub:
Tweet media one
Tweet media two
Tweet media three
Tweet media four
27
68
661
3
15
108
@lukeed05
Luke Edwards
5 years
Just released `sublet`, a tiny library that allows you subscribe functions to the data they care about! It's reactive, so any changes made to the binding will trigger the subscribed function automatically. Basic example below, another to follow! Repo:
Tweet media one
Tweet media two
5
15
106
@lukeed05
Luke Edwards
3 years
Multi-regional, low-latency storage. Zero egress charges. Backed by Durable Objects and direct integration with Workers, the fastest global edge compute platform. The Cloudflare Stack is waiting for you.
@Cloudflare
Cloudflare
3 years
Announcing Cloudflare R2 Storage: Rapid and Reliable Object Storage, minus the egress fees. #BirthdayWeek 🎂
46
165
651
4
17
106
@lukeed05
Luke Edwards
3 years
I joined Cloudflare wanting to build this because in consulting/private chats, only a few people at a time got to see & experience the magic that I knew was there. This project is fully open-sourced & will continue to be built in public so that *everyone* can see the magic now!
@Cloudflare
Cloudflare
3 years
We are developing an example feature-complete SaaS application that will be built entirely on the Cloudflare stack. #FullStackWeek 💻
7
42
253
8
7
97
@lukeed05
Luke Edwards
3 years
New Year, New `worktop` deploy target~! 🍾 Worktop is doubling down on being platform-agnostic. It always supported the Cloudflare Workers *and* (web) Service Worker targets... but now it also adds support for Deno Deploy! (CFW still the primary/default) Up next: Node.js 😏
Tweet media one
Tweet media two
Tweet media three
2
11
98
@lukeed05
Luke Edwards
5 years
Released `saturated` over the weekend, which is a ~200B utility to enqueue items for batch/bulk-processing. It will wait X milliseconds or until it has Y items in queue – whichever comes first. GitHub:
Tweet media one
1
16
97
@lukeed05
Luke Edwards
6 years
Got my act together & wrapped up the <form/> serializer & validator I've used in client projects for years now 🕰️ Here is `formee` – a 532B "vanilla" form util that's tree-shakeable & compatible with any UI framework Repo: Demo:
Tweet media one
2
23
93
@lukeed05
Luke Edwards
4 years
Call me crazy, but... Introducing `hexoid` – (yet another) tiny (190B) and extremely! fast utility to generate IDs of fixed length. It has a different API than `uid` as it's meant for high-performance and long-lived reuse. GitHub:
Tweet media one
Tweet media two
3
15
94
@lukeed05
Luke Edwards
2 years
yo is insanely good
4
9
91
@lukeed05
Luke Edwards
5 years
🆕`throttles` – a tiny utility for regulating the execution rate of your functions. Ships with two modes: ▫️single (139B) for single queues ▫️priority (204B) for managing low-vs-high priority items GitHub:
Tweet media one
Tweet media two
3
14
84
@lukeed05
Luke Edwards
7 years
Put together a Webpack plugin for pretty-printed messages & errors! 🦋 GitHub:
Tweet media one
Tweet media two
3
20
85
@lukeed05
Luke Edwards
3 years
Stumbled across this TS trick: You can use `{ toString(): string }` for a value type requirement to mean "anything that isn't null or undefined" This can be useful for functions that always coerce an input to string (eg, Headers.set does this)
2
7
82
@lukeed05
Luke Edwards
3 years
Generally I don't pay attention to downloads, but `worktop` crossed the 1,000 monthly downloads threshold for my birthday 😄🤓 Happy to see more people getting started w/ Workers!
Tweet media one
10
3
84
@lukeed05
Luke Edwards
3 years
🆕 SvelteKit adapter for Cloudflare Pages is now available! 🥳 You keep all of SvelteKit & gain all of Pages' benefits: automatic deploys, preview deployments, instant rollbacks, global/edge rollout, etc BIG shoutout to @evilpingwin for the adapter 🐧
7
12
81
@lukeed05
Luke Edwards
7 years
Dunno how your 2018 is going so far, but @_developit currently owns 4 out of the 10 trending JavaScript repos. 😮 #nextlevel
7
12
80
@lukeed05
Luke Edwards
7 years
When building modules, I start by writing its README's "usage" section to define how I want to use it. Helps with its clarity, simplicity, and me with staying focused~! ⚡️
6
7
81
@lukeed05
Luke Edwards
4 years
So, I've gone back & forth on this for a looong time. I'm still not 100% comfortable with it 😬 but there's so much OSS left in me & I need the opportunity to get it all out. Please consider sponsoring my future/past work on GitHub if able 🙇‍♂️ Thank you 🙂
1
18
78
@lukeed05
Luke Edwards
6 years
NEW `ganalytics @3 .1.0` is out 🎉 It'd been 9 months, needed some love... 👉 Includes option to skip the `pageview` when initialized 🤜 Using `new` is no longer necessary 💯 Removed ~100 bytes (20%); now 323B 🔗 Available on Notes:
2
9
78
@lukeed05
Luke Edwards
4 years
Following yesterday's update, today I released `uid @2 .0.0` which is 4 - 15x faster than previous version! 🎉 🔸 Offers separate `uid/secure` mode 🔹 Still between 130B and 205B (gzip) 🔸 Supports native Node.js ESM 🔹 Works in Node & browsers Notes:
Tweet media one
Tweet media two
5
6
75
@lukeed05
Luke Edwards
4 years
Between `httpie` and `redaxios`, there's zero reason to have your HTTP abstractions cost more than 1kB. Solved.
@_developit
Jason Miller 🦊⚛
4 years
Redaxios: axios for the browser, 800b and uses fetch
Tweet media one
26
223
1K
2
5
74
@lukeed05
Luke Edwards
3 years
So, the last few months have been rough for me. I've been (mostly) absent because my capacity & focus were dwindling – and, at times, zero. Happy to report that I feel like I'm over the hump & regaining *some* normalcy. Still not 100%, but there's definitely been progress! (1/2)
3
0
72
@lukeed05
Luke Edwards
4 years
I put together a GitHub template repo for authoring `npm` modules with TypeScript. It sets up: 🔹ESM, CommonJS, and UMD outputs 🔸generation of type definitions 🔹CI thru GitHub Actions 🔸codecov w/ reporting 🔹an example module w/ tests 👉
5
19
69
@lukeed05
Luke Edwards
5 years
Quick library over the weekend 👇 Semiver – a tiny (153B) utility to compare semver strings, including support for pre-release/version suffixes! GitHub:
Tweet media one
3
16
70
@lukeed05
Luke Edwards
3 years
Svelte + Tauri = Power Couple 🤓
@css
CSS-Tricks
3 years
How I Built a Cross-Platform Desktop Application with Svelte, Redis, and Rust by @lukeed05
3
40
185
7
7
70
@lukeed05
Luke Edwards
4 years
This was fun to work on! Powered by @sveltejs and Snowpack, of course! Congrats to the @skypackjs team! 🎉
@skypackjs
Skypack (prev. pika)
4 years
Introducing Skypack Discover: a new search engine that helps you find the best JS packages, faster. 🤖 Optimized for web developers 👩‍💻 Expert recommendations for popular searches 👨‍🔬 Built-in package quality score 🧪 Test packages right in the browser
Tweet media one
7
85
339
4
7
67
@lukeed05
Luke Edwards
4 years
Quick little update to `sirv-cli` 📣 Not many knew that the CLI is/was able to expose your server over the network (for coworkers, mobile device testing, etc)... so 1.0.2 shows a clue if you forgot to add that feature. 🙏 @mhkeller @Rich_Harris Notes:
Tweet media one
1
7
67
@lukeed05
Luke Edwards
8 years
I built a thing. It looks less than 2 hours. It's purely Preact. And I'm pretty happy with it! 😀 ( #mobile only )
6
15
66
@lukeed05
Luke Edwards
6 years
Tweet media one
3
10
68
@lukeed05
Luke Edwards
4 years
🥳 `sirv` and `sirv-cli` are now 1.0~! 🎉 Thank you all for the PRs & feedback! It's been a long time coming (sorry) – there's a lot check out, but the most notable are: 🔹`sirv-cli` can start a HTTP/2 server 🔸`sirv` includes "SPA" mode directly Notes:
Tweet media one
1
5
67
@lukeed05
Luke Edwards
6 years
ICYMI: Released a 140-byte ponyfill for dynamic `import()` over the weekend. It works with any CommonJS or UMD script~! Repo:
Tweet media one
3
11
66
@lukeed05
Luke Edwards
3 years
CSS vars are great – but hundreds/thousands of them on a page isn't.
5
3
67
@lukeed05
Luke Edwards
1 year
wtf, look at all this 🤯 ... all in 2MB
4
3
65
@lukeed05
Luke Edwards
3 years
Not sure how to accurately express this – This is an actual **game changer** 🔥 Your next SaaS tech stack: ⚙️ Workers, for your "server" fleet 📦 KV, for your globally-replicated datastore 🔒 Cloudflare SaaS, for security and vanity aliasing Core complete. Game Over.
@Cloudflare
Cloudflare
3 years
Announcing Cloudflare for SaaS for Everyone. #DeveloperWeek 💻
8
25
113
3
2
66
@lukeed05
Luke Edwards
1 month
Working on another lightweight library. It's a minimal feature-set of its 11kb predecessor... but in 430 bytes ... both numbers are gzip 🤓
4
0
64
@lukeed05
Luke Edwards
6 years
Will just leave this here... *slithers away*
Tweet media one
5
6
63
@lukeed05
Luke Edwards
6 years
Release Day! 🎉 Here is Polkadot – the tiny HTTP server that gets out of your way~! It's the core of Polka, but really, _really_ tiny. Minified, it weighs < 2kB w/ all deps. It has no rules & no opinions. It just serves HTTP. And it's damn fast 💨 Repo:
Tweet media one
Tweet media two
1
8
63
@lukeed05
Luke Edwards
8 years
A little weekend fun! 🎉 preact-scroll-header: 800b header that hides/reveals on scroll. @preactjs
2
6
62
@lukeed05
Luke Edwards
5 years
I really like the new Twitter Web UI! 😃 But.. it was a little ~too~ busy for me – so I fixed it. Now it's perfect 😍 Chrome Extension: GitHub:
Tweet media one
Tweet media two
6
5
63
@lukeed05
Luke Edwards
3 years
esbuild builds two separate TypeScript applications in 33ms... including all filesystem operations 😂 PS -- this is the "/examples" folder inside worktop
Tweet media one
4
6
63
@lukeed05
Luke Edwards
4 years
Place your bets: This is an ecosystem problem, and is by no means limited to Gatsby, but it is the largest network I've seen so far.
17
14
59
@lukeed05
Luke Edwards
6 years
It's been a little while, but PWA v0.4 is out with some crucial changes! 7⃣ Babel @7 .x integration! 🔎 Replaced UglifyJS with Terser 🌎 Integrates with existing Browserslist configs Next up: TypeScript 😅 Notes:
1
7
61
@lukeed05
Luke Edwards
6 years
Took a break from SaaS development to bring you `regexparam`, a 299 byte (limited) alternative to `path-to-regexp` 🎉 It will convert your route pattern strings into a RegExp & return a list of the parameter names. That's it 😇 Repo:
Tweet media one
1
5
62
@lukeed05
Luke Edwards
3 years
This is a huge victory for OSS! 🎉 Hope it encourages other companies to directly support and invest in projects. Congratulations to @Rich_Harris and @vercel ! 🥳 Gunna be great!
@Rich_Harris
Rich Harris
3 years
today is a big day for @sveltejs : i've joined @vercel to work on it full time! so happy about what this means for svelte's future. it'll be the same independent, pluralistic project as before, but with Vercel's backing we can get ✨ a m b i t i o u s ✨
465
985
9K
0
2
59
@lukeed05
Luke Edwards
1 year
This is a big deal because it's a BIG unlock for Workers 🎉🥳😍 Also surprised that it even happened given that during the "Database Connectors" meeting I was ridiculed for asking about the plans for DBaaS users since they were completely excluded
0
12
58
@lukeed05
Luke Edwards
2 months
"we treat CJS and ESM the same, don't worry" i just lost 4 hours to bun transpiler doing stupid shit
2
5
59
@lukeed05
Luke Edwards
6 years
It had been a loooong time since `mri` got some love. It was my first "performance-oriented" module & I wanted to revisit it after 2 years of learning. Published a patch last night, which fixed a few bugs AND improved performance by 170% 😍 Notes:
Tweet media one
2
6
58
@lukeed05
Luke Edwards
6 years
`Element.classList` is great, but have you ever needed IE support? Yesterday I did - but the only libs I've used in the past were > 1kb! So here's `classico`, a 250B `classList` shim for the unlucky devs stuck in 2013
5
6
58
@lukeed05
Luke Edwards
1 month
📣 ICYMI — yesterday: 🔸 @OpenAI announced Structured Outputs: 🔹And I announced `tschema`, a super fast and ~450b yet fully tree-shakable library to build JSON schemas. Here's what they look like together: > Included a tool calling before/after too 😇
Tweet media one
Tweet media two
Tweet media three
Tweet media four
0
5
57
@lukeed05
Luke Edwards
6 years
Thanks again to all who helped protect `obj-str` by convincing me to make a new library instead. Here is `clsx` – aka, my "v2" – a 200B drop-in replacement for the `classnames` library & is up to 4x faster (on Chrome) in most cases: Repo:
Tweet media one
Tweet media two
1
8
57
@lukeed05
Luke Edwards
6 years
Released `flru` – a fast Least Recently Used (LRU) cache module in 215 bytes~! It maintains two caches as dictionaries and purges the stale cache at N+1 items. Ideal when you can hold 2N item in memory & want to optimize for all-around performance Repo:
Tweet media one
Tweet media two
3
13
57
@lukeed05
Luke Edwards
6 months
Just published ` @polka /compression` ~! 🎉 A lightweight `compression` alternative with opt-in Brotli support. All credit goes to @_developit , who masterfully authored this package years ago for `wmr` and relocated it to the Polka ecosystem 💜 GitHub:
Tweet media one
1
6
55
@lukeed05
Luke Edwards
4 years
Let's play a game: Go to your code folder, and calculate how many GBs all your project repos' `node_modules` are taking up. My score: ~/repos/personal: 4.5GB ~/repos/testing: 4.4GB ~/repos/oss: 30GB
Tweet media one
4
3
56
@lukeed05
Luke Edwards
10 days
oxc is so good
1
3
56
@lukeed05
Luke Edwards
3 years
Svelte & Cloudflare have been a match made in h̶e̶a̶v̶e̶n̶ the cloud for a very long time. I've been shipping this power couple for years and never once disappointed 😎
@SvelteSociety
Svelte Society 🧡
3 years
It’s time to announce our next Svelte Summit sponsor! It’s everyone’s favourite @Cloudflare 🥳 If you haven’t checked out Workers or Pages, do it now! SvelteKit and CF workers are a perfect match. Fast + Fast = Superfast 😎
1
13
141
0
5
55