Sign up
A public list by dan.

Embed this list

Copy this code and paste it into your website’s HTML to show this list there.

Bramus Valid
Text

With Scroll-Driven Animations announced for Firefox, the time to ramp up your SDA skills is **NOW**

Go check https://scroll-driven-animations.style for a free 10-part video course created by yours truly, as well as a bunch of demos and tools.

And if you are using Chrome: Download the DevTools extension I built to help you debug and understand how these work.

Niels Leenheer Valid
Text

And it is now the best ESC/POS and StarPRNT renderer there is. Probably even better than some printers.

But it will probably be used by just me. Or at most a handful of people.

And that is fine. I love this project.

Niels Leenheer Valid
Text

I generated receipts using a dozen different open-source encoders and test suites of other rendered and compared them manually with the output of dozens of printers. Painstakingly making sure to capture every single quirk and detail...

Niels Leenheer Valid
Text

The result is a renderer that exactly matches a real printer. And it does not just support the code my own projects g...

The result is a renderer that exactly matches a real printer. And it does not just support the code my own projects generate…

Niels Leenheer Valid
Text

And to render receipts, you need a bitmap font at specific sizes. And there wasn't yet one...So I created a bitmap fo...

And to render receipts, you need a bitmap font at specific sizes. And there wasn't yet one...

So I created a bitmap font editor... I know 🤪

Niels Leenheer Valid
Text

But... what I really wanted is a renderer. For two reasons - some printers only support bitmaps, and I wanted to be a...

But... what I really wanted is a renderer. For two reasons - some printers only support bitmaps, and I wanted to be able to print on those too.

But I also wanted to have a preview to see how a receipt rendered.

Niels Leenheer Valid
Text

From the moment I've been working on this - 15 years ago - I've always wanted to build a decoder, so that I could ins...

From the moment I've been working on this - 15 years ago - I've always wanted to build a decoder, so that I could inspect what we actually send to the printer... every single command that it receives.

Niels Leenheer Valid
Text

And you end up with bytes. Just raw bytes that you send to the printer - also with libraries that I created...

And you end up with bytes. Just raw bytes that you send to the printer - also with libraries that I created...

Niels Leenheer Valid
Text

But let's rewind. You start with some JavaScript and my ReceiptPrinterEncoder library to create the actual receipt. F...

But let's rewind. You start with some JavaScript and my ReceiptPrinterEncoder library to create the actual receipt. From JavaScript, in the browser or a server. Or using Capacitor or Electron. I've build integrations for everything.

https://point-of-sale.dev

Niels Leenheer Valid
Text

And this is what I've been spending my evenings on lately. A decoder for receipt printer protocols. You can take the bytes that get send to a receipt printer and inspect the commands that are inside of it. And... actually see a render of the receipt.

Only useful for a hand full of people. And me.

Niels Leenheer Valid
Text

RE: https://front-end.social/@heydon/117315437800953545

I've seen Heydon's talk a week or two ago at @smashingconf and it was amazing. I just loved it so much.

So if you want to see it... come down to Dordrecht in The Netherlands... A handful of tickets are still available.

https://www.fronteersconf.org

Niels Leenheer Valid
Text

Fronteers Dark Mode conference is next week! Monday I'll send badges to the printer... which means if you want a proper badge... sign up now!

We've got a handful of tickets left and they are only €100 for an evening of front-end talks by some amazing speakers.

https://www.fronteersconf.org

Bramus Valid
Text

Yes, you too get an extension, Firefox. 🦊❤️(Review Pending)

Yes, you too get an extension, Firefox. 🦊❤️

(Review Pending)

Bram.us Valid
Video • Bramus!

Show keystrokes on a website with the <​show-keystrokes> custom element

When recording screen casts or doing live demos, I typically rely on a native macOS app to visualize my keystrokes on screen. Recently, however, that app got blocked on my work machine by a corporate security policy. Additionally, the keystrokes visualized through that app don’t show up when screen sharing a specific window or tab.

Because I needed to demo a website that relies heavily on keyboard navigation — and thus really needed those keystrokes to be visible to the audience — I found myself in a bit of a pickle. So with the help of Gemini, I decided to build a web-native solution to fill that gap: <show-keystrokes>

Original Content – Bram.us Valid
Video • Bramus!

Show keystrokes on a website with the <​show-keystrokes> custom element

When recording screen casts or doing live demos, I typically rely on a native macOS app to visualize my keystrokes on screen. Recently, however, that app got blocked on my work machine by a corporate security policy. Additionally, the keystrokes visualized through that app don’t show up when screen sharing a specific window or tab.

Because I needed to demo a website that relies heavily on keyboard navigation — and thus really needed those keystrokes to be visible to the audience — I found myself in a bit of a pickle. So with the help of Gemini, I decided to build a web-native solution to fill that gap: <show-keystrokes>

Bramus Valid
Text

Look, a blog post: https://brm.us/show-keystrokes

Bram.us Valid
Text • Bramus!

New in Chrome 154: iframes that automatically resize themselves to their content

Chrome 154 adds support for responsively-sized iframes, letting an <iframe> size itself based on the intrinsic size of its embedded document. This is perfect for seamlessly embedding third-party comment widgets, varying-height social media embeds, or any other type of embed that uses an <iframe>.

Original Content – Bram.us Valid
Text • Bramus!

New in Chrome 154: iframes that automatically resize themselves to their content

Chrome 154 adds support for responsively-sized iframes, letting an <iframe> size itself based on the intrinsic size of its embedded document. This is perfect for seamlessly embedding third-party comment widgets, varying-height social media embeds, or any other type of embed that uses an <iframe>.

Bramus Valid
Text

You can easily position the component in the top right corner of the viewport (default), next to the cursor, or just inline.

Stays on top thanks to the Popover API. Repositions itself thanks to CSS Anchor Positioning.

Also comes as a bookmarklet and extension (pending review), to run on any site.

Bramus Valid
Text

Another week, another package: https://show-keystrokes.netlify.app/

The native app I typically use to display keystrokes on the screen is disallowed by a corp policy.

So I wrote a component to fill that gap. Embed it on your site and you’re good to go.