<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl" media="all"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>Roastidio.us Tagged with web</title>
<link>https://roastidio.us/tag/2691</link>
<atom:link href="https://roastidio.us/tagged_with/web" rel="self" type="application/rss+xml"></atom:link>
<description>Roastidio.us Tagged with web</description>
<item>
<title>TIL that Pagefind does great client-side search</title>
<link>https://ergaster.org/til/pagefind-static-search/</link>
<guid isPermaLink="false">Sx6_nanl46X81cn5mWxanswln7T1UWDvtm8Hzg==</guid>
<pubDate>Thu, 03 Dec 2026 16:48:00 +0000</pubDate>
<description>Providing search on a static website seemed impossible, but Pagefind builds a static index and queries it on the client side.</description>
<content:encoded>&lt;p&gt;I post more and more content on my website. What was visible at glance then is now more difficult to look for. I wanted to implement search, but it is a static website. It means that everything is built once, and then published somewhere as final, immutable pages. I can’t send a request for search and get results in return.&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://ergaster.org/_astro/pagefind-modal.CE5JlBcP_ZNOSfD.webp&quot; alt=&quot;A screenshot of this website with the search modal open. The user has searched for &amp;quot;Helix&amp;quot; and the modal returns plenty of results.&quot; title=&quot;&quot;/&gt;&lt;/p&gt;&lt;p&gt;Or that’s what I thought! &lt;a href=&quot;https://pagefind.app/&quot;&gt;Pagefind&lt;/a&gt; is a neat JavaScript library that does two things:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;It produces an index of the content right after building the static site.&lt;/li&gt;&lt;li&gt;It provides 2 web components to insert in my pages: &lt;code&gt;&amp;lt;pagefind-modal&amp;gt;&lt;/code&gt; that is the search modal itself, hidden by default, and &lt;code&gt;&amp;lt;pagefind-modal-trigger&amp;gt;&lt;/code&gt; that looks like a search field and opens the modal.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;The &lt;code&gt;pagefind-modal&lt;/code&gt; component looks up the index when the user types a request. The index is a static file, so there is not need for a backend that processes queries. Of course this only works for basic queries, but it’s a great tool already!&lt;/p&gt;&lt;p&gt;Pagefind is also easy to customise via &lt;a href=&quot;https://pagefind.app/docs/css-variables/&quot;&gt;a list of CSS variables&lt;/a&gt;. Adding it to this website was very straightforward.&lt;/p&gt;</content:encoded>
</item>
<item>
<title>TIL that Animated AVIFs make lightweight videos</title>
<link>https://ergaster.org/til/animated-avif-lightweight/</link>
<guid isPermaLink="false">QWAu5efNywucA8YkH8TooY1V-sa-LJ2HQWb4Ow==</guid>
<pubDate>Thu, 03 Dec 2026 16:48:00 +0000</pubDate>
<description>Embedding a video in a markdown post is not that easy. AVIF turns videos into lightweight animated images.</description>
<content:encoded>&lt;p&gt;Sometimes in my posts I need to show a screen recording. Videos can get heavy rapidly and take a lot of time to load.&lt;/p&gt;&lt;p&gt;I also write my posts in markdown which has syntax to include images:&lt;/p&gt;&lt;div&gt;&lt;figure&gt;&lt;pre&gt;&lt;code&gt;![Alt text describing the image](path to the image)&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;p&gt;Using that syntax for videos doesn’t work though. Since HTML is valid markdown, it’s possible to manually add &lt;code&gt;&amp;lt;video&amp;gt;&lt;/code&gt; tags, but it’s a bit more tedious.&lt;/p&gt;&lt;p&gt;It’s also possible to use &lt;code&gt;ffmpeg&lt;/code&gt; to convert a mp4 video into a looping animated AVIF. The command to do it is&lt;/p&gt;&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;Terminal window&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;$ ffmpeg -i demo.mp4 -loop 0 demo.avif&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;p&gt;AVIF also compresses very well, without losing too much detail.&lt;/p&gt;&lt;div&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;Terminal window&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;$ ls -lh

total 1.8M

-rw-r--r--. 1 thib thib 566K Apr 11 09:26 typst-live-preview.avif

-rw-r--r--. 1 thib thib 1.2M Apr  8 22:02 typst-live-preview.mp4&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;/div&gt;&lt;p&gt;The support for AVIF in browsers &lt;a href=&quot;https://caniuse.com/avif&quot;&gt;is excellent&lt;/a&gt;, sitting at more than 94% as of writing.&lt;/p&gt;&lt;p&gt;My only remaining gripe is that &lt;a href=&quot;https://github.com/withastro/astro/issues/16267&quot;&gt;Astro chokes on AVIF images&lt;/a&gt; when trying to optimise images in Markdown posts. A workaround for it is to store the AVIFs as static assets so Astro doesn’t try to optimise them.&lt;/p&gt;&lt;p&gt;Update: The excellent Astro maintainers have &lt;a href=&quot;https://github.com/withastro/astro/issues/16267&quot;&gt;fixed the AVIF issue&lt;/a&gt; and the workaround above is no longer needed.&lt;/p&gt;</content:encoded>
</item>
<item>
<title>I realized that You don&#39;t care</title>
<link>https://ergaster.org/thoughts/you-dont-care/</link>
<guid isPermaLink="false">LhakaGgNiWRSnxAxd3bxJzu_2sxCtQq-6Yjteg==</guid>
<pubDate>Thu, 03 Dec 2026 16:48:00 +0000</pubDate>
<description>A lot of us maintain our own website, and you don&#39;t care. And I don&#39;t expect you to.</description>
<content:encoded>&lt;p&gt;Quite a few of us maintain our own websites and publish our thoughts. We play in hard mode:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;We need to build our website before even publishing our first post.&lt;/li&gt;&lt;li&gt;We don’t benefit from the network effect of bigger platforms to get eyeballs on our writing.&lt;/li&gt;&lt;li&gt;LLMs aggressively scrape the web and can serve our thoughts or expertise to their users without them visiting our websites.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;And on top of that, you don’t care.&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;And I don’t expect you to care. Like the rest of us, you are flooded with information constantly. You’re fed so many words that you read the equivalent of whole books every day. How entitled would I be to expect you to care about my words when you have to filter through every story you’re bombarded with.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;So why do we keep the small web alive?&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;I can’t speak for others, but I know why I maintain my website and why I publish my thoughts there. By increasing order of importance:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;I keep my web development skills reasonably up to date.&lt;/li&gt;&lt;li&gt;I can shape my website to adapt to my content, and not the other way around.&lt;/li&gt;&lt;li&gt;I have freedom of tone and vocabulary. I don’t have to censor words like “suicide” or “sex”.&lt;/li&gt;&lt;li&gt;I write long form posts that help me shape my thoughts, develop ideas, and receive feedback from my peers and readers.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;If you can afford to, I can only encourage you to write and publish your thoughts on your own platform, as long as you don’t expect others to care in return.&lt;/p&gt;</content:encoded>
</item>
<item>
<title>HTML esoterica - en-GB vs en_GB - HTMHell</title>
<link>https://www.htmhell.dev/adventcalendar/2026/1/</link>
<enclosure type="image/jpeg" length="0" url="https://www.htmhell.dev/images/og/advent26_1.png?s=171224"></enclosure>
<guid isPermaLink="false">2IT8Pd0-1jMBu0YWjH56M1pmIeoI-7U5RmRV9A==</guid>
<pubDate>Thu, 03 Dec 2026 07:37:58 +0000</pubDate>
<description>A collection of bad practices in HTML, copied from real websites.</description>
<content:encoded>&lt;h1&gt;HTML esoterica - en-GB vs en_GB&lt;/h1&gt;&lt;p&gt;by &lt;a href=&quot;https://shkspr.mobi/blog/&quot;&gt;Terence Eden&lt;/a&gt; published on &lt;time&gt;Dec 01, 2026&lt;/time&gt;&lt;/p&gt;&lt;p&gt;Skip to comments&lt;/p&gt;&lt;p&gt;Here&amp;#39;s a fun little historic mystery for HTML nerds.&lt;/p&gt;&lt;p&gt;Most websites report the language they&amp;#39;re written in using the &lt;code&gt;lang&lt;/code&gt; attribute.&lt;/p&gt;&lt;pre&gt;&lt;code class=&quot;language-html&quot;&gt;&amp;lt;html lang=&amp;quot;en-GB&amp;quot;&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;But on the &lt;code&gt;&amp;lt;meta&amp;gt;&lt;/code&gt; element, it&amp;#39;s common to see:&lt;/p&gt;&lt;pre&gt;&lt;code class=&quot;language-html&quot;&gt;&amp;lt;meta content=&amp;quot;en_GB&amp;quot; property=&amp;quot;og:locale&amp;quot;&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Why does that use an underscore rather than a hyphen?&lt;/p&gt;&lt;h2&gt;What is a language anyway?&lt;/h2&gt;&lt;p&gt;Here&amp;#39;s how the &lt;code&gt;lang&lt;/code&gt; attribute works:&lt;/p&gt;&lt;blockquote&gt;The lang attribute specifies the primary language for the element&amp;#39;s contents and for any of the element&amp;#39;s attributes that contain text. Its value must be a valid BCP 47 language tag&lt;/blockquote&gt;&lt;p&gt;&lt;a href=&quot;https://html.spec.whatwg.org/#the-lang-and-xml:lang-attributes&quot;&gt;3.2.6.2 The lang and xml:lang attributes&lt;/a&gt;&lt;/p&gt;&lt;p&gt;OK, so what is a valid BCP 47 language tag?&lt;/p&gt;&lt;blockquote&gt;Language tags permit only the characters A-Z, a-z, 0-9, and HYPHEN-MINUS (%x2D).&lt;/blockquote&gt;&lt;p&gt;&lt;a href=&quot;https://www.rfc-editor.org/info/rfc4647/&quot;&gt;6. Character Set Consideration&lt;/a&gt;&lt;/p&gt;&lt;p&gt;For example, &lt;code&gt;en&lt;/code&gt; is English. &lt;code&gt;en-GB&lt;/code&gt; is British English and &lt;code&gt;en-CA&lt;/code&gt; is Canadian English. The two parts are separated by a hyphen.&lt;/p&gt;&lt;h2&gt;Where else is language specificity useful?&lt;/h2&gt;&lt;p&gt;That&amp;#39;s not the &lt;em&gt;only&lt;/em&gt; way language tags can appear in HTML. If you want your web page to show a little preview when you share it - perhaps on social media or a messaging app - you can use Open Graph Protocol.&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;og:locale&lt;/code&gt; - The locale these tags are marked up in. Of the format language_TERRITORY. Default is &lt;code&gt;en_US&lt;/code&gt;.&lt;/blockquote&gt;&lt;p&gt;&lt;a href=&quot;https://ogp.me/#optional&quot;&gt;Optional Metadata - Open Graph Protocol&lt;/a&gt;&lt;/p&gt;&lt;p&gt;(Hurrah for American hegemony!)&lt;/p&gt;&lt;p&gt;Here&amp;#39;s the example it gives:&lt;/p&gt;&lt;p&gt;That says the locale of the &lt;em&gt;tags&lt;/em&gt;, not the page, is British English. So you could have a page in the Japanese language but OGP tags written in Cherokee.&lt;/p&gt;&lt;p&gt;Now I have two questions.&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Why doesn&amp;#39;t this use the &lt;code&gt;lang&lt;/code&gt; attribute?&lt;/li&gt;&lt;li&gt;Why does this use an underscore rather than a hyphen?&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;For example, this is valid HTML:&lt;/p&gt;&lt;p&gt;That says the site&amp;#39;s name is in French but the description is in English. That will parse perfectly.&lt;/p&gt;&lt;h2&gt;What&amp;#39;s going on with OGP?&lt;/h2&gt;&lt;p&gt;As I&amp;#39;ve ranted before, &lt;a href=&quot;https://shkspr.mobi/blog/2022/11/is-open-graph-protocol-dead/&quot;&gt;development of Open Graph Protocol is dead&lt;/a&gt;. Facebook, who run it, recently reopened their GitHub repo - but only to add a proposed tag. Their discussion forum is full of spam.&lt;/p&gt;&lt;p&gt;There&amp;#39;s no history of the development, no rationale for why things were chosen, just Facebook&amp;#39;s edict.&lt;/p&gt;&lt;p&gt;The nearest I can find to an explanation is &lt;a href=&quot;https://github.com/facebook/open-graph-protocol/pull/16&quot;&gt;this Pull Request&lt;/a&gt; which references an obsolete page of Facebook&amp;#39;s locales.&lt;/p&gt;&lt;p&gt;Despite Facebook removing the page, it lives on! Take a look at the &lt;a href=&quot;https://developers.facebook.com/documentation/plugins/embedded-posts&quot;&gt;documentation for embedded posts&lt;/a&gt;. It says:&lt;/p&gt;&lt;blockquote&gt;When you load the SDK, change the value of js.src to use your locale. Replace en_US with your locale, e.g., fr_FR for French (France):&lt;/blockquote&gt;&lt;p&gt;&lt;code&gt;&amp;#39;https://connect.facebook.net/fr_FR/sdk.js&lt;/code&gt;&lt;/p&gt;&lt;p&gt;Which, I &lt;em&gt;think&lt;/em&gt;, leads us to the answer. An answer which was hidden in the question the whole time. A language is &lt;em&gt;not&lt;/em&gt; the same as a locale.&lt;/p&gt;&lt;p&gt;A language &lt;em&gt;only&lt;/em&gt; tells you about the language. A locale, by contrast, tells you about the user&amp;#39;s preferences.&lt;/p&gt;&lt;blockquote&gt;A locale comprises the language, territory, and code set combination used to identify a set of language conventions. These conventions include information on collation, case conversion, and character classification, the language of message catalogs, date-and-time representation, the monetary symbol, and numeric representation.&lt;/blockquote&gt;&lt;p&gt;&lt;a href=&quot;https://www.ibm.com/docs/en/aix/7.3.0?topic=locales-understanding-locale&quot;&gt;Understanding locale - IBM&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Do you know if 10/08/12 is the 10th of August or the 8th of October?&lt;/p&gt;&lt;p&gt;Is 5.99 describing the cost in a mark, a yen, a buck, or a pound?&lt;/p&gt;&lt;p&gt;If you know the locale, you do. So a locale can be more useful than just a plain language.&lt;/p&gt;&lt;h2&gt;OK, but &lt;em&gt;why&lt;/em&gt; does it use an underscore?&lt;/h2&gt;&lt;p&gt;As far as I can tell, &lt;a href=&quot;https://www.open-std.org/jtc1/sc22/wg20/docs/n610.pdf&quot;&gt;POSIX standardised it in ISO/IEC 15897&lt;/a&gt;. It built on &lt;a href=&quot;https://docs.oracle.com/cd/E19620-01/805-3916/intro-70963/index.html&quot;&gt;a number of older standards&lt;/a&gt;. And, for whatever reason, they used the underscore.&lt;/p&gt;&lt;p&gt;My final question before I let you get on with your lives - is a &lt;em&gt;locale&lt;/em&gt; useful?&lt;/p&gt;&lt;p&gt;OGP defines &lt;a href=&quot;https://ogp.me/#data_types&quot;&gt;several data types&lt;/a&gt;. The date is always in ISO8601 format, so no need for a locale there. Bools, strings, and enums don&amp;#39;t benefit from a locale in any way that I can see.&lt;/p&gt;&lt;p&gt;What about the &lt;a href=&quot;https://ogp.me/#type_payment&quot;&gt;new payment property&lt;/a&gt;? A locale might be useful there to show currency. Except the specification has:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;code&gt;payment:currency&lt;/code&gt; - string - The currency code ISO 4217 of the payment.&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;The only thing I can see a locale being useful for is numbers. The thousand separator and decimal mark are &lt;a href=&quot;https://brilliantmaps.com/decimals/&quot;&gt;different depending on the locale&lt;/a&gt;. So it might be useful to display &amp;quot;5,99&amp;quot; or &amp;quot;10.000,32&amp;quot; depending on the page&amp;#39;s intended audience.&lt;/p&gt;&lt;p&gt;If Facebook were still interested in maintaining OGP, I think that asking them to deprecate &lt;code&gt;og:locale&lt;/code&gt; and replace it with &lt;code&gt;lang&lt;/code&gt; on specific meta elements would be sensible.&lt;/p&gt;&lt;p&gt;So there you have it. A language is &lt;strong&gt;not&lt;/strong&gt; the same as a locale, and an underscore is &lt;u&gt;not&lt;/u&gt; the same as a hyphen, and a Facebook recommendation is &lt;strong&gt;&lt;em&gt;&lt;u&gt;not&lt;/u&gt;&lt;/em&gt;&lt;/strong&gt; the same as a living standard.&lt;/p&gt;&lt;p&gt;Right, that&amp;#39;s enough &lt;a href=&quot;https://en.wiktionary.org/wiki/yak_shaving&quot;&gt;yak shaving&lt;/a&gt;. I&amp;#39;m sure I was meant to be doing something important… Oh! Yes! Welcome to HTMHell 🎅&lt;/p&gt;&lt;h2&gt;About Terence Eden&lt;/h2&gt;&lt;p&gt;A normal human living in London, UK.&lt;/p&gt;&lt;p&gt;Site: &lt;a href=&quot;https://shkspr.mobi/blog/&quot;&gt;Website&lt;/a&gt;&lt;/p&gt;</content:encoded>
</item>
<item>
<title>Creating Beveled Corners with “corner-shape” • Josh W. Comeau</title>
<link>https://www.joshwcomeau.com/css/bevel-corners/</link>
<enclosure type="image/jpeg" length="0" url="https://www.joshwcomeau.com/images/og-bevel-corners.png"></enclosure>
<guid isPermaLink="false">yq7WLqyPNjDE9BjjkwEXXl_QYcEttLILXfvkHQ==</guid>
<pubDate>Wed, 02 Dec 2026 17:10:21 +0000</pubDate>
<description>The new “corner-shape” CSS property is incredibly useful, but if we really want to get the most out of it, we need to use some surprisingly-sophisticated tricks. In this post, I’ll share how I’ve used this new property to create a retro-sci-fi aesthetic with diagonal corners everywhere. 📐</description>
<content:encoded>&lt;p&gt;Earlier this week, I released a new NPM package focused on &lt;a href=&quot;https://buttons.joshwcomeau.com/&quot;&gt;button UI sound &lt;span&gt;effects&lt;span&gt;(opens in new tab)&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;:&lt;/p&gt;&lt;div&gt;&lt;div&gt;&lt;a href=&quot;https://buttons.joshwcomeau.com/&quot;&gt;&lt;img src=&quot;https://www.joshwcomeau.com/_next/image/?url=%2Fimages%2Fbeveled-corners%2Fbutton-sounds-playground.png&amp;amp;w=3840&amp;amp;q=75&quot; alt=&quot;Screenshot of a &amp;#39;Sound Playground&amp;#39; featuring a big red clickable button, a list of different button sound effects to play when the button is clicked, and several options for customizing the sound&quot; title=&quot;&quot;/&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;I had a lot of fun coming up with this retro-sci-fi aesthetic, and a big part of what gives it that effect is all of the diagonal beveled corners:&lt;/p&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;img src=&quot;https://www.joshwcomeau.com/_next/image/?url=%2Fimages%2Fbeveled-corners%2Fbevel-example-1.png&amp;amp;w=640&amp;amp;q=75&quot; alt=&quot;A list of sounds with diagonal corners, and little arrow buttons that have matching diagonal corners. Each sound has small diagonal corners, and even the scrollbar as triangle-shaped tips.&quot; title=&quot;&quot;/&gt;&lt;/div&gt;&lt;div&gt;&lt;img src=&quot;https://www.joshwcomeau.com/_next/image/?url=%2Fimages%2Fbeveled-corners%2Fbevel-example-2.png&amp;amp;w=640&amp;amp;q=75&quot; alt=&quot;A close-up shot of a red button on a decorative background. The button itself has diagonal beveled corners, as does the decorative background.&quot; title=&quot;&quot;/&gt;&lt;/div&gt;&lt;div&gt;&lt;img src=&quot;https://www.joshwcomeau.com/_next/image/?url=%2Fimages%2Fbeveled-corners%2Fbevel-example-3.png&amp;amp;w=640&amp;amp;q=75&quot; alt=&quot;Another close-up shot of the filter section, featuring square buttons with diagonal corners that match the diagonal corners of the parent container.&quot; title=&quot;&quot;/&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;I created these bevels using the brand-new &lt;code class=&quot;i165vvr1&quot;&gt;corner-shape&lt;/code&gt; property, but it was surprisingly tricky. To get some of these effects, we need to use this new property in somewhat-unintuitive ways!&lt;/p&gt;&lt;p&gt;In this blog post, we’ll dig into this new property and I’ll share the secrets I used to create this sort of UI. ✨&lt;/p&gt;&lt;h2&gt;&lt;span&gt;&lt;span&gt;Link to this heading&lt;/span&gt;&lt;/span&gt;The basics&lt;/h2&gt;&lt;p&gt;Let’s start with a “Hello World” type example:&lt;/p&gt;&lt;p&gt;When we set &lt;code class=&quot;i165vvr1&quot;&gt;corner-shape: bevel&lt;/code&gt;, it changes how the &lt;code class=&quot;i165vvr1&quot;&gt;border-radius&lt;/code&gt; property works. Instead of producing a rounded quarter-circle, it instead draws a diagonal line:&lt;/p&gt;&lt;p&gt;One of the really cool things about &lt;code class=&quot;i165vvr1&quot;&gt;corner-shape&lt;/code&gt; is that it changes the element’s &lt;em&gt;actual border box.&lt;/em&gt; This means that other properties like &lt;code class=&quot;i165vvr1&quot;&gt;outline&lt;/code&gt; and &lt;code class=&quot;i165vvr1&quot;&gt;box-shadow&lt;/code&gt; respect the beveled corners:&lt;/p&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;header&gt;&lt;p&gt;Code Playground &lt;/p&gt;&lt;div&gt;&lt;a href=&quot;https://codesandbox.io/api/v1/sandboxes/define?undefined&amp;amp;environment=parcel&quot;&gt;&lt;span&gt;Open in CodeSandbox&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/header&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;pre&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;style&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;
  .box &lt;span&gt;{&lt;/span&gt;
    &lt;span&gt;--shadow-color&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;hsl&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;deg&lt;/span&gt; &lt;span&gt;0&lt;/span&gt;&lt;span&gt;%&lt;/span&gt; &lt;span&gt;0&lt;/span&gt;&lt;span&gt;%&lt;/span&gt; / &lt;span&gt;0.5&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;corner-shape&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;bevel&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;border&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;6&lt;/span&gt;&lt;span&gt;px&lt;/span&gt; &lt;span&gt;solid&lt;/span&gt; &lt;span&gt;red&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;outline&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;6&lt;/span&gt;&lt;span&gt;px&lt;/span&gt; &lt;span&gt;solid&lt;/span&gt; &lt;span&gt;white&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;border-radius&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;32&lt;/span&gt;&lt;span&gt;px&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;box-shadow&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;
      &lt;span&gt;0&lt;/span&gt;&lt;span&gt;px&lt;/span&gt; &lt;span&gt;2&lt;/span&gt;&lt;span&gt;px&lt;/span&gt; &lt;span&gt;4&lt;/span&gt;&lt;span&gt;px&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--shadow-color&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;
      &lt;span&gt;0&lt;/span&gt;&lt;span&gt;px&lt;/span&gt; &lt;span&gt;4&lt;/span&gt;&lt;span&gt;px&lt;/span&gt; &lt;span&gt;8&lt;/span&gt;&lt;span&gt;px&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--shadow-color&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;
      &lt;span&gt;0&lt;/span&gt;&lt;span&gt;px&lt;/span&gt; &lt;span&gt;8&lt;/span&gt;&lt;span&gt;px&lt;/span&gt; &lt;span&gt;16&lt;/span&gt;&lt;span&gt;px&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--shadow-color&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
  &lt;span&gt;}&lt;/span&gt;
&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span&gt;style&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;

&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;div&lt;/span&gt; &lt;span&gt;class&lt;/span&gt;=&lt;span&gt;&amp;quot;box&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span&gt;div&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;This is a big part of what makes &lt;code class=&quot;i165vvr1&quot;&gt;corner-shape&lt;/code&gt; so special. We can use long-supported properties like &lt;code class=&quot;i165vvr1&quot;&gt;clip-path&lt;/code&gt; to cut all sorts of shapes into our boxes, but &lt;code class=&quot;i165vvr1&quot;&gt;clip-path&lt;/code&gt; gets applied &lt;em&gt;after&lt;/em&gt; borders/outlines/shadows.&lt;/p&gt;&lt;h2&gt;&lt;span&gt;&lt;span&gt;Link to this heading&lt;/span&gt;&lt;/span&gt;Mixing colors&lt;/h2&gt;&lt;p&gt;What happens when we change the color of one of the box’s sides? Well, let’s give it a shot:&lt;/p&gt;&lt;p&gt;I actually don’t love this behaviour 😅. We transition harshly from one color to the other in the very center of the bevel. I can’t think of many situations where this would be useful.&lt;/p&gt;&lt;p&gt;That said, something more interesting happens if we only include &lt;em&gt;the border itself&lt;/em&gt; on one side:&lt;/p&gt;&lt;p&gt;Now &lt;em&gt;that’s&lt;/em&gt; useful! The width of the border tapers from the full &lt;code class=&quot;i165vvr1&quot;&gt;border-width&lt;/code&gt; down to 0 along the diagonal edge.&lt;/p&gt;&lt;p&gt;By stategically picking lighter/darker colors for the top/bottom edges, we can create the illusion of a raised platform:&lt;/p&gt;&lt;p&gt;Unfortunately, as I write this on December 1st 2026, there’s a &lt;a href=&quot;https://issues.chromium.org/issues/577393733&quot;&gt; &lt;span&gt;bug&lt;span&gt;(opens in new tab)&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; in Chrome that causes adjacent borders to overlap when different colors are used. That bug has been fixed in Chrome Canary, but the fix won’t ship until Chrome 159 is released next week, on December 8th 2026.&lt;/p&gt;&lt;p&gt;So, if we want to actually do this today, we need the borders to be on separate elements. We can use &lt;code class=&quot;i165vvr1&quot;&gt;::before&lt;/code&gt;/&lt;code class=&quot;i165vvr1&quot;&gt;::after&lt;/code&gt; pseudo-elements for this:&lt;/p&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;header&gt;&lt;p&gt;Code Playground &lt;/p&gt;&lt;div&gt;&lt;a href=&quot;https://codesandbox.io/api/v1/sandboxes/define?undefined&amp;amp;environment=parcel&quot;&gt;&lt;span&gt;Open in CodeSandbox&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/header&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;pre&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;style&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;
  .box &lt;span&gt;{&lt;/span&gt;
    &lt;span&gt;position&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;relative&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;background&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;hsl&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;45&lt;/span&gt;&lt;span&gt;deg&lt;/span&gt; &lt;span&gt;90&lt;/span&gt;&lt;span&gt;%&lt;/span&gt; &lt;span&gt;60&lt;/span&gt;&lt;span&gt;%&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;border-radius&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;32&lt;/span&gt;&lt;span&gt;px&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;corner-shape&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;bevel&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;

    &amp;amp;::before&lt;span&gt;,&lt;/span&gt; &amp;amp;::after &lt;span&gt;{&lt;/span&gt;
      &lt;span&gt;content&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;&amp;#39;&amp;#39;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;position&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;absolute&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;inset&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;border-radius&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;inherit&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;corner-shape&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;inherit&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;pointer-events&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;none&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;}&lt;/span&gt;
    &amp;amp;::before &lt;span&gt;{&lt;/span&gt;
      &lt;span&gt;border-top&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;6&lt;/span&gt;&lt;span&gt;px&lt;/span&gt; &lt;span&gt;solid&lt;/span&gt; &lt;span&gt;hsl&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;50&lt;/span&gt;&lt;span&gt;deg&lt;/span&gt; &lt;span&gt;100&lt;/span&gt;&lt;span&gt;%&lt;/span&gt; &lt;span&gt;75&lt;/span&gt;&lt;span&gt;%&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;}&lt;/span&gt;
    &amp;amp;::after &lt;span&gt;{&lt;/span&gt;
      &lt;span&gt;border-bottom&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;6&lt;/span&gt;&lt;span&gt;px&lt;/span&gt; &lt;span&gt;solid&lt;/span&gt; &lt;span&gt;hsl&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;35&lt;/span&gt;&lt;span&gt;deg&lt;/span&gt; &lt;span&gt;60&lt;/span&gt;&lt;span&gt;%&lt;/span&gt; &lt;span&gt;46&lt;/span&gt;&lt;span&gt;%&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;}&lt;/span&gt;
  &lt;span&gt;}&lt;/span&gt;
&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span&gt;style&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;

&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;div&lt;/span&gt; &lt;span&gt;class&lt;/span&gt;=&lt;span&gt;&amp;quot;box&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span&gt;div&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;This is kind of a neat effect, but it’s actually not what I &lt;em&gt;usually&lt;/em&gt; want. On my buttons project, I found I preferred having each corner match either the top or bottom border color:&lt;/p&gt;&lt;p&gt;Instead of tapering the diagonal corners, I want them to match either the top or bottom edge, all the way through. Essentially, our 8-sided octagon follows these rules:&lt;/p&gt;&lt;ul&gt;
&lt;li&gt;&lt;div&gt;The top three edges are a lighter color.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div&gt;The bottom three edges are a darker color.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div&gt;The two vertical edges connecting them are somewhere in-between.&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;This turned out to be a bit tricky. Let&amp;#39;s start with the top/bottom edges. I’ll choose high-contrast colors so we can really see what’s going on:&lt;/p&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;header&gt;&lt;p&gt;Code Playground &lt;/p&gt;&lt;div&gt;&lt;a href=&quot;https://codesandbox.io/api/v1/sandboxes/define?undefined&amp;amp;environment=parcel&quot;&gt;&lt;span&gt;Open in CodeSandbox&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/header&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;pre&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;style&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;
  .box &lt;span&gt;{&lt;/span&gt;
    &lt;span&gt;--r&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;32&lt;/span&gt;&lt;span&gt;px&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;position&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;relative&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;border-radius&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--r&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;corner-shape&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;bevel&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;background&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;hsl&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;210&lt;/span&gt;&lt;span&gt;deg&lt;/span&gt; &lt;span&gt;15&lt;/span&gt;&lt;span&gt;%&lt;/span&gt; &lt;span&gt;15&lt;/span&gt;&lt;span&gt;%&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;

    &amp;amp;::before&lt;span&gt;,&lt;/span&gt; &amp;amp;::after &lt;span&gt;{&lt;/span&gt;
      &lt;span&gt;content&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;&amp;#39;&amp;#39;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;position&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;absolute&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;left&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;right&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;height&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--r&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;border-radius&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;inherit&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;corner-shape&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;inherit&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;pointer-events&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;none&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;}&lt;/span&gt;

    &amp;amp;::before &lt;span&gt;{&lt;/span&gt;
      &lt;span&gt;top&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;border-radius&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--r&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--r&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;0&lt;/span&gt; &lt;span&gt;0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;border&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;6&lt;/span&gt;&lt;span&gt;px&lt;/span&gt; &lt;span&gt;solid&lt;/span&gt; &lt;span&gt;white&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;border-bottom&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;none&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;}&lt;/span&gt;
    &amp;amp;::after &lt;span&gt;{&lt;/span&gt;
      &lt;span&gt;bottom&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;border-radius&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;0&lt;/span&gt; &lt;span&gt;0&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--r&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--r&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;border&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;6&lt;/span&gt;&lt;span&gt;px&lt;/span&gt; &lt;span&gt;solid&lt;/span&gt; &lt;span&gt;gray&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;border-top&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;none&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;}&lt;/span&gt;
  &lt;span&gt;}&lt;/span&gt;
&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span&gt;style&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;

&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;div&lt;/span&gt; &lt;span&gt;class&lt;/span&gt;=&lt;span&gt;&amp;quot;box&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span&gt;div&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;The &lt;code class=&quot;i165vvr1&quot;&gt;::before&lt;/code&gt; pseudo-element creates the white three-sided top edge, and the key trick here is that we’re only applying &lt;code class=&quot;i165vvr1&quot;&gt;border-radius&lt;/code&gt; to the &lt;em&gt;top two corners.&lt;/em&gt; The bottom two corners have zero radius, and we also omit the bottom border.&lt;/p&gt;&lt;p&gt;Then, by adjusting the &lt;code class=&quot;i165vvr1&quot;&gt;height&lt;/code&gt; of the pseudo-element, we can create a trapezoid shape that fits perfectly on top. Try reducing the height here:&lt;/p&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;Pseudo-element height:&lt;span&gt;200px&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;If the &lt;code class=&quot;i165vvr1&quot;&gt;height&lt;/code&gt; of the pseudo-element matches the top-left/top-right radius exactly, we’ll wind up with this three-sided shape that works perfectly as our top edge!&lt;/p&gt;&lt;p&gt;We repeat the same trick for the bottom edge with the &lt;code class=&quot;i165vvr1&quot;&gt;::after&lt;/code&gt; pseudo-element, but with everything flipped; we omit the top border and apply &lt;code class=&quot;i165vvr1&quot;&gt;border-radius&lt;/code&gt; exclusively to the bottom corners.&lt;/p&gt;&lt;h3&gt;&lt;span&gt;&lt;span&gt;Link to this heading&lt;/span&gt;&lt;/span&gt;Adding side borders&lt;/h3&gt;&lt;p&gt;We can use &lt;code class=&quot;i165vvr1&quot;&gt;::before&lt;/code&gt; and &lt;code class=&quot;i165vvr1&quot;&gt;::after&lt;/code&gt; for the top/bottom edges, but right now, they don’t connect to anything. We’re missing our matching side borders!&lt;/p&gt;&lt;p&gt;Unfortunately, it isn’t as simple as slapping a &lt;code class=&quot;i165vvr1&quot;&gt;border&lt;/code&gt; on the parent element:&lt;/p&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;header&gt;&lt;p&gt;Code Playground &lt;/p&gt;&lt;div&gt;&lt;a href=&quot;https://codesandbox.io/api/v1/sandboxes/define?undefined&amp;amp;environment=parcel&quot;&gt;&lt;span&gt;Open in CodeSandbox&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/header&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;pre&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;style&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;
  .box &lt;span&gt;{&lt;/span&gt;
    &lt;span&gt;--r&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;32&lt;/span&gt;&lt;span&gt;px&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;position&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;relative&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;border-radius&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--r&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;/*
      👇 Try adding a regular border:
    */&lt;/span&gt;
    &lt;span&gt;border&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;6&lt;/span&gt;&lt;span&gt;px&lt;/span&gt; &lt;span&gt;solid&lt;/span&gt; &lt;span&gt;darkgray&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;corner-shape&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;bevel&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;background&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;hsl&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;210&lt;/span&gt;&lt;span&gt;deg&lt;/span&gt; &lt;span&gt;15&lt;/span&gt;&lt;span&gt;%&lt;/span&gt; &lt;span&gt;15&lt;/span&gt;&lt;span&gt;%&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;

    &amp;amp;::before&lt;span&gt;,&lt;/span&gt; &amp;amp;::after &lt;span&gt;{&lt;/span&gt;
      &lt;span&gt;content&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;&amp;#39;&amp;#39;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;position&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;absolute&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;left&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;right&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;height&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--r&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;border-radius&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;inherit&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;corner-shape&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;inherit&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;pointer-events&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;none&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;}&lt;/span&gt;

    &amp;amp;::before &lt;span&gt;{&lt;/span&gt;
      &lt;span&gt;top&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;border-radius&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--r&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--r&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;0&lt;/span&gt; &lt;span&gt;0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;border&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;6&lt;/span&gt;&lt;span&gt;px&lt;/span&gt; &lt;span&gt;solid&lt;/span&gt; &lt;span&gt;white&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;border-bottom&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;none&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;}&lt;/span&gt;
    &amp;amp;::after &lt;span&gt;{&lt;/span&gt;
      &lt;span&gt;bottom&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;border-radius&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;0&lt;/span&gt; &lt;span&gt;0&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--r&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--r&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;border&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;6&lt;/span&gt;&lt;span&gt;px&lt;/span&gt; &lt;span&gt;solid&lt;/span&gt; &lt;span&gt;gray&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;border-top&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;none&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;}&lt;/span&gt;
  &lt;span&gt;}&lt;/span&gt;
&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span&gt;style&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;

&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;div&lt;/span&gt; &lt;span&gt;class&lt;/span&gt;=&lt;span&gt;&amp;quot;box&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span&gt;div&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;Yikes! The border is wrapping &lt;em&gt;around&lt;/em&gt; the top/bottom edges. We’re also winding up with an awkward gap between the two corners.&lt;/p&gt;&lt;p&gt;The simplest fix for this is for us to switch from &lt;code class=&quot;i165vvr1&quot;&gt;border&lt;/code&gt; to &lt;code class=&quot;i165vvr1&quot;&gt;outline&lt;/code&gt;. &lt;code class=&quot;i165vvr1&quot;&gt;outline&lt;/code&gt; has a lovely sibling property called &lt;code class=&quot;i165vvr1&quot;&gt;outline-offset&lt;/code&gt; which allows us to push the outline in, so that it sits underneath the top/bottom edges:&lt;/p&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;header&gt;&lt;p&gt;Code Playground &lt;/p&gt;&lt;div&gt;&lt;a href=&quot;https://codesandbox.io/api/v1/sandboxes/define?undefined&amp;amp;environment=parcel&quot;&gt;&lt;span&gt;Open in CodeSandbox&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/header&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;pre&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;style&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;
  .box &lt;span&gt;{&lt;/span&gt;
    &lt;span&gt;--r&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;32&lt;/span&gt;&lt;span&gt;px&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;--border-width&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;6&lt;/span&gt;&lt;span&gt;px&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;position&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;relative&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;border-radius&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--r&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;corner-shape&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;bevel&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;background&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;hsl&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;210&lt;/span&gt;&lt;span&gt;deg&lt;/span&gt; &lt;span&gt;15&lt;/span&gt;&lt;span&gt;%&lt;/span&gt; &lt;span&gt;15&lt;/span&gt;&lt;span&gt;%&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;/*
      👇 Use outline instead:
    */&lt;/span&gt;
    &lt;span&gt;outline&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;
      &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--border-width&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;solid&lt;/span&gt; &lt;span&gt;darkgray&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;outline-offset&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;
      &lt;span&gt;calc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--border-width&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; * &lt;span&gt;-1&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;

    &amp;amp;::before&lt;span&gt;,&lt;/span&gt; &amp;amp;::after &lt;span&gt;{&lt;/span&gt;
      &lt;span&gt;content&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;&amp;#39;&amp;#39;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;position&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;absolute&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;left&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;right&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;height&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--r&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;border-radius&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;inherit&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;corner-shape&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;inherit&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;pointer-events&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;none&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;}&lt;/span&gt;

    &amp;amp;::before &lt;span&gt;{&lt;/span&gt;
      &lt;span&gt;top&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;border-radius&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--r&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--r&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;0&lt;/span&gt; &lt;span&gt;0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;border&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--border-width&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;solid&lt;/span&gt; &lt;span&gt;white&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;border-bottom&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;none&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;}&lt;/span&gt;
    &amp;amp;::after &lt;span&gt;{&lt;/span&gt;
      &lt;span&gt;bottom&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;border-radius&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;0&lt;/span&gt; &lt;span&gt;0&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--r&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--r&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;border&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--border-width&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;solid&lt;/span&gt; &lt;span&gt;gray&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;border-top&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;none&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;}&lt;/span&gt;
  &lt;span&gt;}&lt;/span&gt;
&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span&gt;style&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;

&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;div&lt;/span&gt; &lt;span&gt;class&lt;/span&gt;=&lt;span&gt;&amp;quot;box&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span&gt;div&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;This complete approach isn’t quite &lt;em&gt;perfect;&lt;/em&gt; ideally, the joint between top/bottom and sides would be angled, rather than drawing completely horizontally. But I’m using big chunky borders here to really demonstrate the technique. In practice, I tend to use borders that are only 1-2px thick, and at that scale, there’s no visible issue.&lt;/p&gt;&lt;h2&gt;&lt;span&gt;&lt;span&gt;Link to this heading&lt;/span&gt;&lt;/span&gt;Nested borders&lt;/h2&gt;&lt;p&gt;A trick I discovered while building &lt;a href=&quot;https://buttons.joshwcomeau.com/&quot;&gt;Button &lt;span&gt;Sounds&lt;span&gt;(opens in new tab)&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; is that we can make platforms stand out by giving them an &lt;em&gt;outer edge&lt;/em&gt; as well:&lt;/p&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;header&gt;&lt;p&gt;Code Playground &lt;/p&gt;&lt;div&gt;&lt;a href=&quot;https://codesandbox.io/api/v1/sandboxes/define?undefined&amp;amp;environment=parcel&quot;&gt;&lt;span&gt;Open in CodeSandbox&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/header&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;pre&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;style&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;
  .outer.box &lt;span&gt;{&lt;/span&gt;
    &lt;span&gt;--r&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;16&lt;/span&gt;&lt;span&gt;px&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;--top-color&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;hsl&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;210&lt;/span&gt;&lt;span&gt;deg&lt;/span&gt; &lt;span&gt;30&lt;/span&gt;&lt;span&gt;%&lt;/span&gt; &lt;span&gt;22&lt;/span&gt;&lt;span&gt;%&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;--side-color&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;hsl&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;210&lt;/span&gt;&lt;span&gt;deg&lt;/span&gt; &lt;span&gt;25&lt;/span&gt;&lt;span&gt;%&lt;/span&gt; &lt;span&gt;30&lt;/span&gt;&lt;span&gt;%&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;--bottom-color&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;hsl&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;210&lt;/span&gt;&lt;span&gt;deg&lt;/span&gt; &lt;span&gt;20&lt;/span&gt;&lt;span&gt;%&lt;/span&gt; &lt;span&gt;45&lt;/span&gt;&lt;span&gt;%&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;padding&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;3&lt;/span&gt;&lt;span&gt;px&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;background&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;black&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
  &lt;span&gt;}&lt;/span&gt;
  .inner.box &lt;span&gt;{&lt;/span&gt;
    &lt;span&gt;--r&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;14&lt;/span&gt;&lt;span&gt;px&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;--top-color&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;hsl&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;210&lt;/span&gt;&lt;span&gt;deg&lt;/span&gt; &lt;span&gt;35&lt;/span&gt;&lt;span&gt;%&lt;/span&gt; &lt;span&gt;75&lt;/span&gt;&lt;span&gt;%&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;--side-color&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;hsl&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;210&lt;/span&gt;&lt;span&gt;deg&lt;/span&gt; &lt;span&gt;20&lt;/span&gt;&lt;span&gt;%&lt;/span&gt; &lt;span&gt;35&lt;/span&gt;&lt;span&gt;%&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;--bottom-color&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;hsl&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;210&lt;/span&gt;&lt;span&gt;deg&lt;/span&gt; &lt;span&gt;25&lt;/span&gt;&lt;span&gt;%&lt;/span&gt; &lt;span&gt;30&lt;/span&gt;&lt;span&gt;%&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;width&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;160&lt;/span&gt;&lt;span&gt;px&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;height&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;100&lt;/span&gt;&lt;span&gt;px&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;background&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;hsl&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;210&lt;/span&gt;&lt;span&gt;deg&lt;/span&gt; &lt;span&gt;15&lt;/span&gt;&lt;span&gt;%&lt;/span&gt; &lt;span&gt;10&lt;/span&gt;&lt;span&gt;%&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
  &lt;span&gt;}&lt;/span&gt;

  .box &lt;span&gt;{&lt;/span&gt;
    &lt;span&gt;--r&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;32&lt;/span&gt;&lt;span&gt;px&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;--border-width&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;1&lt;/span&gt;&lt;span&gt;px&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;position&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;relative&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;border-radius&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--r&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;corner-shape&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;bevel&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;outline&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--border-width&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;solid&lt;/span&gt;
      &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--side-color&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;outline-offset&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;calc&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;
      &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--border-width&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; * &lt;span&gt;-1&lt;/span&gt;
    &lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;

    &amp;amp;::before&lt;span&gt;,&lt;/span&gt; &amp;amp;::after &lt;span&gt;{&lt;/span&gt;
      &lt;span&gt;content&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;&amp;#39;&amp;#39;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;position&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;absolute&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;left&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;right&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;height&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--r&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;border-radius&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;inherit&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;corner-shape&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;inherit&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;pointer-events&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;none&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;}&lt;/span&gt;

    &amp;amp;::before &lt;span&gt;{&lt;/span&gt;
      &lt;span&gt;top&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;border-radius&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--r&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--r&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;0&lt;/span&gt; &lt;span&gt;0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;border&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--border-width&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;solid&lt;/span&gt;
        &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--top-color&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;border-bottom&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;none&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;}&lt;/span&gt;
    &amp;amp;::after &lt;span&gt;{&lt;/span&gt;
      &lt;span&gt;bottom&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;border-radius&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;0&lt;/span&gt; &lt;span&gt;0&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--r&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--r&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;border&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--border-width&lt;/span&gt;&lt;span&gt;)&lt;/span&gt; &lt;span&gt;solid&lt;/span&gt;
        &lt;span&gt;var&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;--bottom-color&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
      &lt;span&gt;border-top&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;none&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;}&lt;/span&gt;
  &lt;span&gt;}&lt;/span&gt;
&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span&gt;style&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;

&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;div&lt;/span&gt; &lt;span&gt;class&lt;/span&gt;=&lt;span&gt;&amp;quot;outer box&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;
  &lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;div&lt;/span&gt; &lt;span&gt;class&lt;/span&gt;=&lt;span&gt;&amp;quot;inner box&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span&gt;div&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;
&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span&gt;div&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;In this playground, the outer box is flipped; it&amp;#39;s darker on top and lighter on the bottom. This suggests the edge of a recessed area or a hole. It’s like our box is sitting within its own little cubbyhole!&lt;/p&gt;&lt;p&gt;It takes some trial and error to figure out all of the colors. I like to use the HSL color format for this purpose, since I can nudge the saturation/lightness percentages up/down until everything looks right.&lt;/p&gt;&lt;h2&gt;&lt;span&gt;&lt;span&gt;Link to this heading&lt;/span&gt;&lt;/span&gt;Angled bevels&lt;/h2&gt;&lt;p&gt;There’s one final little trick I want to share. we can create &lt;em&gt;angled bevels&lt;/em&gt; by picking different horizontal/vertical radius valus.&lt;/p&gt;&lt;p&gt;This’ll be easier to explain with a demo:&lt;/p&gt;&lt;p&gt;If you haven’t seen that &lt;code class=&quot;i165vvr1&quot;&gt;/&lt;/code&gt; character used in CSS yet, it’s used as a delimiter, to separate different sets of values. It has nothing to do with division.&lt;/p&gt;&lt;p&gt;The snippet above is using a condensed form of the property. &lt;code class=&quot;i165vvr1&quot;&gt;border-radius&lt;/code&gt; actually takes &lt;em&gt;eight&lt;/em&gt; separate values, written as two sets of four:&lt;/p&gt;&lt;p&gt;The first four values specify the &lt;em&gt;horizontal&lt;/em&gt; radius, while the last four specify the &lt;em&gt;vertical&lt;/em&gt; radius. We typically only provide horizontal values, and in that case, the same values are copied for the vertical radii.&lt;/p&gt;&lt;p&gt;This has been a thing with &lt;code class=&quot;i165vvr1&quot;&gt;border-radius&lt;/code&gt; for a long time; we can use it to create &lt;i&gt;elliptical&lt;/i&gt; corners rather than circular ones:&lt;/p&gt;&lt;p&gt;Honestly, I never found myself doing this too often, since the ovals never quite looked right to me. But now, with &lt;code class=&quot;i165vvr1&quot;&gt;corner-shape&lt;/code&gt;, it’s super useful!&lt;/p&gt;&lt;div&gt;&lt;p&gt;It’s beyond the scope of this post, but &lt;code class=&quot;i165vvr1&quot;&gt;corner-shape&lt;/code&gt; provides a whole set of interesting values. &lt;code class=&quot;i165vvr1&quot;&gt;squircle&lt;/code&gt; produces much-more-satisfying rounded corners when we provide asymmetrical / elliptical values:&lt;/p&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;header&gt;&lt;p&gt;Code Playground &lt;/p&gt;&lt;div&gt;&lt;a href=&quot;https://codesandbox.io/api/v1/sandboxes/define?undefined&amp;amp;environment=parcel&quot;&gt;&lt;span&gt;Open in CodeSandbox&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/header&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;pre&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;style&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;
  .box &lt;span&gt;{&lt;/span&gt;
    &lt;span&gt;border&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;2&lt;/span&gt;&lt;span&gt;px&lt;/span&gt; &lt;span&gt;solid&lt;/span&gt; &lt;span&gt;tomato&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;border-radius&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;32&lt;/span&gt;&lt;span&gt;px&lt;/span&gt; / &lt;span&gt;64&lt;/span&gt;&lt;span&gt;px&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
    &lt;span&gt;corner-shape&lt;/span&gt;&lt;span&gt;:&lt;/span&gt; &lt;span&gt;squircle&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;
  &lt;span&gt;}&lt;/span&gt;
&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span&gt;style&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;

&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;div&lt;/span&gt; &lt;span&gt;class&lt;/span&gt;=&lt;span&gt;&amp;quot;box&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span&gt;div&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;h2&gt;&lt;span&gt;&lt;span&gt;Link to this heading&lt;/span&gt;&lt;/span&gt;Whimsical Animations&lt;/h2&gt;&lt;p&gt;If you’ve followed my work for a while, you know that I care &lt;em&gt;a lot&lt;/em&gt; about polish and aesthetics. I really want my products to feel good to use.&lt;/p&gt;&lt;p&gt;A &lt;em&gt;huge&lt;/em&gt; part of that comes from animations and interactions. I’ve spent nearly two decades figuring out how to use HTML/CSS, JavaScript, SVG, and Canvas to create one-of-a-kind user interfaces.&lt;/p&gt;&lt;p&gt;I share all of my secrets in my latest course, &lt;a href=&quot;https://whimsy.joshwcomeau.com/&quot;&gt;Whimsical &lt;span&gt;Animations&lt;span&gt;(opens in new tab)&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;&lt;div&gt;&lt;a href=&quot;https://whimsy.joshwcomeau.com/&quot;&gt;&lt;img src=&quot;https://www.joshwcomeau.com/_next/image/?url=%2Fimages%2Fwhimsical-animations.jpg&amp;amp;w=1920&amp;amp;q=75&quot; alt=&quot;Whimsical Animations, a course from Josh W. Comeau&quot; title=&quot;&quot;/&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;This course is currently 40% off for Black Friday, but that sale ends on December 2nd.&lt;/strong&gt; This is the first opportunity since the course launched earlier this year to pick it up at such a discounted price.&lt;/p&gt;&lt;p&gt;You can learn more here:&lt;/p&gt;&lt;ul&gt;
&lt;li&gt;&lt;div&gt;&lt;a href=&quot;https://whimsy.joshwcomeau.com/&quot;&gt;Whimsical &lt;span&gt;Animations&lt;span&gt;(opens in new tab)&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;div&gt;&lt;h3&gt;Last updated on&lt;/h3&gt;&lt;p&gt;December 1st, 2026&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;h3&gt;# of hits&lt;/h3&gt;&lt;/div&gt;&lt;/div&gt;</content:encoded>
</item>
<item>
<title>On a demandé 60 fois « écris une histoire » à Claude, GPT et Gemini : voici les tics que personne ne leur a appris</title>
<link>https://www.frandroid.com/culture-tech/3349525_on-a-demande-60-fois-ecris-une-histoire-a-claude-gpt-et-gemini-voici-les-tics-que-personne-ne-leur-a-appris</link>
<guid isPermaLink="false">OgNqEYd3OLljMFCISEfNmLsyyFWy8hs-sBTlqA==</guid>
<pubDate>Wed, 02 Dec 2026 15:56:44 +0000</pubDate>
<description>Un phare à 112 marches, une jeune femme qui entre en secouant son parapluie, un mardi où la mer oublie de revenir… On a envoyé vingt fois la même consigne à trois des IA les plus avancées du moment. Chacune nous a raconté, encore et encore, à peu près la même histoire.</description>
<content:encoded>&lt;p&gt;&lt;img src=&quot;https://img.frandroid.com/images.frandroid.com/wp-content/uploads/2026/12/ecris-une-histoire-test-ia-gpt-claude-gemini.jpg?resize=1200,675&amp;amp;key=1fb5fbae&quot; alt=&quot;&quot; title=&quot;&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;div&gt;&lt;div&gt;&lt;strong&gt;Un phare à 112 marches, une jeune femme qui entre en secouant son parapluie, un mardi où la mer oublie de revenir… On a envoyé vingt fois la même consigne à trois des IA les plus avancées du moment. Chacune nous a raconté, encore et encore, à peu près la même histoire.&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;&lt;/p&gt; &lt;a href=&quot;https://www.frandroid.com/culture-tech/3349525_on-a-demande-60-fois-ecris-une-histoire-a-claude-gpt-et-gemini-voici-les-tics-que-personne-ne-leur-a-appris?utm_medium=distibuted&amp;amp;utm_source=rss&amp;amp;utm_content=directlink&amp;amp;utm_campaign=3349525&quot;&gt;[Lire la suite]&lt;/a&gt;&lt;hr/&gt;&lt;div&gt;&lt;p&gt;Utilisez-vous &lt;a href=&quot;https://www.frandroid.com/humanoid/504162_frandroid-google-news-actu&quot;&gt;Google News (Actualités en France)&lt;/a&gt; ? Vous pouvez suivre vos médias favoris. Suivez &lt;strong&gt;&lt;a href=&quot;https://profile.google.com/cp/Cg0vZy8xMXM0MnAxYm1y&quot;&gt;Frandroid sur Google&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;&lt;p&gt;Pour nous soutenir gratuitement, dites simplement à Google d’&lt;a href=&quot;https://go.frandroid.com/gpreferredfr&quot;&gt;ajouter Frandroid à vos sources préférées en cliquant ici&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;</content:encoded>
</item>
<item>
<title>Introducing Laravel Rust | Laravel Blog</title>
<link>https://laravel.com/blog/introducing-laravel-for-rust</link>
<enclosure type="image/jpeg" length="0" url="https://fls-9f826fcc-b2ad-40d8-813f-9cf7dac049fa.laravel.cloud/cms/posts/og-images/laravel-blog-introducing-laravel-for-rust.jpg"></enclosure>
<guid isPermaLink="false">dWazcdY9Vv33uuLlsFNunVM6cLTypD-4agI43A==</guid>
<pubDate>Wed, 02 Dec 2026 03:56:06 +0000</pubDate>
<description>Laravel Rust is in beta, with routing, typed validation, models, queues, durable workflows, mail, broadcasting, and Inertia in idiomatic Rust.</description>
<content:encoded>&lt;p&gt;Today we are releasing the first beta of &lt;a href=&quot;https://laravel.com/rust&quot;&gt;Laravel Rust&lt;/a&gt;, bringing the full-stack philosophy and feature set of Laravel to Rust, including routing, middleware, sessions, authentication, database models, queues, mail, workflows, and testing helpers.&lt;/p&gt;&lt;p&gt;Laravel Rust is not a blind port of Laravel to Rust. It is Laravel reimagined in idiomatic Rust for a modern, high-performance stack, thoughtfully curated for a great developer experience when building with AI. Every new application ships with built-in agent skills that guide coding agents on how to write and test idiomatic Laravel Rust code.&lt;/p&gt;&lt;p&gt;Laravel Rust is built with &lt;a href=&quot;https://laravel.com/blog/a-letter-to-the-laravel-community&quot;&gt;the forward-looking perspective&lt;/a&gt; that humans will increasingly neither write nor manually read application code at scale. In that world, strong guardrails, strict compilers, and batteries-included conventions matter more than ever.&lt;/p&gt;&lt;p&gt;Laravel Rust brings the battle-tested conventions, philosophy, and productivity of Laravel to Rust as a high-performance full-stack framework built to thrive in the AI age, giving you a solid foundation to build the most ambitious, mission-critical web applications of the future.&lt;/p&gt;&lt;p&gt;Today, Laravel Rust is near feature parity to &lt;a href=&quot;https://laravel.com/php&quot;&gt;Laravel PHP&lt;/a&gt;, and the small gaps that remain will be closed within the coming weeks.&lt;/p&gt;&lt;p&gt;There is far too much in this release to cover in a single blog post, so the sections below walk through only some of the highlights. To explore everything Laravel Rust includes, from authentication, encryption, and file storage to task scheduling, console commands, and package development, dig into the full &lt;a href=&quot;https://laravel.com/rust/docs&quot;&gt;Laravel Rust documentation&lt;/a&gt;.&lt;/p&gt;&lt;h2&gt;#Extreme performance and async to the core&lt;/h2&gt;&lt;p&gt;In our &lt;a href=&quot;https://laravel.com/blog/laravel-rust-benchmark&quot;&gt;internal benchmarks&lt;/a&gt; on &lt;a href=&quot;https://laravel.com/cloud&quot;&gt;Laravel Cloud&lt;/a&gt;, Laravel Rust runs 18x faster than Laravel PHP while using significantly less CPU and memory, significantly decreasing infrastructure cost, tail latency, and increasing how much traffic a single instance can absorb during a spike.&lt;/p&gt;&lt;p&gt;Laravel Rust is built end-to-end on &lt;a href=&quot;https://docs.rs/axum&quot;&gt;Axum&lt;/a&gt; and &lt;a href=&quot;https://tokio.rs&quot;&gt;Tokio&lt;/a&gt;, so the entire stack is asynchronous at its core: HTTP handlers, middleware, database queries, the HTTP client, Redis, queues, S3, SQS, and WebSockets are all non-blocking, and blocking work such as bcrypt password hashing and local disk I/O is offloaded onto Tokio&amp;#39;s blocking thread pool. When one request waits on a slow database query, a third-party webhook, or a long-running AI API call, those same threads keep serving thousands of other requests, background tasks, and queue jobs without stalling.&lt;/p&gt;&lt;p&gt;Rust&amp;#39;s type system unlocks huge improvements across the framework. Database column names, relationships, validated form inputs, authorization checks, and secret values are verified at compile time before your code reaches production.&lt;/p&gt;&lt;h2&gt;#Routing and handlers&lt;/h2&gt;&lt;p&gt;When someone visits a page or submits a form, Laravel matches the request against the routes you register in &lt;code&gt;src/routes/web.rs&lt;/code&gt; and &lt;code&gt;src/routes/api.rs&lt;/code&gt;. You can start with inline closures, use route model binding to load a record directly from a URI segment, and move larger endpoints into handler modules under &lt;code&gt;src/http/handlers/&lt;/code&gt;:&lt;/p&gt;</content:encoded>
</item>
<item>
<title>The History of Hosting — an archival history of web hosting</title>
<link>https://history-of-webhosting.exe.xyz/</link>
<guid isPermaLink="false">bLbdY19RiqCUL8aFry0amlxY3wFNpqNpU36oDw==</guid>
<pubDate>Wed, 02 Dec 2026 03:56:06 +0000</pubDate>
<description>2000 — 2009The 2000s</description>
<content:encoded>&lt;h2&gt;&lt;span&gt;2000 — 2009&lt;/span&gt;The 2000s&lt;/h2&gt;&lt;p&gt;On September 11, 2001, a user named microsol posted &amp;quot;Terrible plane crash in New York&amp;quot; to WebHostingTalk, linking to CNN. The thread accumulated 506 replies, some of which veered into a debate about whether Sri Lanka&amp;#39;s Buddhist response to the Taliban&amp;#39;s destruction of the Bamiyan statues offered a model for civilized restraint. This was a hosting forum. It was also, like it or not, a community.&lt;/p&gt;&lt;p&gt;The decade began with four crawled threads in 2000 and a median plan price of $19.95 per month. By 2002, the crawl captured 119 threads, and someone using the handle sailor was offering an AMD XP 1700 dedicated server with 300GB of multi-homed bandwidth for $99 per month — an offer that drew 508 replies and at least one complaint about unanswered email. The median price that year was $29.00, the highest of the decade. They remember the scams.&lt;/p&gt;&lt;p&gt;&amp;quot;TimPD, earhost.com, paradise-designs.net All a SCAM!!&amp;quot; appeared in 2002, posted by Vortech, who alleged that a designer named Tim had promised refunds through a cascade of excuses — merchant account problems, checks in the mail, wire transfers pending — before going silent entirely. Seven hundred and fifty replies later, a user called clockwork observed that he would not do business with Tim, nor with most of the people posting in the thread. This was, perhaps, the forum&amp;#39;s first great lesson in counterparty risk: the person you were yelling at might also be the person hosting your mail.&lt;/p&gt;&lt;p&gt;The companies that dominated mention counts tell their own story. Google appeared 1,306 times, GoDaddy 1,018, eNom 972, BurstNET 856, ThePlanet 827. cPanel accumulated 3,443 technology mentions against PHP&amp;#39;s 2,782 and MySQL&amp;#39;s 998. DDoS appeared 853 times, which was a lot or not enough, depending on whether your server was among those turned off. In 2002, FDC was disconnected by Cogent, and a user called Aussie Bob offered his sympathies: &amp;quot;You&amp;#39;re dead in the water while your host is dead in the water.&amp;quot; ThePlanet went down in 2005, generating 750 replies, and again in 2008, when someone named tinkertim wondered what single machine was worth over half a million dollars monthly to lease. ThePlanet garnered 827 mentions, second only to BurstNET. AngelNetworkz, operated by Donna Mercer out of Toronto, collapsed in 2004, producing 659 replies and a separate thread about filing complaints with the Toronto Police Fraud Unit. RegisterFly&amp;#39;s implosion in 2006 drew 727 replies and a mention of ICANN warnings, because even domain registrars could fail.&lt;/p&gt;&lt;p&gt;The forum&amp;#39;s own infrastructure was not immune. In 2009, in a thread titled &amp;quot;Recent WHT down time,&amp;quot; SoftWareRevue reported that a sophisticated attacker had gained access to WHT&amp;#39;s offsite backup servers, deleted all backups, then dropped database tables. The user table — usernames, email addresses, hashed passwords — was posted to file-sharing sites. &amp;quot;I guess the option to hide my e-mail address on my profile no longer matters,&amp;quot; wrote DevMonkey, who had found the table downloadable via Google in under a minute.&lt;/p&gt;&lt;p&gt;Meanwhile, in 2009, a host called StableHost advertised unlimited bandwidth and disk for $1.75 per month, with a 50% off coupon for WHT visitors, and SSD drives in all shared machines. A customer asked whether that meant $1.98 per month after the code. The median plan price that year was $19.45. The decade had begun at $19.95. Everything had changed and nothing had.&lt;/p&gt;</content:encoded>
</item>
<item>
<title>Abolition: a piece in four voices</title>
<link>https://theanvilreview.org/web/abolition-a-piece-in-four-voices/</link>
<guid isPermaLink="false">8ZUHywSIcFkUcFM-hGjbWMjTVFle4OlcA9YMPg==</guid>
<pubDate>Wed, 02 Dec 2026 00:38:31 +0000</pubDate>
<description>Characters: The Author – Late 20s The Critic – Mid 30s The Bored - Early 40s The Curious – Unaltered by time The Librarian – An Ethereal Being</description>
<content:encoded>&lt;figure&gt;&lt;a href=&quot;https://theanvilreview.org/wp-content/uploads/2021/06/heart.jpg&quot;&gt;&lt;img src=&quot;https://theanvilreview.org/wp-content/uploads/2021/06/heart.jpg&quot; alt=&quot;&quot; title=&quot;&quot;/&gt;&lt;/a&gt;&lt;/figure&gt;&lt;p&gt;&lt;strong&gt;Characters:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;The Author&lt;/strong&gt; – Late 20s&lt;/li&gt;&lt;li&gt;&lt;strong&gt;The Critic&lt;/strong&gt; – Mid 30s&lt;/li&gt;&lt;li&gt;&lt;strong&gt;The Bored&lt;/strong&gt; – Early 40s&lt;/li&gt;&lt;li&gt;&lt;strong&gt;The Curious&lt;/strong&gt; – Unaltered by time&lt;/li&gt;&lt;li&gt;&lt;strong&gt;The Librarian&lt;/strong&gt; – An Ethereal Being&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;The action takes place in a library&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Int. Library – Day&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;The Critic sits at a wide library commons table, penciling frantically into a notebook. Around him lay various books: RD Laing, Reich, Foucault. Sweat drips from his brow as he runs his highlighter through a copy of &lt;/em&gt;The Politics of Experience&lt;em&gt;.&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;Another person, The Author, enters from the right, messenger bag with ACAB patch slung over their shoulder, catalog from AK Press in hand.&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Author: &lt;/strong&gt;So, you’re here, that must mean you’ve finally read my piece!&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Critic: &lt;/strong&gt;Well, yes, read it in a certain sense. I tend to call what I did to your piece &lt;em&gt;rage skimming&lt;/em&gt;.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Author: &lt;/strong&gt;Hmm, I take it you didn’t agree with my point then. Can I ask what you found so unappealing?&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Critic: &lt;/strong&gt;Well, before I answer your question, you can answer mine. Who exactly were you writing this for?&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Author: &lt;/strong&gt;Wasn’t it obvious? For anyone who cares about freedom and abolition, for anyone who has ever suffered from oppression, whether because of race, disability, or supposed madness. For anyone who has been labeled as crazy and deviant, and longs for spaces of healing outside the reach of the state and racial capitalism. Wasn’t that clear?&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Critic:&lt;/strong&gt; Hmmm, I think I would take issue with “anyone” there, it seems like having all those identity qualifiers kinda negates that…&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Author:&lt;/strong&gt; Wait, you mean like race and disability? Are you trying to make some kind of anti-identity argument to me? Are you reading Stirner AGAIN?&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Critic:&lt;/strong&gt; I will never read Stirner again, thank you very much. But no, I’m not necessarily making an anti-identity argument writ large. Obviously the way we go through the world is managed by both internal and external identifications. But when it comes to something like anti-psychiatry, to the ways that the system we live under regulates peoples’ psyches, don’t you think that kind of applies to everyone?&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Author:&lt;/strong&gt; Well, sure, I guess. And there should be space for everyone to heal, but I’m not sure we’re gonna learn a lot from a white boy on Zoloft, especially when compared to how much, for example, people of color have suffered from labels like &lt;em&gt;crazy &lt;/em&gt;and &lt;em&gt;schizophrenic&lt;/em&gt;.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Critic:&lt;/strong&gt; What do you mean by “learn”? You’re not just trying to have people share their experiences?&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Author:&lt;/strong&gt; Maybe, but we should be learning from those who suffer most from the systems we live under who still survive, to learn how to fight, right? Otherwise we’ll never get to total liberation, only to liberation for those who already have it good.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Critic:&lt;/strong&gt; Oh, so you mean Maoism?&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Author:&lt;/strong&gt; That shit again? How does this even remotely relate to Maoism?&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Critic:&lt;/strong&gt; You’re telling people to look at the most oppressed in a society, pick them out based on certain identities, and then tell people to help them as a path to revolution. Basically saying “if you’re not black, disabled, and crazy, your perspective isn’t revolutionary”.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Author:&lt;/strong&gt; You keep saying revolutionary, I never use that word.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Critic:&lt;/strong&gt; Ok, abolition then.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Author:&lt;/strong&gt; Man, sometimes you suck. Anyway, this isn’t about revolution, it’s about healing. I’m trying to point out the ways a system based on white supremacist, ableist bullshit targets people based on identity and then when it kills them, we radicals fail to acknowledge the full breadth of that targeting. We point out that a black person was murdered by police, but not that they were also disabled. How are we ever gonna get free if we don’t understand all the ways that the state seeks to label us as dangerous, deviant, or crazy?&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Critic: &lt;/strong&gt;What I’m trying to say to you is, if we’re all trying to get free why wouldn’t people want to focus on their own experience? I mean, sure, racism, ableism, etc. all exist as material ideologies in the world, but everyone has their own negative experience of them, even those who are more privileged. If we’re really going to be intersectional, we should be asking everyone to look at their own positions in this system, as it fucks everyone, even if unequally. You get at it a little bit in a couple places, in your own way, but they’re pretty brief.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Author: &lt;/strong&gt;&lt;em&gt;In my own way&lt;/em&gt;, what are you even talking about?&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Critic: &lt;/strong&gt;You mention that group that talks about schizophrenic people accepting and working with the voices they hear, what was it called?&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Author: &lt;/strong&gt;The Hearing Voices Network.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Critic: &lt;/strong&gt;Right, that I loved. That–telling people that their life isn’t just illness–is what I’m trying to get at. That’s helping people to look inward at their lived experience, and saying that it’s not just the result of some abnormal bio-neuro-psycho- chemistry, but instead that they have a particular experience of the world and of their psyche, and that’s ok.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Author:&lt;/strong&gt; Isn’t that the same thing you were just ranting at me about though? Picking out some kind of specialized, oppressed category and trying to learn from it?&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Critic: &lt;/strong&gt;Only partially. That is the starting point, but the lesson ripples out further. If everyone is oppressed by a totalitarian system, and people who are categorically labeled crazy can provide an example of how that system turns a regular part of their experience into an illness, it means that even people who are well adjusted or successful might be able to look into themselves, and see where pieces of them are cut off in order to fit into that same system.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Author: &lt;/strong&gt;It still kinda sounds like you’re agreeing with me…&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Critic: &lt;/strong&gt;I will never agree with you. It’s that self-reflective piece that you’re missing. You ask people to look at the most oppressed, the most downtrodden under these labels of crazy, disabled, raced, but you don’t ask people to then reflect on how the same system that crushes the super-oppressed also crushes them.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Author: &lt;/strong&gt;So you assume that the people reading my shit aren’t the most oppressed. They’re some white suburban housewife who pops pills to keep running their luxury children’s clothing boutique, who should look at their life and all the ways the system privileges them and be sad about it?&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Critic: &lt;/strong&gt;It would be a start! If you really want wide-scale societal change, wouldn’t some of it need to look like that?&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Author: &lt;/strong&gt;I dunno man, but what you’re describing just sounds like GOOP, and I’m not really into yoni eggs. Even if I accept that the system we live under affects even the privileged, what the fuck changes if they realize their lives could be better? Aren’t they our enemy?&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Critic: &lt;/strong&gt;Enemy, ally–those might make sense at a certain scale, but with a wide-enough lens they are just system terms like &lt;em&gt;crazy &lt;/em&gt;and &lt;em&gt;sane&lt;/em&gt;. It all works in the same binary that seeks to separate mind from body, individual from their experience, people under the boot of oppression from one another. If you start working outside that division, beneath it, behind it, that’s where you’ll start finding real connection, and a chance for real healing.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Author: &lt;/strong&gt;Sure man. Well, if you’re pushing that, I don’t see what the harm is in me pushing my position. I mean, can’t they both happen at the same time?&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Critic: &lt;/strong&gt;Hmmm, I guess? I dunno, feels like neither really gets us that far, but with mine you go in with eyes a bit more open.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Author: &lt;/strong&gt;So with less room for fantasy.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Critic:&lt;/strong&gt; Just different, smaller fantasies.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Author: &lt;/strong&gt;Ah, so you’re categorizing fantasies now!&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Critic: &lt;/strong&gt;Wait, just a min-&lt;/p&gt;&lt;p&gt;&lt;em&gt;The Librarian enters the frame.&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Librarian: &lt;/strong&gt;Please refrain from further conversation. You’re disturbing the other patrons as you fail to grasp how you are two sides of a single system, which always shifts, flexes, and works to strengthen itself through its opposition.&lt;/p&gt;&lt;p&gt;&lt;em&gt;The roof caves in over the shared library desk&lt;/em&gt;.&lt;/p&gt;&lt;p&gt;&lt;em&gt;Exit: The Author and The Critic&lt;/em&gt;.&lt;/p&gt;&lt;figure&gt;&lt;a href=&quot;https://theanvilreview.org/wp-content/uploads/2021/06/1884-haunted-library-2.jpg&quot;&gt;&lt;img src=&quot;https://theanvilreview.org/wp-content/uploads/2021/06/1884-haunted-library-2.jpg&quot; alt=&quot;&quot; title=&quot;&quot;/&gt;&lt;/a&gt;&lt;/figure&gt;&lt;p&gt;&lt;strong&gt;Int. Library, Children’s Area – Day&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;The Bored sits on a low stool, wearing a t-shirt emblazoned with the phrase “In the Dust of this Planet”.&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;Next to them sits The Curious, who appears to be an adult, and is wearing an adult-sized children’s French sailor uniform.&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;The crash of a ceiling collapsing is heard in the background.&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Curious: &lt;/strong&gt;What was that noise, friend?&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Bored: &lt;/strong&gt;Just the sound of dead ideas collapsing in on themselves.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Curious: &lt;/strong&gt;Should we be concerned?&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Bored: &lt;/strong&gt;I would say no, it seems to be the fate of most dialogues.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Curious: &lt;/strong&gt;Hmmm, well, I hope they enjoyed it while it lasted.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Bored: &lt;/strong&gt;What are you doing there with that marker?&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Curious: &lt;/strong&gt;I found this article on the way in, &lt;em&gt;Madness, Disability and Abolition&lt;/em&gt;. It was pretty interesting, but not sure that matters. Anyway, I’m just marking out words to make it &lt;em&gt;more&lt;/em&gt; interesting.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Bored&lt;/strong&gt;: Huh, and whaddya have so far?&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Curious: &lt;/strong&gt;“Mad often have different id relationships, the center most impacted depend on lived pipeline. If it seems impossible consider the mad people over half a million dropped lessons, this necessarily reframes “solution” psychiatric settings. We dream another world.”&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Bored: &lt;/strong&gt;You know that’s gibberish, right?&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Curious: &lt;/strong&gt;Have you read the original?&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Bored: &lt;/strong&gt;You know how I feel about your jokes.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Curious: &lt;/strong&gt;Killjoy. Well, the piece was interesting enough, but not exactly much fun.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Bored:&lt;/strong&gt; What exactly could anyone think was interesting about a piece that calls for anti-psychiatry to be put through a social justice lens?&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Curious: &lt;/strong&gt;That in itself! The author manages to both lay out a program for viewing anti-psychiatry through that external oppression lens, and then subverts it in spite of themselves at the same time! You can see the battle of their internal multitudes in real time!&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Bored: &lt;/strong&gt;So you think that seeing someone accidentally contradict themselves is interesting enough to continue engaging with it?&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Curious: &lt;/strong&gt;Interesting enough to engage with, but not important enough to take seriously.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Bored: &lt;/strong&gt;Are you about to start one of your spiels about ludic reading again?&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Curious: &lt;/strong&gt;Of course I am! What would be the good of reading if it weren’t to play?&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Bored: &lt;/strong&gt;I mean, there are all the ones that people typically say: to inform yourself, to find new ideas, to prompt emotion. I’m not sure any of those really do it for me, I mostly find repetition in reading, recycling old ideas in new contexts, which certainly works on some level, but only goes so far.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Curious: &lt;/strong&gt;Hmm, seems like the new context might make the ideas new too, but who am I to tell you how to feel.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Bored:&lt;/strong&gt; I don’t know that it’s really about a feeling…&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Curious: &lt;/strong&gt;There is a historical narrative/myth that ex-inmates fill an ant’s body with hyphae and takes control of its actions.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Bored: &lt;/strong&gt;Wait, what?&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Curious: &lt;/strong&gt;Despite the overlap between disability and other struggles for justice They can also direct the flow towards particular areas: when it is time to produce a mushroom especially in communities of color and among poor and trans communities.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Bored: &lt;/strong&gt;Stop talking to me in cut-ups!&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Curious: &lt;/strong&gt;But don’t you see! Just by placing those words into a new context, new ideas and associations arise!&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Bored: &lt;/strong&gt;I fail to see the new ideas created by putting struggles for justice and mushrooms into the same sentence.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Curious: &lt;/strong&gt;Well, let’s try again, they can’t all be winners: Since prisons and police reliance on its mycorrhizal partners is so complete that its roots struggle to absorb water, an abolitionist future, here and now, in our relationships, movements, and communities, that With a decentralised body that grows independently at every extremity, can look to these movements and their tactics for furthering our struggles together.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Bored: &lt;/strong&gt;Alright, well that one almost made sense, althou-&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Curious:&lt;/strong&gt; Some have evolved new colours, like the flaming crimson collective care, jaws rigid over their own communities and land. This is not hypothetical If we are to succeed in our struggles for liberation chemical plumes and microflows of pressurised liquid are, after all, dreaming new worlds (back) into existence.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Bored: &lt;/strong&gt;This is worthless, you are just playing, it means nothing. You can read as creatively as you like, but what you produce remains locked in your head.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Curious: &lt;/strong&gt;Solving mazes and complex routing problems are non-trivial exercises. We can also submit reportbacks of direct action to integrate the streams of impulses from the foraging tips. Yet it is important to acknowledge that intersectionality in our movements is not new, The question of fungal sentience hovers in the background, like the ambiguous ghosts of spirit photography.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Bored:&lt;/strong&gt; I think I’ll leave you to your game, I need a smoke.&lt;/p&gt;&lt;p&gt;&lt;em&gt;Exit The Bored&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Curious: &lt;/strong&gt;How rapidly, how finely must the network be communicating and acting to puppeteer the central nervous system Following the re-writing of diagnostic criteria in 1968, schizophrenia became a “disease”. Lichens, for instance, whose existence is often glossed as a symbiosis between plant and fungus insists that barriers to access don’t exist at the level of the individual, pushing up through damp soil overnight or delicately forcing itself out through the bark of a rotting log. The same is true of most mobile crisis intervention units, Discovered 10,000 years ago, We can see this in our own bodies supporting individuals to define their own experiences, and to make autonomous decisions about their lives.&lt;/p&gt;&lt;p&gt;&lt;em&gt;Enter The Bored, The Librarian (floating)&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Bored: &lt;/strong&gt;This, uh, entity has informed me that ultimately your exercise in creative reading only serves a generative purpose if it can be shared with others, otherwise it is your typical, opaque, artsy-fartsy, special snow-flakery. Oh, also the library is closing.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Curious: &lt;/strong&gt;Ah, but don’t you know, just in running the exercise I’ve opened my mind to new possibilities in any text I encounter! It might have come off as bad poetry now, but the next time I can do it with another, and together we can make something meaningful just through the doing!&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Bored: &lt;/strong&gt;Well, just don’t expect anyone else to ever care about what you’re saying.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Librarian: &lt;/strong&gt;Outside the circle, things will always lose their sheen. &lt;/p&gt;&lt;p&gt;&lt;em&gt;&lt;strong&gt;End&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;This Piece References: &lt;a href=&quot;https://anarchistnews.org/content/madness-disability-and-abolition-0&quot;&gt;Madness, Abolition and Disability&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;</content:encoded>
</item>
<item>
<title>bibtexbrowser – web-based bibliography publishing tool</title>
<link>https://www.linuxlinks.com/bibtexbrowser-web-based-bibliography-publishing-tool/</link>
<guid isPermaLink="false">83LNHwJVJaGTZPvW5iv6w3n2u2tIYcmLwuLz2w==</guid>
<pubDate>Tue, 01 Dec 2026 07:32:23 +0000</pubDate>
<description>bibtexbrowser publishes searchable bibliographies from BibTeX files, with customizable reference styles, filtering and RSS feeds. The post bibtexbrowser – web-based bibliography publishing tool appeared first on LinuxLinks.</description>
<content:encoded>&lt;p&gt;bibtexbrowser publishes searchable bibliographies from BibTeX files, with customizable reference styles, filtering and RSS feeds.&lt;/p&gt;&lt;p&gt;The post &lt;a href=&quot;https://www.linuxlinks.com/bibtexbrowser-web-based-bibliography-publishing-tool/&quot;&gt;bibtexbrowser – web-based bibliography publishing tool&lt;/a&gt; appeared first on &lt;a href=&quot;https://www.linuxlinks.com&quot;&gt;LinuxLinks&lt;/a&gt;.&lt;/p&gt;</content:encoded>
</item>
<item>
<title>ZoteroBib – online bibliography generator</title>
<link>https://www.linuxlinks.com/zoterobib-online-bibliography-generator/</link>
<guid isPermaLink="false">EvROZgc9y0JnKE-c8bgunhjhQRClIwnX882IFg==</guid>
<pubDate>Tue, 01 Dec 2026 07:32:23 +0000</pubDate>
<description>ZoteroBib generates bibliographies and in-text citations from publication identifiers and web pages, with customizable citation styles. The post ZoteroBib – online bibliography generator appeared first on LinuxLinks.</description>
<content:encoded>&lt;p&gt;ZoteroBib generates bibliographies and in-text citations from publication identifiers and web pages, with customizable citation styles.&lt;/p&gt;&lt;p&gt;The post &lt;a href=&quot;https://www.linuxlinks.com/zoterobib-online-bibliography-generator/&quot;&gt;ZoteroBib – online bibliography generator&lt;/a&gt; appeared first on &lt;a href=&quot;https://www.linuxlinks.com&quot;&gt;LinuxLinks&lt;/a&gt;.&lt;/p&gt;</content:encoded>
</item>
<item>
<title>BookOrbit – ebook and audiobook library</title>
<link>https://www.linuxlinks.com/bookorbit-ebook-audiobook-library/</link>
<guid isPermaLink="false">21IhKOOEAuIYAjs4EAL3QPAi27H_6RgbCa7XpA==</guid>
<pubDate>Tue, 01 Dec 2026 07:32:23 +0000</pubDate>
<description>BookOrbit is a self-hosted library for ebooks, comics and audiobooks, with integrated readers, device syncing and reading statistics. The post BookOrbit – ebook and audiobook library appeared first on LinuxLinks.</description>
<content:encoded>&lt;p&gt;BookOrbit is a self-hosted library for ebooks, comics and audiobooks, with integrated readers, device syncing and reading statistics.&lt;/p&gt;&lt;p&gt;The post &lt;a href=&quot;https://www.linuxlinks.com/bookorbit-ebook-audiobook-library/&quot;&gt;BookOrbit – ebook and audiobook library&lt;/a&gt; appeared first on &lt;a href=&quot;https://www.linuxlinks.com&quot;&gt;LinuxLinks&lt;/a&gt;.&lt;/p&gt;</content:encoded>
</item>
<item>
<title>Ladybird Alpha is better than expected | Christiano Anderson</title>
<link>https://christiano.dev/post/ladybird_alpha_is_better_than_expected/</link>
<guid isPermaLink="false">JHqzj9vpGU1nwXXx30_u1HCVfF12eo9XNvLsEA==</guid>
<pubDate>Sun, 29 Nov 2026 13:12:23 +0000</pubDate>
<description>For over a decade, the web has effectively run three engines: Chromium, WebKit, and Gecko. Chrome’s engine dominates, and when one company controls the engine that renders the web for most users, the openweb becomes whatever that company says it is. Ladybird matters because it’s the first genuinely new independent browser engine to reach users in decades. It’s built from scratch, beholden to no one, and compliant only with web standards rather than with any company’s interests.</description>
<content:encoded>&lt;p&gt;For over a decade, the web has effectively run three engines: Chromium, WebKit, and Gecko.
Chrome’s engine dominates, and when one company controls the engine that renders the web for most users, the openweb becomes whatever that company says it is.
Ladybird matters because it’s the first genuinely new independent browser engine to reach users in decades.&lt;/p&gt;&lt;p&gt;It’s built from scratch, beholden to no one, and compliant only with web standards rather than with any company’s interests.&lt;/p&gt;&lt;h2&gt;The initiative behind it#&lt;/h2&gt;&lt;p&gt;Ladybird began in 2019 as a simple HTML viewer inside SerenityOS. It was a hobby project and went standalone in 2022.
Today, it’s developed by the &lt;a href=&quot;https://ladybird.org/&quot;&gt;Ladybird Browser Initiative&lt;/a&gt;, a non-profit with a simple goal: build a browser, nothing else.&lt;/p&gt;&lt;p&gt;It’s funded entirely by donations, and sponsors like Cloudflare, Proton, Shopify (among others) get no board seats and no say in the roadmap. No pressure from those companies.
The project doesn’t take money from search engines, and there is no monetisation based on user data.&lt;/p&gt;&lt;p&gt;On 23 November 2026, after years of work, the first &lt;a href=&quot;https://ladybird.org/posts/alpha/&quot;&gt;alpha was released&lt;/a&gt; for macOS and Linux, with updates on a rolling channel.&lt;/p&gt;&lt;h2&gt;My experience#&lt;/h2&gt;&lt;p&gt;I installed the alpha on my Fedora Linux machine, via the official Flatpak channel. It’s just one command:&lt;/p&gt;&lt;pre&gt;&lt;code&gt;flatpak install --from https://flatpak.ladybird.org/ladybird.flatpakref&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;My honest reaction: it &lt;em&gt;does not&lt;/em&gt; feel like alpha software. The browser is super stable, and lightweight, it starts fast and stays stable after opening many tabs, this is where other browsers began to feel bloated.
Most webpages just worked with no issues at all. That’s really amazing for an engine written entirely from scratch, with zero code borrowed from Chromium, WebKit or Gecko.&lt;/p&gt;&lt;p&gt;There might be bugs, of course, this is an alpha, and the team is upfront that there are no security guarantees yet. So, don’t make it your daily driver, just test it for fun and help the project by &lt;a href=&quot;https://github.com/LadybirdBrowser/ladybird/issues&quot;&gt;reporting bugs&lt;/a&gt; and what breaks.&lt;/p&gt;&lt;p&gt;What I liked: clean interface, native content filter:&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://christiano.dev/images/ladybird_content_filter.png&quot; alt=&quot;Ladybird Content Filter&quot; title=&quot;&quot;/&gt;&lt;/p&gt;&lt;p&gt;I’m really impressed! I’ll follow the project closely.&lt;/p&gt;</content:encoded>
</item>
<item>
<title>TaleBook – self-hosted ebook library</title>
<link>https://www.linuxlinks.com/talebook-self-hosted-ebook-library/</link>
<guid isPermaLink="false">xuRFMp1P-UkEv8oP2itsfcnxNH-SZzNd72deNg==</guid>
<pubDate>Sun, 29 Nov 2026 09:52:28 +0000</pubDate>
<description>TaleBook is a Calibre-based ebook library with browser reading, metadata lookup, OPDS access, multi-user accounts and Kindle delivery. The post TaleBook – self-hosted ebook library appeared first on LinuxLinks.</description>
<content:encoded>&lt;p&gt;TaleBook is a Calibre-based ebook library with browser reading, metadata lookup, OPDS access, multi-user accounts and Kindle delivery.&lt;/p&gt;&lt;p&gt;The post &lt;a href=&quot;https://www.linuxlinks.com/talebook-self-hosted-ebook-library/&quot;&gt;TaleBook – self-hosted ebook library&lt;/a&gt; appeared first on &lt;a href=&quot;https://www.linuxlinks.com&quot;&gt;LinuxLinks&lt;/a&gt;.&lt;/p&gt;</content:encoded>
</item>
<item>
<title>Nine Inch Nails fans can now stream nearly 2000 live recordings - CDM Create Digital Music</title>
<link>https://cdm.link/nin-live-streaming/</link>
<enclosure type="image/jpeg" length="0" url="https://cdm.link/app/uploads/2026/11/nin-peel-it-back-1.jpeg"></enclosure>
<guid isPermaLink="false">8OIY0bntyu4-KBMRHYkUnTUbaKrjNRFT4VbnWQ==</guid>
<pubDate>Sun, 29 Nov 2026 05:29:52 +0000</pubDate>
<description>NIN fans, it&#39;s a momentous week. For nearly 20 years, the Nine Inch Nails archive has been compiling live shows from 1988 to today; that&#39;s now nearly 2000 recordings of over 1200 concerts. The site is a pleasure to navigate now, and this week came big news: streaming, on demand.</description>
<content:encoded>&lt;p&gt;For fans of NIN and all the artists and their side projects, it’s a momentous week. For nearly 20 years, the Nine Inch Nails archive has been compiling live shows from 1988 to today; that’s now nearly 2000 recordings of over 1200 concerts. The site is a pleasure to navigate now, and this week came big news: streaming, on demand.&lt;/p&gt;&lt;p&gt;Yeah, forget generative slop on Spotify. I want to be transported to a concert. Streaming now covers 2009-2026, with 1988-2008 coming any day now.&lt;/p&gt;&lt;p&gt;It’s fun just reading the news updates: “Added an uncirculated DAT recording to the 04/28/1994 Los Angeles show. First recording available from the third and final night! … Added Hugo’s uncirculated DAT master recording to the 05/20/2009 Irvine show. … Added a pro-shot video recording to the 10/06/2025 LA Tron Ares Premiere.”&lt;/p&gt;&lt;p&gt;&lt;em&gt;“Mommy, what’s a DAT?” “Hold on, Mommy has a stack, let me show you…” &lt;/em&gt;uh&lt;em&gt; “grandchild” &lt;/em&gt;probably&lt;em&gt;.&lt;/em&gt;&lt;/p&gt;&lt;p&gt;The navigation is really a model for how to do this. You can jump straight to recommended and pro recordings at top, look by artist names (Pigface to Trent &amp;amp; Atticus), or traverse &lt;a href=&quot;https://ninlive.com/artists/nin/eras&quot;&gt;eras and tours&lt;/a&gt;, among other pathways.&lt;/p&gt;&lt;p&gt;I really like the bootleg quality of some of these; they capture more of the vibe of being at a live show than a lot of pro capture does so — take notes, fellow artists, of how documentation can work.&lt;/p&gt;&lt;p&gt;Enjoy:&lt;/p&gt;&lt;figure&gt;&lt;div&gt;

&lt;/div&gt;&lt;/figure&gt;&lt;p&gt;Check the full site — totally unofficial, all fan-driven, originally dubbed Reflecting In The Chrome (RITC), no affiliation with the bands/artists or labels. It’s an incredible piece of work, even proof that the Old Internet can thrive today. From their &lt;a href=&quot;https://ninlive.com/about&quot;&gt;about page:&lt;/a&gt;&lt;/p&gt;&lt;blockquote&gt;
&lt;p&gt;NIN Live (Reflecting in the Chrome) was created in 2008 at the end of The Lights in the Sky tour. Over the years NIN has been captured live by many people; there are hundreds upon hundreds of recordings. However, there was not a site that collected these recordings and shared them with NIN fans. ninlive is an archive of Nine Inch Nails’ live recordings over the last 20 years. All recordings are available for download free of charge.&lt;/p&gt;



&lt;p&gt;This site was also formed to create a single external hard drive that contains all NIN recordings, aptly called the NIN Drive. Every live NIN recording in existence is on it and is available to anyone who would like it. Visit our &lt;a href=&quot;https://ninlive.com/drive&quot;&gt;NIN Drive&lt;/a&gt; page for details.&lt;/p&gt;
&lt;/blockquote&gt;&lt;p&gt;&lt;a href=&quot;https://ninlive.com&quot;&gt;&lt;strong&gt;https://ninlive.com&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;&lt;div&gt;
          &lt;div&gt;
                      &lt;/div&gt;
        &lt;/div&gt;&lt;div&gt;
    		    			&lt;div&gt;
&lt;/div&gt;
		      		&lt;/div&gt;&lt;div&gt;
  				&lt;div&gt;
    				&lt;div&gt;
              &lt;a href=&quot;https://cdm.link/korgs-phase8-update-companion/&quot;&gt;&lt;h4&gt;Previous post&lt;/h4&gt;&lt;h5&gt;Korg’s phase8 acoustic synthesizer adds companion app, updated firmware&lt;/h5&gt;&lt;/a&gt;    				&lt;/div&gt;
    				&lt;div&gt;
              &lt;a href=&quot;https://cdm.link/photophore-2-auv3/&quot;&gt;&lt;h4&gt;Next post&lt;/h4&gt;&lt;h5&gt;Photophore 2, a 100-oscillator iOS/AUv3 flock synth twelve years in the making&lt;/h5&gt;&lt;/a&gt;    				&lt;/div&gt;
  				&lt;/div&gt;
				&lt;/div&gt;&lt;div&gt;
          &lt;h3&gt;Related posts&lt;/h3&gt;
          &lt;div&gt;
            &lt;div&gt;
              
                                  &lt;div&gt;
                      &lt;div&gt;
                        &lt;div&gt;
                          &lt;div&gt;
                            &lt;div&gt;
                              &lt;a href=&quot;https://cdm.link/tag/history/&quot;&gt;history&lt;/a&gt;                            &lt;/div&gt;
                            &lt;a href=&quot;https://cdm.link/laurie-spiegel-in-space/&quot;&gt;Laurie Spiegel’s cosmic sounds of Kepler passed one light day from Earth&lt;/a&gt;
                          &lt;/div&gt;
                        &lt;/div&gt;
                      &lt;/div&gt;
                    &lt;/div&gt;
                                    &lt;div&gt;
                      &lt;div&gt;
                        &lt;div&gt;
                          &lt;div&gt;
                            &lt;div&gt;
                              &lt;a href=&quot;https://cdm.link/tag/free/&quot;&gt;free&lt;/a&gt;&lt;a href=&quot;https://cdm.link/tag/free-as-in-beer-2/&quot;&gt;free as in beer&lt;/a&gt;&lt;a href=&quot;https://cdm.link/tag/web/&quot;&gt;Web&lt;/a&gt;                            &lt;/div&gt;
                            &lt;a href=&quot;https://cdm.link/korgs-phase8-update-companion/&quot;&gt;Korg’s phase8 acoustic synthesizer adds companion app, updated firmware&lt;/a&gt;
                          &lt;/div&gt;
                        &lt;/div&gt;
                      &lt;/div&gt;
                    &lt;/div&gt;
                                    &lt;div&gt;
                      &lt;div&gt;
                        &lt;div&gt;
                          &lt;div&gt;
                            &lt;div&gt;
                              &lt;a href=&quot;https://cdm.link/tag/free/&quot;&gt;free&lt;/a&gt;                            &lt;/div&gt;
                            &lt;a href=&quot;https://cdm.link/seek-sick-sets-from-sitka-zuggamasta-hellocatfood/&quot;&gt;Seek sick sets from SITKA, Zuggamasta, hellocatfood, in cables and code&lt;/a&gt;
                          &lt;/div&gt;
                        &lt;/div&gt;
                      &lt;/div&gt;
                    &lt;/div&gt;
                                    &lt;div&gt;
                      &lt;div&gt;
                        &lt;div&gt;
                          &lt;div&gt;
                            &lt;div&gt;
                              &lt;a href=&quot;https://cdm.link/tag/history/&quot;&gt;history&lt;/a&gt;                            &lt;/div&gt;
                            &lt;a href=&quot;https://cdm.link/reading-rainbow-buchla-marf-steve-horelick/&quot;&gt;Reading Rainbow, the Buchla synth’s “MARF,” and a prototype’s live debut&lt;/a&gt;
                          &lt;/div&gt;
                        &lt;/div&gt;
                      &lt;/div&gt;
                    &lt;/div&gt;
                            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;&lt;div&gt;
            &lt;div&gt;
              

            &lt;/div&gt;
          &lt;/div&gt;</content:encoded>
</item>
<item>
<title>Immediate Intent vs. Optimistic Update</title>
<link>https://romshark.github.io/ux-immediate-intent/</link>
<guid isPermaLink="false">7778TRGsIYF6Ff6jLTMfedKMCk8yduq9U-16_w==</guid>
<pubDate>Sat, 28 Nov 2026 23:08:21 +0000</pubDate>
<description>Optimistic updates show a result before it’s saved, and sometimes it never is. Immediate intent shows what’s actually happening. An interactive comparison.</description>
<content:encoded>&lt;section&gt;
    &lt;div&gt;
      &lt;div&gt;Optimistic update &lt;span&gt;Bad&lt;/span&gt;&lt;/div&gt;
      &lt;div&gt;Immediate intent &lt;span&gt;Good&lt;/span&gt;&lt;/div&gt;
    &lt;/div&gt;
    
  &lt;/section&gt;&lt;section&gt;
    &lt;div&gt;
      
      &lt;div&gt;
        &lt;h2&gt;Immediate intent can save lives!#&lt;/h2&gt;
        &lt;p&gt;Picture a cloud-based medication tracker. You take your morning pill 💊, tap &lt;b&gt;Track Pill&lt;/b&gt; and close the app. That evening, you open it again, and... &lt;i&gt;didn’t I install this app to &lt;b&gt;help&lt;/b&gt; me remember&lt;/i&gt;?!&lt;/p&gt;
      &lt;/div&gt;
    &lt;/div&gt;

    

    &lt;div&gt;
      
      
    &lt;/div&gt;

    &lt;p&gt;Unlike optimistic updates, immediate intent doesn’t give you a false sense of safety.&lt;/p&gt;

    &lt;div&gt;
      &lt;details&gt;
        &lt;summary&gt;Real cases&lt;/summary&gt;
        &lt;div&gt;
          &lt;ul&gt;
            &lt;li&gt;&lt;b&gt;Orders that silently went nowhere.&lt;/b&gt; The VA’s new health record system failed to deliver over 11,000 clinical orders and never told the clinicians who sent them. 149 patients were harmed, including a veteran at risk of suicide whose psychiatric follow-up was lost. &lt;a href=&quot;https://www.oversight.gov/sites/default/files/oig-reports/VA/VAOIG-22-01137-204.pdf&quot;&gt;VA OIG, 2022&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;b&gt;A pump that forgot the last dose.&lt;/b&gt; After certain errors, the MiniMed 670G insulin pump showed 0.0 units of active insulin right after a large dose. A user who dosed again risked severe hypoglycemia. &lt;a href=&quot;https://www.accessdata.fda.gov/scripts/cdrh/cfdocs/cfRes/res.cfm?ID=187401&quot;&gt;FDA recall, 2021&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;b&gt;Insulin skipped without a word.&lt;/b&gt; A bug in the Tandem Mobi Android app could drop part of an insulin dose without a distinct alert. &lt;a href=&quot;https://www.accessdata.fda.gov/scripts/cdrh/cfdocs/cfRes/res.cfm?id=223287&quot;&gt;FDA recall, 2026&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
        &lt;/div&gt;
      &lt;/details&gt;
    &lt;/div&gt;
  &lt;/section&gt;&lt;section&gt;
    &lt;div&gt;
      
      &lt;div&gt;
        &lt;h2&gt;Optimistic updates &lt;s&gt;save&lt;/s&gt; &lt;b&gt;waste&lt;/b&gt; time.#&lt;/h2&gt;
        &lt;p&gt;Once an app has lied to you, you stop trusting it. So you double-check everything yourself.&lt;/p&gt;
      &lt;/div&gt;
    &lt;/div&gt;

    

    &lt;div&gt;
      
      
    &lt;/div&gt;

    &lt;p&gt;Okay, okay... these numbers are not empirically measured, yet I bet you will agree that software you can &lt;i&gt;trust&lt;/i&gt; saves you time.&lt;/p&gt;

    &lt;div&gt;
      &lt;details&gt;
        &lt;summary&gt;What research says&lt;/summary&gt;
        &lt;div&gt;
          &lt;ul&gt;
            &lt;li&gt;&lt;b&gt;One visible error is enough.&lt;/b&gt; People avoid an algorithm after seeing it make a mistake, even when it outperforms humans. &lt;a href=&quot;https://repository.upenn.edu/fnce_papers/58&quot;&gt;Dietvorst et al., 2015&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;b&gt;Seeing failures makes people verify.&lt;/b&gt; Operators who saw an automated aid fail checked its advice more carefully afterwards. &lt;a href=&quot;https://depositonce.tu-berlin.de/handle/11303/8827&quot;&gt;Bahner et al., 2008&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;b&gt;Checking breeds doubt.&lt;/b&gt; The more people re-checked, the less they trusted their own memory, even though it stayed just as accurate. &lt;a href=&quot;https://dare.uva.nl/id/09781f10-f8d7-40f2-b33a-0fab9bbfe5bd&quot;&gt;van den Hout &amp;amp; Kindt, 2003&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
        &lt;/div&gt;
      &lt;/details&gt;
    &lt;/div&gt;
  &lt;/section&gt;&lt;section&gt;
    &lt;div&gt;
      
      &lt;div&gt;
        &lt;h2&gt;Don’t &lt;i&gt;pretend&lt;/i&gt; to be fast. &lt;i&gt;Be&lt;/i&gt; fast.#&lt;/h2&gt;
        &lt;p&gt;Under about 100 ms, a response &lt;a href=&quot;https://www.nngroup.com/articles/response-times-3-important-limits/&quot;&gt;feels instant&lt;/a&gt;, so you can even skip the pending state when the response arrives that fast. Get there for real, with a faster backend and servers close to your users.&lt;/p&gt;
      &lt;/div&gt;
    &lt;/div&gt;

    

    &lt;div&gt;
      
      
    &lt;/div&gt;

    &lt;p&gt;Optimistic updates hide latency. Fast infrastructure removes it. If you can’t be fast, at least be honest.&lt;/p&gt;

    &lt;div&gt;
      &lt;details&gt;
        &lt;summary&gt;Make it fast and move it closer&lt;/summary&gt;
        &lt;div&gt;
          &lt;ul&gt;
            &lt;li&gt;&lt;b&gt;Find where the time goes.&lt;/b&gt; The standard reference on profiling and tuning servers. &lt;a href=&quot;https://www.brendangregg.com/systems-performance-2nd-edition-book.html&quot;&gt;Brendan Gregg, Systems Performance&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;b&gt;Speed up the database.&lt;/b&gt; A slow backend is often waiting on slow queries. A free guide to indexing them. &lt;a href=&quot;https://use-the-index-luke.com/&quot;&gt;Markus Winand, Use The Index, Luke!&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;b&gt;Know your numbers.&lt;/b&gt; How long a memory read, a disk seek or a round trip across the world takes. &lt;a href=&quot;https://colin-scott.github.io/personal_website/research/interactive_latency.html&quot;&gt;Latency numbers every programmer should know&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;b&gt;Fix the slowest responses.&lt;/b&gt; When a request touches many servers, rare slow ones slow down most requests. &lt;a href=&quot;https://research.google/pubs/the-tail-at-scale/&quot;&gt;Dean &amp;amp; Barroso, The Tail at Scale&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;b&gt;You can’t beat the speed of light.&lt;/b&gt; Why distance sets a floor on latency, however fast your code is. &lt;a href=&quot;https://hpbn.co/primer-on-latency-and-bandwidth/&quot;&gt;Ilya Grigorik, High Performance Browser Networking&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;b&gt;See how far away your users are.&lt;/b&gt; Real round-trip times between cities around the world. &lt;a href=&quot;https://wondernetwork.com/pings&quot;&gt;WonderNetwork global pings&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;b&gt;Meet users at the edge.&lt;/b&gt; Servers near users set up connections faster, even for requests that go on to yours. &lt;a href=&quot;https://hpbn.co/transport-layer-security-tls/#early-termination&quot;&gt;Ilya Grigorik, Early Termination&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;b&gt;Bring the data along.&lt;/b&gt; Replication and its trade-offs, for when the database has to be close too. &lt;a href=&quot;https://dataintensive.net/&quot;&gt;Martin Kleppmann, Designing Data-Intensive Applications&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
        &lt;/div&gt;
      &lt;/details&gt;
    &lt;/div&gt;
  &lt;/section&gt;&lt;section&gt;
    &lt;div&gt;
      
      &lt;div&gt;
        &lt;h2&gt;We don’t have to block interaction.#&lt;/h2&gt;
        &lt;p&gt;There’s no need to freeze the board to remain honest: just show the intent on the card and keep the position. If it fails, return the card to its last confirmed position and explain what happened.&lt;/p&gt;
      &lt;/div&gt;
    &lt;/div&gt;

    

    &lt;div&gt;
      
      
    &lt;/div&gt;

    &lt;div&gt;
      &lt;details&gt;
        &lt;summary&gt;Get the details right and make it smooth&lt;/summary&gt;
        &lt;div&gt;
          &lt;ul&gt;
            &lt;li&gt;&lt;b&gt;Cancel what’s outdated.&lt;/b&gt; Abort an in-flight request when the user moves the card again. &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/API/AbortController&quot;&gt;MDN, AbortController&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;b&gt;Ignore late answers.&lt;/b&gt; Why an old response can overwrite a newer one, and the simple flag that prevents it. &lt;a href=&quot;https://react.dev/learn/synchronizing-with-effects#fetching-data&quot;&gt;React docs, Fetching data&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;b&gt;Make retries safe.&lt;/b&gt; Idempotency keys, from the API that made them popular. &lt;a href=&quot;https://stripe.com/blog/idempotency&quot;&gt;Stripe, Designing APIs with idempotency&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;b&gt;Send where, not how.&lt;/b&gt; “Put it 2nd in In Progress” is safe to repeat; “move it one column right” isn’t. &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Glossary/Idempotent&quot;&gt;MDN, Idempotent&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;b&gt;Don’t overwrite newer changes.&lt;/b&gt; &lt;code&gt;ETag&lt;/code&gt; and &lt;code&gt;If-Match&lt;/code&gt; turn a silent clash into a clear error. &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Conditional_requests&quot;&gt;MDN, HTTP conditional requests&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;b&gt;Animate layout changes.&lt;/b&gt; The technique behind the sliding cards, fast even on slow devices. &lt;a href=&quot;https://aerotwist.com/blog/flip-your-animations/&quot;&gt;Paul Lewis, FLIP Your Animations&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;b&gt;Show what’s pending.&lt;/b&gt; React’s &lt;code&gt;useTransition&lt;/code&gt; gives you an &lt;code&gt;isPending&lt;/code&gt; flag for exactly this. &lt;a href=&quot;https://react.dev/reference/react/useTransition&quot;&gt;React docs, useTransition&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;b&gt;Design the drop.&lt;/b&gt; Drop indicators, drag handles and keyboard alternatives. &lt;a href=&quot;https://atlassian.design/components/pragmatic-drag-and-drop/design-guidelines&quot;&gt;Atlassian, Pragmatic drag and drop&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;b&gt;Respect reduced motion.&lt;/b&gt; Tone animations down for people who ask their system for less motion. &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion&quot;&gt;MDN, prefers-reduced-motion&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
        &lt;/div&gt;
      &lt;/details&gt;
    &lt;/div&gt;
  &lt;/section&gt;&lt;section&gt;
    &lt;div&gt;
      
      &lt;div&gt;
        &lt;h2&gt;Queue it, but don’t be optimistic!#&lt;/h2&gt;
        &lt;p&gt;It’s a common misconception that a queue makes optimistic updates honest, as in: keep retrying, and the change syncs eventually. But the queue doesn’t sync across devices. However, &lt;b&gt;combining queues and immediate intent&lt;/b&gt; is actually even better.&lt;/p&gt;
      &lt;/div&gt;
    &lt;/div&gt;

    

    &lt;div&gt;
      
      
    &lt;/div&gt;

    &lt;div&gt;
      &lt;details&gt;
        &lt;summary&gt;Queue it right and know the limits&lt;/summary&gt;
        &lt;div&gt;
          &lt;ul&gt;
            &lt;li&gt;&lt;b&gt;Retries stop with the app.&lt;/b&gt; On the web, syncing after the page is closed needs the Background Sync API, which Safari and Firefox don’t support. &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/API/Background_Synchronization_API&quot;&gt;MDN, Background Synchronization API&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;b&gt;The system decides.&lt;/b&gt; iOS only promises not to run your background task too early, not when it will run. &lt;a href=&quot;https://developer.apple.com/documentation/backgroundtasks/bgtaskrequest/earliestbegindate&quot;&gt;Apple, earliestBeginDate&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;b&gt;On the web, the queue can be evicted.&lt;/b&gt; Browsers may delete a site’s stored data when space runs low, and Safari clears sites you haven’t used lately. &lt;code&gt;navigator.storage.persist()&lt;/code&gt; asks to keep it. &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/API/Storage_API/Storage_quotas_and_eviction_criteria&quot;&gt;MDN, Storage quotas and eviction criteria&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;b&gt;Show what’s not synced.&lt;/b&gt; Tell people what state their data is in, so switching devices holds no surprises. &lt;a href=&quot;https://web.dev/articles/offline-ux-design-guidelines&quot;&gt;web.dev, Offline UX design guidelines&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;b&gt;Make late syncs safe.&lt;/b&gt; A change that syncs hours later, or twice, must not apply twice. &lt;a href=&quot;https://stripe.com/blog/idempotency&quot;&gt;Stripe, Designing APIs with idempotency&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
        &lt;/div&gt;
      &lt;/details&gt;
    &lt;/div&gt;
  &lt;/section&gt;&lt;section&gt;
    
    &lt;h2&gt;Agree? Spread the word.&lt;/h2&gt;
    &lt;p&gt;Share this page with your team and give it a star on GitHub. Let’s build reliable software people can trust.&lt;/p&gt;
    &lt;div&gt;
      &lt;a href=&quot;https://github.com/romshark/ux-immediate-intent&quot;&gt;
        Star on GitHub
      &lt;/a&gt;
      
    &lt;/div&gt;
    &lt;div&gt;
      &lt;p&gt;Know a good, harmless use case for optimistic updates?&lt;br/&gt;Let’s discuss it. I’m curious!&lt;/p&gt;
      &lt;div&gt;
        &lt;a href=&quot;https://github.com/romshark/ux-immediate-intent/issues/new?template=harmless-use-case.yml&quot;&gt;File an issue&lt;/a&gt;
      &lt;/div&gt;
      &lt;details&gt;
        &lt;summary&gt;P.S. Even dropping a “like” &lt;span&gt;is not harmless&lt;/span&gt;.&lt;/summary&gt;
        &lt;div&gt;
          &lt;p&gt;Receiving side&lt;/p&gt;
          &lt;ul&gt;
            &lt;li&gt;Getting fewer likes than peers causes distress, especially in teens who’ve been bullied. &lt;a href=&quot;https://pubmed.ncbi.nlm.nih.gov/32892358/&quot;&gt;Lee et al., 2020&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;Many people care more about &lt;i&gt;who&lt;/i&gt; liked their post than how many did. &lt;a href=&quot;https://doi.org/10.1145/2818048.2820066&quot;&gt;Scissors et al., 2016&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;When a Twitter bug dropped like counts, users assumed their tweets were bad. &lt;a href=&quot;https://techcrunch.com/2019/02/12/no-your-tweets-arent-awful-twitters-likes-are-currently-borked&quot;&gt;TechCrunch, 2019&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
          &lt;p&gt;Sending side&lt;/p&gt;
          &lt;ul&gt;
            &lt;li&gt;People see a like as social support, so a lost like is support your friend never got. &lt;a href=&quot;https://digitalcommons.njit.edu/fac_pubs/10297&quot;&gt;Wohn et al., 2016&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;A like says as much about the relationship as about the post, so a missing one says something too. &lt;a href=&quot;https://digitalcommons.njit.edu/fac_pubs/10732&quot;&gt;Hayes et al., 2016&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
        &lt;/div&gt;
      &lt;/details&gt;
    &lt;/div&gt;
  &lt;/section&gt;</content:encoded>
</item>
<item>
<title>Super Mario Bros. in a QR Code</title>
<link>https://mjtsai.com/blog/2026/11/26/super-mario-bros-in-a-qr-code/</link>
<guid isPermaLink="false">vow3ZqJPm8_zfBS928pLCCeGXUiFUAFp9QFeuA==</guid>
<pubDate>Sat, 28 Nov 2026 19:57:47 +0000</pubDate>
<description>Tobias Friedly (via Dennis Oberhoff): In this Video I try to put Super Mario Bros. on a single Quick Response Code. The actual ROM is 40 KB (6502 assembly), and he reimplements a simplified version of the first level in 4 KB (JavaScript encoded for a URL).</description>
<content:encoded>&lt;p&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=jYMxhCjjUCo&quot;&gt;Tobias Friedly&lt;/a&gt; (via &lt;a href=&quot;https://mastodon.social/@obrhoff/117632247598569582&quot;&gt;Dennis Oberhoff&lt;/a&gt;):&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;In this Video I try to put Super Mario Bros. on a single Quick Response Code.&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;The actual ROM is 40 KB (6502 assembly), and he reimplements a simplified version of the first level in 4 KB (JavaScript encoded for a URL).&lt;/p&gt;</content:encoded>
</item>
<item>
<title>Understanding ARD+JSON: The Emerging Architecture for Agent Resource Discovery</title>
<link>https://artversion.com/blog/understanding-ardjson-the-emerging-architecture-for-agent-resource-discovery/</link>
<guid isPermaLink="false">VUtDQgzfLXiFjClGhbcmSGlFi1ftK5EN78N1Yg==</guid>
<pubDate>Sat, 28 Nov 2026 14:49:20 +0000</pubDate>
<description>What the emerging Agent Resource Discovery (ARD) specification means for developers, and what current implementations tell us about preparing websites for AI-driven interactions. Websites have established ways of making their content discoverable. Search engines follow links, process sitemaps, interpret structured data, and index pages so people can find relevant information. These mechanisms have evolved around […] The post Understanding ARD+JSON: The Emerging Architecture for Agent Resour...</description>
<content:encoded>What the emerging Agent Resource Discovery (ARD) specification means for developers, and what current implementations tell us about preparing websites for AI-driven interactions.



Websites have established ways of making their content discoverable. Search engines follow links, process sitemaps, interpret structured data, and index pages so people can find relevant information. These mechanisms have evolved around discovering and understanding content.



AI agents introduce another requirement. An agent may need to identify a service, determine what it can do, and understand how to interact with it programmatically. The capability might be exposed through an API, an MCP server, another agent, or a set of instructions describing a specific workflow.



The challenge is that these resources are often distributed across different platforms and protocols. Even when a service is publicly available, an AI client may have no straightforward way to discover that it exists.



Agent Resource Discovery (ARD) is an emerging specification designed to address this problem. It proposes a common framework for publishing descriptions of agent-accessible resources, indexing them through registries, and retrieving them when they are relevant to a task.



ARD was introduced publicly in June 2026, and its architecture was subsequently described in an IETF Internet-Draft published October 30, 2026. The IETF documents remain works in progress, but publicly accessible implementations already provide useful evidence of how the approach can work.



Understanding the Discovery Problem



Consider a website that exposes an API for retrieving product information, a skill that helps users prepare support requests, and an MCP server that provides access to selected business operations.



Each resource might function correctly on its own. An API can have valid documentation, a skill can contain clear instructions, and an MCP server can expose properly defined tools. However, an external AI client still needs to know where to find those resources.



Current integrations commonly depend on configuration that identifies specific tools or services in advance. ARD proposes moving some of that discovery work into a separate layer.



The architecture introduces two important components: manifests and registries.



A manifest describes the resources published by an organization. A registry can collect those descriptions and make them searchable. When an agent needs a capability, it can retrieve a known publisher’s manifest or query a registry for resources matching the task.



Once a resource is selected, interaction happens through its native protocol. ARD handles discovery; it does not become the execution system.



This separation is important because it allows different technologies to participate without requiring them to adopt a common runtime.



How ARD Uses JSON to Describe Resources



The current ARD Manifest and Lookup draft proposes a JSON manifest with the media type application/ard+json. For ordinary web publishing, the proposed location is:



https://example.com/.well-known/ard.json



The document contains an entries array. Each entry identifies a resource, describes its purpose, and provides either a URL pointing to its descriptor or an inline description.



The required fields include identifier, displayName, type, and exactly one of url or data. Other fields help discovery services understand when the resource might be useful.



For example, a simplified manifest describing a project-inquiry skill could look like this:



{
  &amp;quot;entries&amp;quot;: [
    {
      &amp;quot;identifier&amp;quot;: &amp;quot;urn:air:example.com:skill:project-inquiry&amp;quot;,
      &amp;quot;displayName&amp;quot;: &amp;quot;Project Inquiry&amp;quot;,
      &amp;quot;type&amp;quot;: &amp;quot;application/agent-skills+md&amp;quot;,
      &amp;quot;url&amp;quot;: &amp;quot;https://example.com/.well-known/agent-skills/project-inquiry/SKILL.md&amp;quot;,
      &amp;quot;description&amp;quot;: &amp;quot;Instructions for preparing a project inquiry.&amp;quot;,
      &amp;quot;capabilities&amp;quot;: [
        &amp;quot;ProjectBriefPreparation&amp;quot;,
        &amp;quot;ContactRouting&amp;quot;
      ],
      &amp;quot;representativeQueries&amp;quot;: [
        &amp;quot;how do I prepare a project brief?&amp;quot;,
        &amp;quot;where can I submit a project inquiry?&amp;quot;
      ]
    }
  ]
}



This is an illustrative example following the proposed entry format, not a claim about a deployed service.



The identifier provides a stable resource identity anchored to the publisher’s domain. The type indicates that the referenced resource is an Agent Skill written in Markdown. The URL points to the actual skill document.



The representativeQueries field is particularly interesting. It describes realistic requests that might cause an agent to look for this capability. A registry supporting semantic search can use those examples as signals for matching user intent to relevant resources.



Publishing the manifest does not mean an AI client can automatically complete the inquiry. The referenced skill still needs to provide useful instructions, and any action requiring access to an external service must be supported separately.



What Existing Implementations Demonstrate



ARD is still evolving, but several publicly available projects demonstrate meaningful parts of the proposed architecture.



Hugging Face’s hf-discover provides an open-source discovery client and server for finding AI skills, MCP servers, and other resources. Its documentation includes command-line searching, registry querying, and navigation between discovery services.



This demonstrates an important architectural distinction. A client can search for relevant capabilities instead of loading every available tool description into its working context. It can then retrieve the specific resource information needed for the selected task.



A different implementation is visible in Ora’s published ARD manifest. Its JSON catalog contains entries describing MCP services, an A2A agent, an Agent Skill, API resources, and a discovery registry.



The entries expose resource identifiers, types, descriptions, capabilities, and example queries. Some also contain publisher identity metadata. This provides a concrete example of how one domain can advertise different types of agent-accessible resources through a single discovery document.



Desvela publishes another ARD manifest, including references to its discovery registry and MCP-accessible services. Its registry documentation describes the indexing of agent-related discovery files across public websites.



Nevermined’s published manifest illustrates an extension of the same idea. Alongside resource descriptions, some entries contain metadata about payment methods, prices, and service availability. ARD’s JSON-LD approach permits additional vocabularies, allowing publishers to describe specialized requirements without changing the basic discovery model.



These examples establish that manifests and discovery implementations exist beyond specification documents. They do not establish universal compatibility, comprehensive crawling, or automatic support across all AI assistants.



Practical Implementation Considerations



For a development team evaluating ARD, the first step should be understanding which resources the website actually makes available.



A conventional content website may have little reason to advertise executable capabilities. A platform exposing documented APIs, MCP tools, Agent Skills, or agent-to-agent interfaces has a more immediate use case.



The following practices are worth considering during implementation.



Use the current discovery location. The proposed path is /.well-known/ard.json. Earlier ARD implementations used /.well-known/ai-catalog.json, and some clients still reference that location. Supporting older paths may help compatibility, but the current specification identifies ard.json as the preferred publishing location.



Describe actual capabilities. Each entry should point to a maintained resource with a working descriptor. Metadata should accurately reflect what the resource supports, including any limitations on access or execution.



Write queries around user intent. The specification recommends two to five representative queries per entry. These should reflect how someone would naturally request the capability, rather than repeating generic promotional descriptions. Accurate examples give registries more useful signals for matching.



Validate the manifest and its references. Valid JSON is only the beginning. Publishers should check required fields, domain-anchored identifiers, supported media types, and the rule that each entry contains either url or data. The ARD specification repository provides schema definitions and conformance-testing tools for this purpose.



Treat discovery as a security boundary. A resource appearing in a manifest does not make it trustworthy. The architecture provides for signed trust metadata and cryptographic content digests, but the presence of an identifier or an unsigned identity claim alone does not prove publisher authority. Consumers still need to authenticate services and enforce authorization before performing protected operations.



Maintain the discovery layer as part of deployment. When resource locations, versions, or capabilities change, the manifest needs to remain consistent with the underlying implementation. A discoverable resource that no longer works creates problems for both automated clients and the people relying on them.



These considerations are especially relevant to established websites. An organization does not necessarily need to rebuild its platform to publish a discovery manifest. However, publishing the file is useful only when it accurately represents resources that can be retrieved or used.



Where ARD Fits Alongside MCP, Agent Skills, and llms.txt



ARD addresses a different part of the interaction process from several other emerging technologies.



The Model Context Protocol defines how AI applications communicate with tools and contextual resources. Agent Skills provide reusable instructions and supporting materials for particular tasks. The proposed llms.txt format is intended to help language-model systems locate useful website content and documentation.



ARD can reference applicable resources without replacing those underlying formats or protocols.



For example, a website could publish an Agent Skill describing how to prepare a technical support request. Its ARD manifest could advertise the skill and link to its instructions. An agent that discovers the entry could retrieve the skill and determine whether it is applicable.



If the workflow also requires submitting information to a secured API, that interaction remains subject to the API’s own authentication, authorization, and operational rules.



The distinction helps keep discovery metadata separate from the systems responsible for performing actions.



It also avoids treating every new machine-readable file as another form of search optimization. ARD is concerned with discovering software capabilities. Whether those capabilities are trustworthy, usable, and appropriate for a particular request depends on additional factors.



Preparing for a More Discoverable Web



ARD’s direction is promising because it builds on familiar Internet principles: domain-based publishing, HTTP, structured metadata, and independently operated discovery services.



There are still open questions. The October 2026 IETF documents have not become approved standards, the implementation ecosystem continues to evolve, and differences between specification versions remain visible in existing tools.



It is also important to distinguish a published manifest from successful discovery. A website can make its resources available without guaranteeing that any particular registry will index them or that an AI assistant will use them.



For developers, the practical opportunity is to begin thinking about capabilities as resources that can be described and maintained independently of the interfaces exposing them.



A website’s navigation explains how people can explore its content. Its APIs and services define what software can do. ARD proposes a way to make those software capabilities easier to discover across systems.



As more digital platforms support agent-driven interactions, that distinction is likely to become increasingly relevant. The useful work today is understanding the emerging architecture, testing real implementations, and keeping capability descriptions accurate as the standards develop.



Exploring how emerging AI technologies could fit into your existing website or digital platform? Let’s talk about what’s possible.&lt;p&gt;The post &lt;a href=&quot;https://artversion.com/blog/understanding-ardjson-the-emerging-architecture-for-agent-resource-discovery/&quot;&gt;Understanding ARD+JSON: The Emerging Architecture for Agent Resource Discovery&lt;/a&gt; appeared first on &lt;a href=&quot;https://artversion.com&quot;&gt;ArtVersion&lt;/a&gt;.&lt;/p&gt;</content:encoded>
</item>
<item>
<title>Your Website Doesn’t Need to Be Fully Agentic to Benefit From AI</title>
<link>https://artversion.com/blog/ai-website-automation/</link>
<guid isPermaLink="false">tpLGmAAbELW9ibuUG6Tr0Dome-G8Ojry-48jIQ==</guid>
<pubDate>Sat, 28 Nov 2026 14:49:20 +0000</pubDate>
<description>There is a compelling pitch making its way through marketing and technology teams that an AI agent can take a set of instructions and use them to design, code, and deploy an entire website. What once required designers, developers, content strategists, and weeks of coordination can now happen in considerably less time. Yet speed alone […] The post Your Website Doesn’t Need to Be Fully Agentic to Benefit From AI appeared first on ArtVersion.</description>
<content:encoded>There is a compelling pitch making its way through marketing and technology teams that an AI agent can take a set of instructions and use them to design, code, and deploy an entire website. What once required designers, developers, content strategists, and weeks of coordination can now happen in considerably less time. Yet speed alone does not replace the need for human judgment, contextual understanding, and institutional knowledge.



Much of that promise is real deal and its changing how we all work. AI coding tools have become remarkably capable of producing cleaner code, connecting services, and building working applications. For a new venture or an experimental project, the ability to move from an idea to a functioning website so quickly is genuinely useful. The challenge is ensuring that the technology operates within the broader goal of the organization, its brand, and the people it serves.



For established brands and larger organizations, however, the priorities are often different. Most already have websites supported by established brand standards, extensive content libraries, technical integrations, and teams responsible for keeping everything running. Their challenge is to manage and improve these existing environments while ensuring that changes remain consistent with the brand and aligned with business objectives. This is where I see a more immediate opportunity for AI, particularly in automating the ongoing work within established digital systems and making better use of the infrastructure organizations have already invested in.



The Appeal and Limitations of Fully Agentic Websites



The term “fully agentic” generally describes a system where AI can carry out a sequence of tasks with limited human intervention. Applied to websites, that can mean generating the design, writing the code, connecting the backend, and deploying changes based on a prompt or set of instructions.



Many of these projects use headless architecture, where content management is separated from the presentation layer. There are legitimate technical reasons to work this way, particularly when content needs to reach multiple applications or experiences. Headless architecture itself is not the problem.



The challenge emerges when AI-generated decisions begin replacing the established processes that keep a brand consistent.



An agent can create a new page layout in minutes. Whether that layout belongs in the company’s broader visual language is another question. It might introduce slightly different typography, spacing, navigation behavior, or interactions. Individually, these differences may seem insignificant. Across a large website, they accumulate.



The same applies to code quality, accessibility considerations, performance, and maintenance. A page that looks convincing in a preview may still introduce problems that only become visible when people use it, editors update it, or developers need to maintain it six months later.



There is also an ownership question. If a website is largely generated and maintained through one AI coding environment, how easily can another team understand the implementation, make changes, or move the work elsewhere?



For a company with an established brand and a long-term digital presence, these questions matter more than how quickly the first version can be generated.



Speed is valuable, but so is knowing what happens after launch.



Automation Can Work Within the Systems You Already Have



At ArtVersion, we have spent more than two decades working across branding, website design, and digital development. We are a small, carefully assembled team, and that has shaped how I think about efficiency. The best improvements often come from creating better processes around the work rather than continuously adding more tools or people.



This is where AI agents connected to an existing content management system become interesting.



Consider WordPress, although the principle applies to other CMS platforms. A website built around a defined design system already has much of the structure needed for automation. It has reusable components, templates, content types, editorial roles, and established publishing workflows.



With a controlled connection between AI tools and the CMS, agents can work inside that structure.



One emerging approach uses the Model Context Protocol, or MCP, a standard that allows AI tools to communicate with other software through defined interfaces. With the appropriate integration and permissions, an agent can retrieve content, work with approved fields, prepare updates, and hand them back for review.



The distinction is important. The agent does not need to invent an interface every time someone requests a change. It can work with components and rules that already exist.



In our own editorial and website operations, we have been exploring and applying AI-assisted workflows to work that historically consumed considerable manual attention.



Refreshing older articles is a good example. An agent can help identify outdated language, review the structure of an existing post, suggest revisions, and prepare an updated draft. It can examine opportunities for internal links to related material and propose metadata that better reflects the article’s subject.



Topic hub pages offer another useful application. Rather than manually reviewing dozens of articles to determine how they relate, AI can help organize existing content, identify relationships, and prepare a proposed structure using established page templates.



Editorial checks can follow a similar process. Agents can look for missing descriptions, inconsistent terminology, formatting problems, or content that needs additional human review.



Some of these tasks involve preparing content, others involve structured CMS updates, and others remain recommendations. The common principle is that people review the work before publication.



These are not particularly dramatic applications of AI. They are useful because they address the ongoing work of managing a website, where small improvements across hundreds of pages can be more valuable than another complete rebuild.



They also give marketing teams greater capacity without requiring the underlying website to become an experiment in autonomous software development.



The Design System Makes the Difference



There are tradeoffs between the two approaches, and marketing leaders should understand them before committing to either.



Fully agentic website development offers extraordinary speed, relatively low initial production costs, and freedom to experiment. It can be especially effective when the requirements are uncertain and the objective is to test an idea quickly.



The drawbacks become more apparent as the project grows. Generated components may be inconsistent, code can become difficult to maintain, and quality checks may receive less attention than they would in an established production process. Teams also need to consider their reliance on particular tools and who will be responsible for the system over time.



Governed automation has different advantages. It preserves a common visual language, allows content to move through established review processes, and gives internal teams a clearer understanding of how their website operates. Maintenance is easier to plan when changes happen within known components and templates.



It requires more preparation, however. A useful design system takes investment. Publishing permissions need to be defined. Content structures need to be consistent. Radical changes may take longer because the organization has deliberately established rules about how the site should behave.



Those limitations are also part of the value.



A proper design system contains more than a library of buttons and page patterns. It defines typography, colors, spacing, components, templates, content relationships, and rules for using them. Design tokens help teams apply visual decisions consistently. Reusable components reduce the number of independent implementation decisions required for every page.



For AI, this structure provides a working vocabulary.



Instead of asking an agent to decide how a new landing page should look, the team can direct it to assemble content using approved templates, populate defined fields, and flag anything that falls outside the existing system.



The better the structure, the more useful the automation can become. Without it, AI may simply produce inconsistency faster.



Governance is equally important. Someone must decide which tasks agents can perform independently, which changes require editorial approval, and which actions are off-limits.



An agent might be permitted to prepare metadata or save draft revisions while being prohibited from publishing pages, modifying global templates, or changing navigation. Version histories should make changes traceable, and teams need a practical way to review or reverse them.



Brand language, legal considerations, factual accuracy, and accessibility all require appropriate checks. Automated tools can assist those reviews, but accountability remains with the people responsible for the website.



This is not about putting a person in front of every minor administrative action. It is about assigning responsibility according to the consequences of a decision.



There are certainly situations where a more autonomous approach makes sense. A campaign microsite with a limited lifespan, an internal application, or an early prototype may benefit more from rapid generation than from integration into a mature design system. In those cases, experimentation can be the right priority.



But a company’s primary website serves a different purpose. It represents years of investment in brand identity, customer experience, content, and technology. Decisions made there have consequences beyond the next release.



For CMOs, the practical question is how much of the routine work can be automated without making the website harder to manage or the brand harder to recognize.



That is where I see the greatest near-term opportunity.



A well-run website should become more useful over time. Older content should improve. Connections between subjects should become clearer. Publishing should become more efficient, and teams should spend less time repeating administrative tasks.



AI can contribute to all of that without taking over every design and development decision.



The goal is a website that gets better every week while remaining recognizably the same brand. Automation should support the thinking, standards, and judgment behind the experience, giving people more time to focus on the decisions that actually require them.&lt;p&gt;The post &lt;a href=&quot;https://artversion.com/blog/ai-website-automation/&quot;&gt;Your Website Doesn’t Need to Be Fully Agentic to Benefit From AI&lt;/a&gt; appeared first on &lt;a href=&quot;https://artversion.com&quot;&gt;ArtVersion&lt;/a&gt;.&lt;/p&gt;</content:encoded>
</item>
<item>
<title>Rate limiting in ASP.NET Core: a practical guide (updated for .NET 10) | Maarten Balliauw {blog}</title>
<link>https://blog.maartenballiauw.be/posts/2022-09-26-aspnet-core-rate-limiting-middleware/</link>
<enclosure type="image/jpeg" length="0" url="https://blog.maartenballiauw.be/posts/2022-09-26-aspnet-core-rate-limiting-middleware/index.png"></enclosure>
<guid isPermaLink="false">n-43nt-L8Epg_p6ZdmgyNbBNInoAgteVqjYmDw==</guid>
<pubDate>Sat, 28 Nov 2026 12:45:00 +0000</pubDate>
<description>A practical guide to the ASP.NET Core rate limiting middleware: fixed window, sliding window, token bucket and concurrency limiters, per-IP limits, and returning a 429.</description>
<content:encoded>&lt;div&gt;&lt;div&gt;  &lt;/div&gt; &lt;/div&gt;&lt;p&gt;Rate limiting is a way to control the amount of traffic that a web application or API receives, by limiting the number of requests that can be made in a given period of time.
This can help to improve the performance of the site or application, and to prevent it from becoming unresponsive.&lt;/p&gt;&lt;p&gt;Since .NET 7, ASP.NET Core includes a built-in rate limiting middleware, which can be used to rate limit web applications and APIs.
In this blog post, we’ll take a look at how to configure and use the rate limiting middleware in ASP.NET Core and .NET 10.
If you’re just here for code: fixed window, token bucket, per IP address, returning a 429.&lt;/p&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Update (October 2026):&lt;/strong&gt; I’ve refreshed this post for .NET 10. The middleware hasn’t changed much since .NET 7, but the code samples are a bit more modern now.
For the full reference, see the &lt;a href=&quot;https://learn.microsoft.com/aspnet/core/performance/rate-limit&quot;&gt;official rate limiting middleware documentation&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;&lt;h2&gt;What is rate limiting?&lt;/h2&gt;&lt;p&gt;Every application you build is sharing resources.
The application runs on a server that shares its CPU, memory, and disk I/O, on a database that stores data for all your users.&lt;/p&gt;&lt;p&gt;Whether accidental or intentional, users may exhaust those resources in a way that impacts others.
A script can make too many requests, or a new deployment of your mobile app has a regression that calls a specific API too many times and results in the database being slow.
Ideally, all of your users get access to an equal amount of shared resources, within the boundary of what your application can support.&lt;/p&gt;&lt;p&gt;Let’s say the database used by your application can safely handle around 1000 queries per minute.
In your application, you can set a limit to only allow 1000 requests per minute to prevent the database from getting more requests.&lt;/p&gt;&lt;p&gt;Instead of one global “1000 requests per minute” limit, you could look at your average application usage, and for example set a limit of “100 requests per user per minute”.
Or chain those limits, and say “100 requests per user per minute, and 1000 requests per minute”.&lt;/p&gt;&lt;p&gt;Rate limits will help to prevent the server from being overwhelmed by too many requests, and still makes sure that all users have a fair chance of getting their requests processed.&lt;/p&gt;&lt;h2&gt;Rate limiting in ASP.NET Core&lt;/h2&gt;&lt;p&gt;If your application is using .NET 7 or higher (this post uses .NET 10), a rate limiting middleware is available out of the box.
It provides a way to apply rate limiting to your web application and API endpoints.&lt;/p&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Under the hood, the ASP.NET Core rate limiting middleware uses the &lt;a href=&quot;https://devblogs.microsoft.com/dotnet/announcing-rate-limiting-for-dotnet/&quot;&gt;&lt;code&gt;System.Threading.RateLimiting&lt;/code&gt;&lt;/a&gt; subsystem.
If you’re interested in rate limiting other resources, for example an &lt;code&gt;HttpClient&lt;/code&gt; making requests, or access to other resources, check it out!&lt;/p&gt;
&lt;/blockquote&gt;&lt;p&gt;Much like other middlewares, to enable the ASP.NET Core rate limiting middleware, you will have to add the required services to the service collection, and then enable the middleware for all request pipelines.&lt;/p&gt;&lt;p&gt;Let’s add a simple rate limiter that limits all to 10 requests per minute, per authenticated username (or client IP address if not authenticated):&lt;/p&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;csharp&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;var builder = WebApplication.CreateBuilder(args);

builder.Services.AddRateLimiter(options =&amp;gt;
{
    options.GlobalLimiter = PartitionedRateLimiter.Create&amp;lt;HttpContext, string&amp;gt;(httpContext =&amp;gt;
        RateLimitPartition.GetFixedWindowLimiter(
            partitionKey: httpContext.User.Identity?.Name ?? httpContext.Connection.RemoteIpAddress?.ToString() ?? &amp;quot;unknown&amp;quot;,
            factory: _ =&amp;gt; new FixedWindowRateLimiterOptions
            {
                AutoReplenishment = true,
                PermitLimit = 10,
                QueueLimit = 0,
                Window = TimeSpan.FromMinutes(1)
            }));
});

// ...

var app = builder.Build();

// ...

app.UseRouting();
app.UseRateLimiter();

app.MapGet(&amp;quot;/&amp;quot;, () =&amp;gt; &amp;quot;Hello World!&amp;quot;);

app.Run();&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;Too much at once? I agree, so let’s break it down.&lt;/p&gt;&lt;p&gt;The call to &lt;code&gt;builder.Services.AddRateLimiter(...)&lt;/code&gt; registers the ASP.NET Core middleware with the service collection, including its configuration options.
There are many &lt;code&gt;options&lt;/code&gt; that can be specified, such as the HTTP status code being returned, what should happen when rate limiting applies, and additional policies.&lt;/p&gt;&lt;p&gt;For now, let’s just assume we want to have one global rate limiter for all requests. The &lt;code&gt;GlobalLimiter&lt;/code&gt; option can be set to any &lt;code&gt;PartitionedRateLimiter&lt;/code&gt;.
In this example, we’re adding a &lt;code&gt;FixedWindowLimiter&lt;/code&gt;, and configure it to apply “per authenticated username (or client IP address if not authenticated)” - the &lt;code&gt;partition&lt;/code&gt;.
The &lt;code&gt;FixedWindowLimiter&lt;/code&gt; is then configured to automatically replenish permitted requests, and permits “10 requests per minute”.&lt;/p&gt;&lt;p&gt;Further down the code, you’ll see a call to &lt;code&gt;app.UseRateLimiter()&lt;/code&gt;. This enables the rate limiting middleware using the options specified earlier.&lt;/p&gt;&lt;p&gt;One thing to watch out for is the order of your middleware. If you use endpoint-specific limits (such as &lt;code&gt;[EnableRateLimiting]&lt;/code&gt; or &lt;code&gt;.RequireRateLimiting()&lt;/code&gt;, which we’ll get to), &lt;code&gt;UseRateLimiter()&lt;/code&gt; must be called &lt;em&gt;after&lt;/em&gt; &lt;code&gt;UseRouting()&lt;/code&gt;, as the middleware needs to know which endpoint is being called. If you only use global limiters, you can also call it before &lt;code&gt;UseRouting()&lt;/code&gt;.&lt;/p&gt;&lt;p&gt;If you run the application and refresh quickly, you’ll see at some point a &lt;code&gt;503 Service Unavailable&lt;/code&gt; is returned, which is when the rate limiting middleware does its thing.&lt;/p&gt;&lt;h2&gt;Configure what happens when being rate limited&lt;/h2&gt;&lt;p&gt;Not happy with that &lt;code&gt;503&lt;/code&gt; being returned when rate limiting is enforced? Let’s look at how to configure that!&lt;/p&gt;&lt;p&gt;Many services settled on the &lt;code&gt;429 Too Many Requests&lt;/code&gt; status code (and the default is still &lt;code&gt;503&lt;/code&gt; in current .NET versions). In order to change the status code, you can set the &lt;code&gt;RejectionStatusCode&lt;/code&gt; option:&lt;/p&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;csharp&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;builder.Services.AddRateLimiter(options =&amp;gt;
{
    options.RejectionStatusCode = StatusCodes.Status429TooManyRequests;

    // ...
});&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;Additionally, there’s an &lt;code&gt;OnRejected&lt;/code&gt; option you can set to customize the response that is sent when rate limiting is triggered for a request.
It’s a good practice to communicate what happened, and why a rate limit applies. So instead of going with the default of returning “just a status code”, you can return some more meaningful information.
The &lt;code&gt;OnRejected&lt;/code&gt; delegate gives you access to the current rate limit context, including the &lt;code&gt;HttpContext&lt;/code&gt;.&lt;/p&gt;&lt;p&gt;Here’s an example that sets the response status code to &lt;code&gt;429&lt;/code&gt;, and returns a meaningful response.
The response mentions when to retry (if available from the rate limiting metadata, which we also return as a &lt;code&gt;Retry-After&lt;/code&gt; header so clients can act on it without parsing text), and provides a documentation link where users can find out more.&lt;/p&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;csharp&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;builder.Services.AddRateLimiter(options =&amp;gt;
{
    options.OnRejected = async (context, token) =&amp;gt;
    {
        context.HttpContext.Response.StatusCode = StatusCodes.Status429TooManyRequests;
        if (context.Lease.TryGetMetadata(MetadataName.RetryAfter, out var retryAfter))
        {
            context.HttpContext.Response.Headers.RetryAfter =
                ((int)retryAfter.TotalSeconds).ToString(System.Globalization.NumberFormatInfo.InvariantInfo);

            await context.HttpContext.Response.WriteAsync(
                $&amp;quot;Too many requests. Please try again after {retryAfter.TotalMinutes} minute(s). &amp;quot; +
                $&amp;quot;Read more about our rate limits at https://example.org/docs/ratelimiting.&amp;quot;, cancellationToken: token);
        }
        else
        {
            await context.HttpContext.Response.WriteAsync(
                &amp;quot;Too many requests. Please try again later. &amp;quot; +
                &amp;quot;Read more about our rate limits at https://example.org/docs/ratelimiting.&amp;quot;, cancellationToken: token);
        }
    };

    // ...
});&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;Given you have access to the current &lt;code&gt;HttpContext&lt;/code&gt;, you also have access to the service collection.
It’s a good practice to keep an eye on who, when and why a rate limit is being enforced, and you could log that by grabbing an &lt;code&gt;ILogger&lt;/code&gt; from &lt;code&gt;context.HttpContext.RequestServices&lt;/code&gt; if needed.&lt;/p&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Be careful with the logic you write in your &lt;code&gt;OnRejected&lt;/code&gt; implementation.
If you use your database context and run 5 queries, your rate limit isn’t actually helping reduce strain on your database.
Communicate with the user and return a meaningful error (you could even use the &lt;code&gt;Accept&lt;/code&gt; header and return either JSON or HTML depending on the client type), but don’t consume more resources than a normal response would require.&lt;/p&gt;
&lt;/blockquote&gt;&lt;p&gt;Speaking of communicating about what and why, the ASP.NET Core rate limiting middleware is a bit limited (pun not intended).
The metadata you have access to is sparse (“retry after” is pretty much the only useful metadata returned).&lt;/p&gt;&lt;p&gt;Additionally, if you would want to return statistics about your limits (e.g. &lt;a href=&quot;https://docs.github.com/en/rest/overview/resources-in-the-rest-api#rate-limit-http-headers&quot;&gt;like GitHub does&lt;/a&gt;), you’ll find the ASP.NET Core rate limiting middleware does not support this.
You won’t have access to the “number of requests remaining” or other metadata. Not in &lt;code&gt;OnRejected&lt;/code&gt;, and definitely not if you want to return this data as headers on every request.&lt;/p&gt;&lt;p&gt;If this is something that matters to you, I advise to check out &lt;a href=&quot;https://github.com/stefanprodan/AspNetCoreRateLimit&quot;&gt;Stefan Prodan’s &lt;code&gt;AspNetCoreRateLimit&lt;/code&gt;&lt;/a&gt;, which has many (many!) more options available.
Or &lt;a href=&quot;https://github.com/dotnet/aspnetcore/issues/44140&quot;&gt;chime in on this GitHub issue&lt;/a&gt;.&lt;/p&gt;&lt;h2&gt;Types of rate limiters&lt;/h2&gt;&lt;p&gt;In our example, we’ve used the &lt;code&gt;FixedWindowLimiter&lt;/code&gt; to limit the number of requests in a time window.&lt;/p&gt;&lt;p&gt;There are more rate limiting algorithms available in .NET that you can use:&lt;/p&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://devblogs.microsoft.com/dotnet/announcing-rate-limiting-for-dotnet/#concurrency-limit&quot;&gt;&lt;strong&gt;Concurrency limit&lt;/strong&gt;&lt;/a&gt; is the simplest form of rate limiting. It doesn’t look at time, just at number of concurrent requests. “Allow 10 concurrent requests”.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://devblogs.microsoft.com/dotnet/announcing-rate-limiting-for-dotnet/#fixed-window-limit&quot;&gt;&lt;strong&gt;Fixed window limit&lt;/strong&gt;&lt;/a&gt; lets you apply limits such as “60 requests per minute”. Every minute, 60 requests can be made. One every second, but also 60 in one go.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://devblogs.microsoft.com/dotnet/announcing-rate-limiting-for-dotnet/#sliding-window-limit&quot;&gt;&lt;strong&gt;Sliding window limit&lt;/strong&gt;&lt;/a&gt; is similar to the fixed window limit, but uses segments for more fine-grained limits. Think “60 requests per minute, with 1 request per second”.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://devblogs.microsoft.com/dotnet/announcing-rate-limiting-for-dotnet/#token-bucket-limit&quot;&gt;&lt;strong&gt;Token bucket limit&lt;/strong&gt;&lt;/a&gt; lets you control flow rate, and allows for bursts. Think “you are given 100 requests every minute”. If you make all of them over 10 seconds, you’ll have to wait for 1 minute before you are allowed more requests.&lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;Token bucket, sliding window and concurrency limiters&lt;/h3&gt;&lt;p&gt;Our example used &lt;code&gt;GlobalLimiter&lt;/code&gt; with a fixed window. The other algorithms work the same way, and each has a matching &lt;code&gt;Add{RateLimiter}()&lt;/code&gt; extension method that registers it as a named policy (we’ll look at how to apply those further down):&lt;/p&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;csharp&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;builder.Services.AddRateLimiter(options =&amp;gt;
{
    // 10 requests per minute, with the window sliding in 6 segments of 10 seconds
    options.AddSlidingWindowLimiter(&amp;quot;sliding&amp;quot;, opt =&amp;gt;
    {
        opt.PermitLimit = 10;
        opt.Window = TimeSpan.FromMinutes(1);
        opt.SegmentsPerWindow = 6;
    });

    // Bursts of up to 100 requests, refilled with 20 tokens every 10 seconds
    options.AddTokenBucketLimiter(&amp;quot;token&amp;quot;, opt =&amp;gt;
    {
        opt.TokenLimit = 100;
        opt.TokensPerPeriod = 20;
        opt.ReplenishmentPeriod = TimeSpan.FromSeconds(10);
    });

    // At most 5 requests being processed at the same time
    options.AddConcurrencyLimiter(&amp;quot;concurrency&amp;quot;, opt =&amp;gt;
    {
        opt.PermitLimit = 5;
        opt.QueueLimit = 2;
    });
});&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;h3&gt;Chaining rate limiters&lt;/h3&gt;&lt;p&gt;You can “chain” rate limiters of one type or various types, using the &lt;code&gt;PartitionedRateLimiter.CreateChained()&lt;/code&gt; helper.&lt;/p&gt;&lt;p&gt;Maybe you want to have a limit where one can make 600 requests per minute, but only 6000 per hour.
You could chain two &lt;code&gt;FixedWindowLimiter&lt;/code&gt; with different options.&lt;/p&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;csharp&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;builder.Services.AddRateLimiter(options =&amp;gt;
{
    options.GlobalLimiter = PartitionedRateLimiter.CreateChained(
        PartitionedRateLimiter.Create&amp;lt;HttpContext, string&amp;gt;(httpContext =&amp;gt;
            RateLimitPartition.GetFixedWindowLimiter(httpContext.ResolveClientIpAddress(), _ =&amp;gt;
                new FixedWindowRateLimiterOptions
                {
                    AutoReplenishment = true,
                    PermitLimit = 600,
                    Window = TimeSpan.FromMinutes(1)
                })),
        PartitionedRateLimiter.Create&amp;lt;HttpContext, string&amp;gt;(httpContext =&amp;gt;
            RateLimitPartition.GetFixedWindowLimiter(httpContext.ResolveClientIpAddress(), _ =&amp;gt;
                new FixedWindowRateLimiterOptions
                {
                    AutoReplenishment = true,
                    PermitLimit = 6000,
                    Window = TimeSpan.FromHours(1)
                })));

    // ...
});&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;Note that &lt;code&gt;ResolveClientIpAddress()&lt;/code&gt; is a small helper method I use here, which we’ll look at in a bit.
Use a partition key that makes sense for your application.&lt;/p&gt;&lt;h3&gt;Rate limiting per IP address&lt;/h3&gt;&lt;p&gt;A question I get a lot is how to rate limit per IP address, or per user. The &lt;code&gt;GlobalLimiter&lt;/code&gt; examples above already do this by creating a different partition for each client.
If you want the same for a named policy, use &lt;code&gt;AddPolicy()&lt;/code&gt; instead of &lt;code&gt;Add{RateLimiter}()&lt;/code&gt;, as the latter shares one counter for everyone using the policy.
Here’s a policy that gives authenticated users 100 requests per minute, and everyone else 20 requests per minute per IP address:&lt;/p&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;csharp&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;options.AddPolicy(&amp;quot;per-user&amp;quot;, httpContext =&amp;gt;
{
    if (httpContext.User.Identity?.Name is { Length: &amp;gt; 0 } user)
    {
        return RateLimitPartition.GetFixedWindowLimiter(user, _ =&amp;gt;
            new FixedWindowRateLimiterOptions { PermitLimit = 100, Window = TimeSpan.FromMinutes(1) });
    }

    return RateLimitPartition.GetFixedWindowLimiter(httpContext.ResolveClientIpAddress(), _ =&amp;gt;
        new FixedWindowRateLimiterOptions { PermitLimit = 20, Window = TimeSpan.FromMinutes(1) });
});&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;The &lt;code&gt;ResolveClientIpAddress()&lt;/code&gt; method is a small extension method of my own. Here’s a minimal implementation:&lt;/p&gt;&lt;p&gt;(On older C# versions, use the classic &lt;code&gt;public static string ResolveClientIpAddress(this HttpContext httpContext)&lt;/code&gt; form.)&lt;/p&gt;&lt;p&gt;It purely returns &lt;code&gt;Connection.RemoteIpAddress&lt;/code&gt;. Behind a reverse proxy or load balancer, that’s the proxy’s address, not the client’s.
Resist the urge to parse &lt;code&gt;X-Forwarded-For&lt;/code&gt; yourself, as clients can spoof it. Instead, let the built-in forwarded headers middleware set &lt;code&gt;RemoteIpAddress&lt;/code&gt; for you, and only trust proxies you know:&lt;/p&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;csharp&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;builder.Services.Configure&amp;lt;ForwardedHeadersOptions&amp;gt;(options =&amp;gt;
{
    options.ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto;
    options.KnownProxies.Add(IPAddress.Parse(&amp;quot;10.0.0.100&amp;quot;));
    options.KnownNetworks.Add(new Microsoft.AspNetCore.HttpOverrides.IPNetwork(IPAddress.Parse(&amp;quot;10.0.0.0&amp;quot;), 8));
});

// ...

app.UseForwardedHeaders(); // before UseRateLimiter()&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;See the &lt;a href=&quot;https://learn.microsoft.com/aspnet/core/host-and-deploy/proxy-load-balancer&quot;&gt;proxy and load balancer docs&lt;/a&gt; for details on &lt;code&gt;KnownProxies&lt;/code&gt; and &lt;code&gt;KnownNetworks&lt;/code&gt;.&lt;/p&gt;&lt;h3&gt;Queue requests instead of rejecting them: &lt;code&gt;QueueLimit&lt;/code&gt;&lt;/h3&gt;&lt;p&gt;On most of the rate limiters that ship with .NET, you can specify a &lt;code&gt;QueueLimit&lt;/code&gt; next to the &lt;code&gt;PermitLimit&lt;/code&gt;.
The &lt;code&gt;QueueLimit&lt;/code&gt; specifies how many incoming requests will be queued but not rejected when the &lt;code&gt;PermitLimit&lt;/code&gt; is reached.&lt;/p&gt;&lt;p&gt;Let’s look at an example:&lt;/p&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;csharp&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;PartitionedRateLimiter.Create&amp;lt;HttpContext, string&amp;gt;(httpContext =&amp;gt;
    RateLimitPartition.GetFixedWindowLimiter(httpContext.ResolveClientIpAddress(), _ =&amp;gt;
        new FixedWindowRateLimiterOptions
        {
            AutoReplenishment = true,
            PermitLimit = 10,
            QueueLimit = 6,
            QueueProcessingOrder = QueueProcessingOrder.OldestFirst,
            Window = TimeSpan.FromSeconds(1)
        })));&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;In the above example, clients can make 10 requests per second.
If they make more requests per second, up to 6 of those excess requests will be queued and will seemingly “hang” instead of being rejected.
The next second, this queue will be processed.&lt;/p&gt;&lt;p&gt;If you expect small traffic bursts, setting &lt;code&gt;QueueLimit&lt;/code&gt; may provide a nicer experience to your users.
Instead of rejecting their requests, you’re delaying them a bit.&lt;/p&gt;&lt;p&gt;I’d personally not go with large &lt;code&gt;QueueLimit&lt;/code&gt;, and definitely not for long time windows.
As a consumer of an API, I’d rather get a response back fast. Even if it’s a failure, as those can be retried.
A few seconds of being in a queue may make sense, but any longer the client will probably time out anyway and your queue is being kept around with no use.&lt;/p&gt;&lt;h3&gt;Create custom rate limiting policies&lt;/h3&gt;&lt;p&gt;Next to the default rate limiters, you can build your own implementation of &lt;code&gt;IRateLimiterPolicy&amp;lt;TPartitionKey&amp;gt;&lt;/code&gt;.
This interface specifies 2 methods: &lt;code&gt;GetPartition()&lt;/code&gt;, which you’ll use to create a specific rate limiter for the current &lt;code&gt;HttpContext&lt;/code&gt;, and &lt;code&gt;OnRejected()&lt;/code&gt; if you want to have a custom response when this policy is rejecting a request.&lt;/p&gt;&lt;p&gt;Here’s an example where the rate limiter options are partitioned by either the current authenticated user, or their client IP address.
Authenticated users get higher limits, too:&lt;/p&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;csharp&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;public class ExampleRateLimiterPolicy : IRateLimiterPolicy&amp;lt;string&amp;gt;
{
    public RateLimitPartition&amp;lt;string&amp;gt; GetPartition(HttpContext httpContext)
    {
        if (httpContext.User.Identity?.IsAuthenticated == true)
        {
            return RateLimitPartition.GetFixedWindowLimiter(httpContext.User.Identity.Name!,
                _ =&amp;gt; new FixedWindowRateLimiterOptions
                {
                    AutoReplenishment = true,
                    PermitLimit = 1_000,
                    Window = TimeSpan.FromMinutes(1),
                });
        }

        return RateLimitPartition.GetFixedWindowLimiter(httpContext.Connection.RemoteIpAddress?.ToString() ?? &amp;quot;unknown&amp;quot;,
            _ =&amp;gt; new FixedWindowRateLimiterOptions
            {
                AutoReplenishment = true,
                PermitLimit = 100,
                Window = TimeSpan.FromMinutes(1),
            });
    }

    public Func&amp;lt;OnRejectedContext, CancellationToken, ValueTask&amp;gt;? OnRejected { get; } =
        (context, _) =&amp;gt;
        {
            context.HttpContext.Response.StatusCode = 418; // I&amp;#39;m a 🫖
            return new ValueTask();
        };
}&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;And instead of rejecting requests with a well-known status code, this policy rejects requests with a &lt;code&gt;418&lt;/code&gt; status code (“I’m a teapot”).&lt;/p&gt;&lt;h2&gt;Policies for rate limiting groups of endpoints&lt;/h2&gt;&lt;p&gt;So far, we’ve covered global limits that apply to all requests.
There’s a good chance you want to apply different limits to different groups of endpoints.
You may have endpoints that you don’t want to rate limit at all.&lt;/p&gt;&lt;p&gt;This is where policies come in.
In your configuration options, you can create different policies using the &lt;code&gt;.Add{RateLimiter}()&lt;/code&gt; extension methods, and then apply them to specific endpoints or groups thereof.&lt;/p&gt;&lt;p&gt;Here’s an example configuration adding 2 fixed window limiters with different settings, and a different policy name (&lt;code&gt;&amp;quot;Api&amp;quot;&lt;/code&gt; and &lt;code&gt;&amp;quot;Web&amp;quot;&lt;/code&gt;).&lt;/p&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;csharp&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;builder.Services.AddRateLimiter(options =&amp;gt;
{
    options.AddFixedWindowLimiter(&amp;quot;Api&amp;quot;, opt =&amp;gt;
    {
        opt.AutoReplenishment = true;
        opt.PermitLimit = 10;
        opt.Window = TimeSpan.FromMinutes(1);
    });

    options.AddFixedWindowLimiter(&amp;quot;Web&amp;quot;, opt =&amp;gt;
    {
        opt.AutoReplenishment = true;
        opt.PermitLimit = 10;
        opt.Window = TimeSpan.FromMinutes(1);
    });

    // ...
});&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;Before we look at how to apply these policies, let’s first cover an important warning…&lt;/p&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Warning:&lt;/strong&gt; The &lt;code&gt;.Add{RateLimiter}()&lt;/code&gt; extension methods partition rate limits based on the policy name.
This is okay if you want to apply global limits per group of endpoints, but it’s not when you want to partition per user or per IP address or something along those lines.&lt;/p&gt;
&lt;p&gt;If you want to add policies that are partitioned by policy name &lt;em&gt;and&lt;/em&gt; any aspect of an incoming HTTP request, use the &lt;code&gt;.AddPolicy(..)&lt;/code&gt; method instead:&lt;/p&gt;
&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;csharp&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;options.AddPolicy(&amp;quot;Api&amp;quot;, httpContext =&amp;gt;
    RateLimitPartition.GetFixedWindowLimiter(httpContext.ResolveClientIpAddress(),
    _ =&amp;gt; new FixedWindowRateLimiterOptions
    {
        AutoReplenishment = true,
        PermitLimit = 10,
        Window = TimeSpan.FromSeconds(1)
    }));&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;
&lt;/blockquote&gt;&lt;p&gt;With that out of the way, let’s see how you can apply policies to certain endpoints.&lt;/p&gt;&lt;h3&gt;Rate limiting policies with ASP.NET Core Minimal API&lt;/h3&gt;&lt;p&gt;When using ASP.NET Core Minimal API, you can enable a specific policy per endpoint, or per group of endpoints:&lt;/p&gt;&lt;p&gt;Similarly, you can disable rate limiting per endpoint or group:&lt;/p&gt;&lt;h3&gt;Rate limiting policies with ASP.NET Core MVC&lt;/h3&gt;&lt;p&gt;When using ASP.NET Core MVC, you can enable and disable policies per controller or action.&lt;/p&gt;&lt;p&gt;The &lt;code&gt;&amp;quot;ApiListing&amp;quot;&lt;/code&gt; policy used above needs to be registered in &lt;code&gt;Program.cs&lt;/code&gt;, just like &lt;code&gt;&amp;quot;Api&amp;quot;&lt;/code&gt;. Here, listings get a sliding window limit of 30 requests per minute:&lt;/p&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;csharp&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;builder.Services.AddRateLimiter(options =&amp;gt;
{
    options.AddFixedWindowLimiter(&amp;quot;Api&amp;quot;, opt =&amp;gt;
    {
        opt.PermitLimit = 10;
        opt.Window = TimeSpan.FromMinutes(1);
    });

    options.AddSlidingWindowLimiter(&amp;quot;ApiListing&amp;quot;, opt =&amp;gt;
    {
        opt.PermitLimit = 30;
        opt.Window = TimeSpan.FromMinutes(1);
        opt.SegmentsPerWindow = 6;
    });
});&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;A policy on an action overrides the one on the controller, so &lt;code&gt;List()&lt;/code&gt; is limited by &lt;code&gt;&amp;quot;ApiListing&amp;quot;&lt;/code&gt; only (the global limiter still applies).&lt;/p&gt;&lt;p&gt;You’ll find this works similar to authorization and authorization policies.&lt;/p&gt;&lt;h2&gt;ASP.NET Core rate limiting with YARP proxy&lt;/h2&gt;&lt;p&gt;In your application, you may be using &lt;a href=&quot;https://microsoft.github.io/reverse-proxy/&quot;&gt;YARP&lt;/a&gt;, to build a reverse proxy gateway sitting in front of various backend applications. For example, you may run YARP to listen on &lt;code&gt;example.org&lt;/code&gt;, and have it proxy all requests going to this domain while mapping &lt;code&gt;/api&lt;/code&gt; and &lt;code&gt;/docs&lt;/code&gt; to different web apps running on different servers.&lt;/p&gt;&lt;p&gt;In such scenario, rate limiting will also be useful. You could rate limit each application separately, or apply rate limiting in the YARP proxy. Given both YARP and ASP.NET Core rate limiting are middlewares, they play well together.&lt;/p&gt;&lt;p&gt;As an example, here’s a YARP proxy that applies a global rate limit of 10 requests per minute, partitioned by client IP address:&lt;/p&gt;&lt;figure&gt;&lt;figcaption&gt;&lt;span&gt;csharp&lt;/span&gt;&lt;/figcaption&gt;&lt;pre&gt;&lt;code&gt;using System.Threading.RateLimiting;

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddRateLimiter(options =&amp;gt;
{
    options.RejectionStatusCode = StatusCodes.Status429TooManyRequests;
    options.GlobalLimiter = PartitionedRateLimiter.Create&amp;lt;HttpContext, string&amp;gt;(httpContext =&amp;gt;
        RateLimitPartition.GetFixedWindowLimiter(
            partitionKey: httpContext.Connection.RemoteIpAddress?.ToString() ?? &amp;quot;unknown&amp;quot;,
            factory: _ =&amp;gt; new FixedWindowRateLimiterOptions
            {
                AutoReplenishment = true,
                PermitLimit = 10,
                QueueLimit = 0,
                Window = TimeSpan.FromMinutes(1)
            }));
});

builder.Services.AddReverseProxy()
    .LoadFromConfig(builder.Configuration.GetSection(&amp;quot;ReverseProxy&amp;quot;));

var app = builder.Build();
app.UseRateLimiter();
app.MapReverseProxy();
app.Run();&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;&lt;p&gt;Just like with ASP.NET Core Minimal API and MVC apps, you can use the &lt;code&gt;AddRateLimiter()&lt;/code&gt; extension method to configure rate limits, and &lt;code&gt;AddReverseProxy()&lt;/code&gt; to register the YARP configuration.&lt;/p&gt;&lt;p&gt;To then register the configured middlewares in your application, use &lt;code&gt;UseRateLimiter()&lt;/code&gt; and &lt;code&gt;MapReverseProxy()&lt;/code&gt;.&lt;/p&gt;&lt;p&gt;The global limiter applies to all proxied routes. If you want to apply a named policy to specific routes, YARP supports a &lt;code&gt;RateLimiterPolicy&lt;/code&gt; property on each route in its configuration (policy names are case insensitive):&lt;/p&gt;&lt;p&gt;The &lt;code&gt;&amp;quot;Api&amp;quot;&lt;/code&gt; policy is one you register with &lt;code&gt;AddRateLimiter()&lt;/code&gt; (like the examples above). Using the special value &lt;code&gt;disable&lt;/code&gt; skips rate limiting for that route, even the global limiter. See the &lt;a href=&quot;https://learn.microsoft.com/aspnet/core/fundamentals/servers/yarp/rate-limiting&quot;&gt;YARP rate limiting docs&lt;/a&gt; for details.&lt;/p&gt;&lt;h2&gt;Monitoring rate limiting&lt;/h2&gt;&lt;p&gt;The rate limiting middleware emits built-in metrics (meter &lt;code&gt;Microsoft.AspNetCore.RateLimiting&lt;/code&gt;), including &lt;code&gt;aspnetcore.rate_limiting.requests&lt;/code&gt;, &lt;code&gt;aspnetcore.rate_limiting.queued_requests&lt;/code&gt; and &lt;code&gt;aspnetcore.rate_limiting.request.time_in_queue&lt;/code&gt;, tagged with the policy name.
That’s handy to see how often your limits are hit before you tweak them. See the &lt;a href=&quot;https://learn.microsoft.com/aspnet/core/metrics/http&quot;&gt;HTTP metrics reference&lt;/a&gt; for the full list.&lt;/p&gt;&lt;h2&gt;Wrapping up&lt;/h2&gt;&lt;p&gt;By limiting the number of requests that can be made to your application, you can reduce the load on your server and have more fair usage of resources among your users.
ASP.NET Core provides an easy way to implement rate limiting in your applications. By using the built-in middleware, you can easily configure rate limiting for your application.&lt;/p&gt;&lt;p&gt;In this post, I wanted to give you some insights about how you can use the ASP.NET Core rate limiting middleware.
It’s not as complete as &lt;a href=&quot;https://github.com/stefanprodan/AspNetCoreRateLimit&quot;&gt;Stefan Prodan’s &lt;code&gt;AspNetCoreRateLimit&lt;/code&gt;&lt;/a&gt;, but there are enough options available to add rate limiting to your application.&lt;/p&gt;&lt;p&gt;In a future blog post, I’ll cover more concepts around rate limiting. Stay tuned!&lt;/p&gt;</content:encoded>
</item>
<item>
<title>DSpace – institutional digital repository platform</title>
<link>https://www.linuxlinks.com/dspace-institutional-digital-repository-platform/</link>
<guid isPermaLink="false">zm9up0m9opAWM4xyJt4_QIasQq3wkTcqcrp7OQ==</guid>
<pubDate>Sat, 28 Nov 2026 03:21:51 +0000</pubDate>
<description>DSpace manages institutional repositories for research outputs, theses and datasets with metadata, access controls and discovery. The post DSpace – institutional digital repository platform appeared first on LinuxLinks.</description>
<content:encoded>&lt;p&gt;DSpace manages institutional repositories for research outputs, theses and datasets with metadata, access controls and discovery.&lt;/p&gt;&lt;p&gt;The post &lt;a href=&quot;https://www.linuxlinks.com/dspace-institutional-digital-repository-platform/&quot;&gt;DSpace – institutional digital repository platform&lt;/a&gt; appeared first on &lt;a href=&quot;https://www.linuxlinks.com&quot;&gt;LinuxLinks&lt;/a&gt;.&lt;/p&gt;</content:encoded>
</item>
<item>
<title>Why optimistic updates are corrosive</title>
<link>https://datastar-instant-intent.ndyg.cross.stream/corrosive/</link>
<enclosure type="image/jpeg" length="0" url="https://datastar-instant-intent.ndyg.cross.stream/static/corrosive-og.png?v=64092d5f"></enclosure>
<guid isPermaLink="false">lX9DuLhYMEOrcS1jIQOrjC7ChZFLTpf4eFMgFg==</guid>
<pubDate>Sat, 28 Nov 2026 00:32:22 +0000</pubDate>
<description>Why optimistic updates are corrosive, with a demo of a switch that uses instant intent.</description>
<content:encoded>&lt;figure&gt;&lt;a href=&quot;https://datastar-instant-intent.ndyg.cross.stream/static/thread.png?v=9b706ca3&quot;&gt;
  &lt;img src=&quot;https://datastar-instant-intent.ndyg.cross.stream/static/thread.png?v=9b706ca3&quot; alt=&quot;The thread on X. Ben, @ben_codez: Sounds like you&amp;#39;re making the terminology up! Makes sense though. No self respecting dev would show the user a booking had succeeded before server verification. We&amp;#39;re probably agreeing and arguing semantics. Ben: To be clear, I was talking about stuff like &amp;quot;liking a post&amp;quot; or displaying the users&amp;#39;s post before the server has come back and said &amp;quot;ok&amp;quot;. (It can retry silently). Andy Gayton, @cablelounger: this is corrosive. Ben: What is corrosive?&quot; title=&quot;&quot;/&gt;&lt;/a&gt;
&lt;/figure&gt;&lt;p&gt;I was having an X &lt;a href=&quot;https://x.com/ben_codez/status/2126084141187846347&quot;&gt;conversation&lt;/a&gt; with &lt;a href=&quot;https://x.com/ben_codez&quot;&gt;@ben_codez&lt;/a&gt;, and
they asked: why is showing an update as succeeded, before the underlying
operation has actually succeeded, corrosive?&lt;/p&gt;&lt;p&gt;It&amp;#39;s corrosive because it normalizes software that is plainly broken and
doesn&amp;#39;t respect our users. If a user flips a switch, and sees it flip, and then
comes back, and the switch is unflipped, the software is broken. How can you
operate software that doesn&amp;#39;t do what you request it to do? It erodes trust.&lt;/p&gt;&lt;h2&gt;Ben&amp;#39;s position&lt;/h2&gt;&lt;p&gt;I made a chart of what I understand to be Ben&amp;#39;s position on communicating with
their users.&lt;/p&gt;&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;b&gt;&amp;quot;Booking confirmed&amp;quot;&lt;/b&gt; shown before the server checks the seat&lt;/p&gt;
    &lt;p&gt;&lt;b&gt;No self respect&lt;/b&gt; Ben: &amp;quot;No self respecting dev would show the user a booking had succeeded before server verification.&amp;quot;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;h3&gt;Ben&amp;#39;s line&lt;/h3&gt;
    &lt;p&gt;&lt;b&gt;Your like shows as done&lt;/b&gt; before the server says &amp;quot;ok&amp;quot;&lt;/p&gt;
    &lt;div&gt;
      &lt;p&gt;Ben: &amp;quot;liking a post&amp;quot;, &amp;quot;(It can retry silently).&amp;quot;&lt;/p&gt;
      &lt;p&gt;If the user closes the tab before the server has it, their like is lost and the user is never told.&lt;/p&gt;
    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;h3&gt;Instant intent &lt;span&gt;show only what is known to be true&lt;/span&gt;&lt;/h3&gt;
    &lt;p&gt;&lt;b&gt;Your post shows greyed out&lt;/b&gt; until the server says &amp;quot;ok&amp;quot;&lt;/p&gt;
    &lt;p&gt;Ben: &amp;quot;Right!&amp;quot;, to a post shown &amp;quot;greyed out maybe, to indicate it wasn&amp;#39;t committed&amp;quot;.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;&lt;h2&gt;Demo&lt;/h2&gt;&lt;p&gt;But in addition to that, it&amp;#39;s actually &lt;em&gt;easier&lt;/em&gt; to make software that doesn&amp;#39;t
lie to your users. You can skip all the reconciliation machinery that&amp;#39;s required
to create UI that communicates to users that the change they thought had gone
through had indeed not gone through.&lt;/p&gt;&lt;p&gt;Here&amp;#39;s a quick demo of using instant intent to communicate the state toggling a switch e.g. a like button.&lt;/p&gt;&lt;div&gt;
  

  
&lt;/div&gt;
  
  offline
&lt;h3&gt;Client-side affordances&lt;/h3&gt;&lt;p&gt;When you click the switch, the client shows the button as pressed straight away and sends the click to
the server. The switch takes no more clicks while it&amp;#39;s pressed, and if there&amp;#39;s
no answer within half a second, it starts to blink. The client then won&amp;#39;t update until the server answers with the reconciled HTML view, which Datastar morphs in place.&lt;/p&gt;&lt;p&gt;Experiment with different latencies and taking it offline, to see how the interaction feels under different scenarios.&lt;/p&gt;&lt;p&gt;The pressed and blinking look is the same CSS the seats use, on the
&lt;a href=&quot;https://datastar-instant-intent.ndyg.cross.stream/&quot;&gt;main page&lt;/a&gt;.&lt;/p&gt;</content:encoded>
</item>
<item>
<title>Objections to .php application being published on ICANN site - roddie digital on domains</title>
<link>https://pub.roddie.digital/3n3aavxi6hc2g</link>
<enclosure type="image/jpeg" length="0" url="https://leaflet.pub/lish/did%3Aplc%3Ac4a3qielmyzhsdlcal6mxbz5/3muckj5jvqk2u/3n3aavxi6hc2g/opengraph-image-1qv6ug?c1d2f6c379aabdcf"></enclosure>
<guid isPermaLink="false">Wv0pknM1aw6_NMVrBjQzIL5Lb1ebPdBsz5lY9w==</guid>
<pubDate>Fri, 27 Nov 2026 18:30:00 +0000</pubDate>
<description>Five complaints already posted to the Application Comment Forum</description>
<content:encoded>&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;.php written in Handel Gothic italic, dark brown text on yellow background.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;span&gt;After Automattic&amp;#39;s confirmation that they would switch their &lt;/span&gt;&lt;code class=&quot;       inline-code                                          &quot;&gt;.vibe&lt;/code&gt;&lt;span&gt; application to the replacement string of &lt;/span&gt;&lt;code class=&quot;       inline-code                                          &quot;&gt;.php&lt;/code&gt;&lt;sup&gt;1&lt;/sup&gt;&lt;span&gt;, ICANN has started to publish various objections on the Application Comment Forum (ACF) section of their new gTLD program site&lt;/span&gt;&lt;sup&gt;2&lt;/sup&gt;&lt;span&gt;. They mostly relate to the confusion and security risk posed by a common filetype (especially in web development) becoming a TLD, similar to the outcry over Google&amp;#39;s application for &lt;/span&gt;&lt;code class=&quot;       inline-code                                          &quot;&gt;.zip&lt;/code&gt;&lt;span&gt; (which was eventually successfully delegated). The other common theme is the objection to a private company effectively trying to claim what is an open-source project.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;The first is by PHP developer Larry Garfield who accused the WordPress parent of &amp;quot;Inappropriate Squatting&amp;quot;:&lt;/span&gt;&lt;sup&gt;3&lt;/sup&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span&gt;PHP is a widely used programming language. It is managed by the PHP project, an informal project at &lt;/span&gt;&lt;a href=&quot;http://www.php.net&quot;&gt;www.php.net&lt;/a&gt;&lt;span&gt;. It is also supported by The PHP Foundation, a non-profit organization managed through OpenCollective.&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span&gt;No one organization, company, or person owns or controls PHP. Authority within the PHP language and ecosystem is deliberately diffuse.&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span&gt;Automattic, the company that has attempted to register .php as a TLD, is the owner/author of the WordPress blogging software. WordPress is itself written in PHP and Javascript. However, Automattic has no ownership or control over the PHP language itself. In fact, Automattic and its employees are conspicuously absent from contribution to the PHP project itself, aside from in recent years becoming a large passive donor to The PHP Foundation.&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span&gt;For Automattic, or any other company that operates in the PHP space, to try and lay claim to .php as a TLD is grossly inappropriate. There are dozens of other companies, projects, and interested parties that have just as much if not more claim to the name. PHP is a far larger ecosystem than just Automattic.&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span&gt;It would be equivalent to Microsoft registering .rust (they use a lot of Rust now, but did not originate the language), or Hashicorp registering .golang, or IBM registering .java. None of those would be reasonable or appropriate, and neither is any one organization owning .php.&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span&gt;One company owning .php would be significantly harmful to the PHP ecosystem, as it would give control over a significant branding and marketing channel to one company that is not engaged in the ecosystem, leading to market confusion and an easily exploitable way for that company to claim more authority and ownership than it actually has.&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span&gt;The only organization that has any legitimate claim to register .php would be The PHP Foundation, but they have made no such attempt.&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span&gt;The application for .php&lt;/span&gt; &lt;span&gt;should be rejected outright as inappropriate &amp;quot;domain squatting.&amp;quot; Its approval would be detrimental to a major software ecosystem, and establish a dangerous precedent for one company claiming an entire ecosystem&amp;#39;s name without cause.&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;span&gt;WordPress contributor Jamie VanRaalte objected on the grounds of &amp;quot;Part of a pattern - .php should not go to one company&amp;quot; and also said the &lt;/span&gt;&lt;code class=&quot;       inline-code                                          &quot;&gt;.wordpress&lt;/code&gt;&lt;span&gt; application was a similarly inappropriate power grab of another open-source project:&lt;/span&gt;&lt;sup&gt;4&lt;/sup&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span&gt;I agree with the comments already made here about .php. [I&amp;#39;ve been building commercial software in PHP for X years.] PHP is run by the PHP project and supported by The PHP Foundation, and no company owns it.&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span&gt;I want to add one thing that&amp;#39;s easy to miss when this application is looked at on its own. Knock Knock WHOIS There, LLC is a subsidiary of Automattic, and it has also applied for .wordpress. WordPress is an open source project too, and its trademark is held by the WordPress Foundation, not Automattic. So this is one company applying for the names of two open source ecosystems that it takes part in but does not govern.&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span&gt;Automattic does use PHP heavily, but so do millions of other developers and companies. Using a language doesn&amp;#39;t give a company any claim to its name. If .php goes to Automattic, it would decide who can register under the name of a language that belongs to everyone who uses it.&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span&gt;If .php should exist at all, it should be held by The PHP Foundation or another neutral body accountable to the PHP community. This application, and the one for .wordpress, should both be rejected.&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;span&gt;Web developer Ryan Maietta highlighted the &amp;quot;File Extension Confusion and Security Risks&amp;quot; of using an established filetype as a TLD and the risk of people confusing websites using this domain as being officially endorsed by the PHP project:&lt;/span&gt;&lt;sup&gt;5&lt;/sup&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span&gt;I oppose the proposed .php top-level domain because .php already has a widely recognized meaning as the extension for PHP files.&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span&gt;I work in web development and sometimes use the open-source WordPress software. The .php extension appears throughout websites, source code, documentation, development tools and technical discussions. If .php becomes a top-level domain, the same text could identify either a PHP file or a registered domain name.&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span&gt;For example, wp-login.php is the standard WordPress login script. If .php is approved and the name is available for registration, wp-login.php could also be a domain owned by someone with no connection to WordPress. A link shared in a message or technical discussion could appear familiar while sending someone to an unrelated website. Software that automatically turns text into links could make this confusion worse.&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span&gt;The concern extends beyond WordPress. Someone could register domains that resemble PHP scripts or development resources and use them for phishing or impersonation. People may also mistake a .php website for an official resource endorsed by the PHP project. These risks are another reason I oppose the application.&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span&gt;The applicant is an Automattic company. Automattic has a significant role in the WordPress ecosystem, but PHP is an independent, open-source language used by developers and organizations around the world. The interests of the broader PHP community deserve consideration.&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span&gt;I ask ICANN to reject this application. The security risks are my most important concern, and my opposition goes beyond them. I do not believe a single private company should control a top-level domain so closely associated with a language it does not own.&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;span&gt;Forensic analyst Herbert Bärschneider also objected simply on the grounds of confusing the TLD with the filetype:&lt;/span&gt;&lt;sup&gt;6&lt;/sup&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span&gt;When computer users browse the internet, they have to work with URLs. Such URLS can be complex and even appear cryptic to users.&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span&gt;Users often tend to identify patterns and attach trust to those patterns - e. g. websites starting with &amp;quot;https&amp;quot; and &amp;quot;&lt;/span&gt;&lt;a href=&quot;http://www&quot;&gt;www&lt;/a&gt;&lt;span&gt;.&amp;quot;.&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span&gt;The long use of PHP as a way of creating websites will have lead to patterns which point towards &amp;quot;legitimate websites end with .php&amp;quot;. By creating a TLD &amp;quot;php&amp;quot;, this will lead to confusion. This confusion can be abused - allowing malicious third-parties to use the inherent trust in php Pages with .php domains.&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span&gt;As security community, we should shield computer users from such abuse potential by not creating TLDs that mimik well-established meanings on the web.&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;span&gt;And finally, the ICANN-affiliated Mark William Datysgeld described &lt;/span&gt;&lt;code class=&quot;       inline-code                                          &quot;&gt;.php&lt;/code&gt;&lt;span&gt; as being &amp;quot;Not viable from a technical perspective&amp;quot;&lt;/span&gt;&lt;sup&gt;7&lt;/sup&gt;&lt;span&gt; highlighting that he has already had issues creating the page for it on the PHP-based ICANN Wiki site, causing it to return a 404 error response&lt;/span&gt;&lt;sup&gt;8&lt;/sup&gt;&lt;span&gt;:&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span&gt;.php&amp;quot; is the standard file extension for PHP, one of the most widely deployed Web languages. Software commonly treats any string ending in &amp;quot;.php&amp;quot; as a script or file path. Delegating .php as a gTLD would make every second-level registration, such as &amp;quot;index.php&amp;quot;, both a valid domain name and a valid filename.&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span&gt;This collision is already causing failures as-is. When creating the ICANNWiki article for this gTLD application, the entry was created in the database and appears in search, but it cannot be resolved and returns &amp;quot;Page not found&amp;quot;, so even documenting this application will require a technical workaround. I expect the same class of failure in any system that routes or parses &amp;quot;.php&amp;quot; strings, which is to say, many of the Web&amp;#39;s systems.&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span&gt;I ask evaluators to consider this in the Safeguard Assessment and to put the following question to the applicant: what measures does it propose to address collisions between .php domain names and PHP file paths in software that routes or parses them? Given the scope of the issue, I also ask evaluators to recommend that this application not proceed.&lt;/span&gt;&lt;/blockquote&gt;</content:encoded>
</item>
<item>
<title>文献每日一读</title>
<link>https://www.seis-jun.xyz/blog/2026-09-21-paper-read.html</link>
<guid isPermaLink="false">QdvlK312t7_V7JrAhFmBha1vFj-p0mPd7bcc1A==</guid>
<pubDate>Fri, 27 Nov 2026 15:08:02 +0000</pubDate>
<description>文献收集了不少，每天打开一篇认真读，还是得给自己安排一下。</description>
<content:encoded>&lt;p&gt;文献收集了不少，每天打开一篇认真读，还是得给自己安排一下。&lt;/p&gt;&lt;p&gt;于是，请Codex做了个小工具，名字就叫“每日一读”。把Zotero里的文献和电脑上存着的PDF放到一个页面里，每天挑一篇，读完打个勾。再加一个上午十点的提醒，给读文献留一个固定的位置。&lt;/p&gt;&lt;p&gt;先跑起来，看看能不能坚持。&lt;/p&gt;&lt;h2&gt;今天读哪篇？&lt;/h2&gt;&lt;p&gt;打开网页，工具会从有PDF、还没读过的文献里挑一篇。标题、作者、年份和摘要放在前面，下面直接预览PDF。&lt;/p&gt;&lt;p&gt;重点是“随机”，跟你看奏章似的，当然还是可以选在哪个目录下面随机，或者在整个数据库里随机。&lt;/p&gt;&lt;p&gt;不想读这篇，可以换一篇；遇到想留着细看的，可以收藏。读完以后点一下“读完了”，当天就有了记录。如果还想继续，也可以再来一篇。&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://img.seis-jun.xyz/images/today_20260921.jpg&quot; alt=&quot;今日阅读完成后的页面&quot; title=&quot;&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;图 1：今日页在标记读完后的状态，也可以从这里继续“加餐”阅读。&lt;/em&gt;&lt;/p&gt;&lt;p&gt;这个选择目前是随机的，没有按研究方向做推荐。对我来说，先解决“今天打开哪篇”这个小问题，也就够用了。&lt;/p&gt;&lt;p&gt;文库页面则保留了主动找文章的入口，可以搜索，也可以筛选缺 PDF、已读、收藏等状态。有明确要读的文章时，直接去找，不必等随机挑中。&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://img.seis-jun.xyz/images/library_20260921.jpg&quot; alt=&quot;文库中搜索 Rayleigh 的结果&quot; title=&quot;&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;图 2：在文库中搜索 Rayleigh，可以看到文献状态，以及打开 PDF、标注、收藏等操作入口。&lt;/em&gt;&lt;/p&gt;&lt;h2&gt;边读边做点标记&lt;/h2&gt;&lt;p&gt;读文献总得划几道线，留几句批注。&lt;/p&gt;&lt;p&gt;目前网页里主要负责预览。点“标注”，会用 Mac 自带的 Preview 打开对应的 PDF，然后就可以高亮、画线、加文字或便笺。保存之后，批注留在 PDF 文件里，回到网页重新加载就能查看。&lt;/p&gt;&lt;p&gt;这套办法稍微绕了一步，不过用的是现成的阅读器，不用在小工具里重新做一套标注功能。&lt;/p&gt;&lt;p&gt;这里也要区分一下：PDF 上的批注已经有了使用入口，独立的读书笔记还没有。比如给每篇文章写一段“解决了什么问题、方法有什么用、和自己的工作有什么关系”，目前还没有专门的编辑和保存入口。Zotero 里的笔记也没有同步进来。&lt;/p&gt;&lt;p&gt;这个以后值得补。划了不少线，过一阵子却想不起当时为什么划，还是挺可惜的。&lt;/p&gt;&lt;h2&gt;上午十点，提醒自己一下&lt;/h2&gt;&lt;p&gt;提醒时间定在每天上午十点。&lt;/p&gt;&lt;p&gt;到时间，如果当天还没有标记读完，就尝试发一条系统通知；已经打过卡，就不再提醒。当前定时任务已经装好，不过实际通知能不能正常弹出，还要在日常使用中确认。&lt;/p&gt;&lt;p&gt;平时使用倒是简单。电脑登录后，本地服务会自动运行，浏览器打开：&lt;/p&gt;&lt;div&gt;&lt;pre&gt;&lt;code&gt;http://127.0.0.1:8766&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;把这个地址放进书签栏，每天点开就行。这个地址只指向自己的电脑，不是一个公开网站。&lt;/p&gt;&lt;p&gt;如果哪天页面打不开，可以到项目目录手动启动。我这台电脑上的命令是：&lt;/p&gt;&lt;div&gt;&lt;pre&gt;&lt;code&gt;cdpaper_read
./scripts/run.sh&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;手动启动时，终端窗口要保持开着。&lt;/p&gt;&lt;h2&gt;留下一点阅读记录&lt;/h2&gt;&lt;p&gt;“记录”页面里有累计已读、连续天数和阅读热力图，可以回头看看最近有没有读文献。&lt;/p&gt;&lt;p&gt;这些数字记录的是自己点过的“读完了”。文章是否读懂、方法能不能复现、结论有没有问题，当然还得自己判断。小工具帮忙留个记录，不能替自己读。&lt;/p&gt;&lt;p&gt;&lt;img src=&quot;https://img.seis-jun.xyz/images/history_20260921.jpg&quot; alt=&quot;阅读统计、热力图和最近动态&quot; title=&quot;&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;图 3：当前的阅读统计和热力图。下面的“最近动态”也会记录文库整理操作，并不全是阅读事件。&lt;/em&gt;&lt;/p&gt;&lt;p&gt;目前先用这一版：上午十点，打开一篇论文，做点批注，读完留个记录。独立笔记等真正用起来以后，再按需要补。&lt;/p&gt;&lt;p&gt;工具已经有了，接下来轮到读论文了。&lt;/p&gt;</content:encoded>
</item>
<item>
<title>用Cloudflare Tunnel给博客放图片</title>
<link>https://www.seis-jun.xyz/blog/2026-09-09-cloudflare-tunnel-image-hosting.html</link>
<guid isPermaLink="false">0mhmMw0uyUwZfCGBw1WqQwzV769oEuR54pvBAA==</guid>
<pubDate>Fri, 27 Nov 2026 15:08:02 +0000</pubDate>
<description>虽然好多图片我已经不推送到GitHub Pages上，但没办法有些还是得上传自己的图。</description>
<content:encoded>&lt;p&gt;&lt;img src=&quot;https://img.seis-jun.xyz/images/gmail-smtp3.png&quot; alt=&quot;&quot; title=&quot;&quot;/&gt;&lt;/p&gt;&lt;p&gt;虽然好多图片我已经不推送到GitHub Pages上，但没办法有些还是得上传自己的图。&lt;/p&gt;&lt;p&gt;怎么办？&lt;/p&gt;&lt;p&gt;之前我已经在办公室Fedora上配置好了Cloudflare Tunnel，FreshRSS和PaperHot都从这里出去。既然隧道已经挖通，再给博客图片留一条路似乎也不费多少事。&lt;del&gt;没有用R2是因为找不到visa卡&lt;/del&gt;&lt;/p&gt;&lt;p&gt;最后的结构是：&lt;/p&gt;&lt;div&gt;&lt;pre&gt;&lt;code&gt;GitHub Pages上的博客
    ↓ 请求图片
https://xxx.seis-jun.xyz/
    ↓
Cloudflare Tunnel
    ↓
Fedora上的Nginx：127.0.0.1:8081
    ↓
/var/www/seisamuse-media/&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2&gt;图片放在哪里&lt;/h2&gt;&lt;p&gt;图片不再放进GitHub仓库，而是单独放在Fedora的这个目录：&lt;/p&gt;&lt;div&gt;&lt;pre&gt;&lt;code&gt;/var/www/seisamuse-media/&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;目前分成两类：&lt;/p&gt;&lt;div&gt;&lt;pre&gt;&lt;code&gt;/var/www/seisamuse-media/
├── images/
│   ├── 3.png
│   └── 其他普通博客图片
└── blog/
    └── assets/
        └── 文章slug/
            └── figure1.png&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;普通图片放在：&lt;/p&gt;&lt;div&gt;&lt;pre&gt;&lt;code&gt;/var/www/seisamuse-media/images/&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;某篇文章独有的论文插图，则可以放在：&lt;/p&gt;&lt;div&gt;&lt;pre&gt;&lt;code&gt;/var/www/seisamuse-media/blog/assets/文章slug/&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;建目录：&lt;/p&gt;&lt;div&gt;&lt;pre&gt;&lt;code&gt;sudomkdir-p/var/www/seisamuse-media/images
sudomkdir-p/var/www/seisamuse-media/blog/assets
sudochmod-Ra+rX/var/www/seisamuse-media
sudorestorecon-Rv/var/www/seisamuse-media&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;这里只放准备公开的博客图片。一些不想让别人看到的东西当然不能顺手扔进去。&lt;/p&gt;&lt;h2&gt;用Nginx提供图片&lt;/h2&gt;&lt;p&gt;Fedora上原本已经装了Nginx，所以不用再装一次，只需要增加一个配置：&lt;/p&gt;&lt;div&gt;&lt;pre&gt;&lt;code&gt;/etc/nginx/conf.d/seisamuse-media.conf&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;内容如下：&lt;/p&gt;&lt;div&gt;&lt;pre&gt;&lt;code&gt;server{listen127.0.0.1:8081;server_namexxxx;root/var/www/seisamuse-media;location/{try_files$uri=404;add_headerCache-Control&amp;quot;public,max-age=31536000,immutable&amp;quot;;}autoindexoff;}&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Nginx只监听&lt;code&gt;127.0.0.1:8081&lt;/code&gt;。也就是说，办公室路由器不需要开放8081端口，外部访问全部交给Cloudflare Tunnel。&lt;/p&gt;&lt;p&gt;先检查配置，再启动服务：&lt;/p&gt;&lt;div&gt;&lt;pre&gt;&lt;code&gt;sudonginx-t
sudosystemctlenable--nownginx&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;本地测试：&lt;/p&gt;&lt;div&gt;&lt;pre&gt;&lt;code&gt;curl-Ihttp://127.0.0.1:8081/images/3.png&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2&gt;SELinux给我拦了一下&lt;/h2&gt;&lt;p&gt;一开始并没有顺利返回图片，而是直接报错：&lt;/p&gt;&lt;div&gt;&lt;pre&gt;&lt;code&gt;curl: (7) Failed to connect to 127.0.0.1 port 8081&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;查看Nginx状态以后才发现，真正的错误是：&lt;/p&gt;&lt;div&gt;&lt;pre&gt;&lt;code&gt;bind() to 127.0.0.1:8081 failed (13: Permission denied)&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Nginx配置语法没有问题，端口也没有被占用，是Fedora的SELinux不允许Nginx监听这个新端口。需要把8081加入允许的HTTP端口：&lt;/p&gt;&lt;div&gt;&lt;pre&gt;&lt;code&gt;sudosemanageport-a-thttp_port_t-ptcp8081&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;如果系统提示8081已经有定义，则改用：&lt;/p&gt;&lt;div&gt;&lt;pre&gt;&lt;code&gt;sudosemanageport-m-thttp_port_t-ptcp8081&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;然后重新检查并启动：&lt;/p&gt;&lt;div&gt;&lt;pre&gt;&lt;code&gt;sudonginx-t
sudosystemctlstartnginx&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;这次本地访问终于返回了&lt;code&gt;200 OK&lt;/code&gt;。这种问题挺有Fedora特色：东西明明都摆对了，门口的保安还是要再看一眼证件。&lt;/p&gt;&lt;h2&gt;加进已有的Cloudflare Tunnel&lt;/h2&gt;&lt;p&gt;我没有重新创建Tunnel，只是在已有配置中增加一个hostname。Cloudflare Tunnel的配置文件是：&lt;/p&gt;&lt;div&gt;&lt;pre&gt;&lt;code&gt;/root/.cloudflared/config.yml&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;修改前先备份：&lt;/p&gt;&lt;div&gt;&lt;pre&gt;&lt;code&gt;sudocp/root/.cloudflared/config.yml\/root/.cloudflared/config.yml.bak.$(date+%Y%m%d_%H%M%S)&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;在最后的404兜底规则前增加：&lt;/p&gt;&lt;div&gt;&lt;pre&gt;&lt;code&gt;-hostname:img.xxxxservice:http://127.0.0.1:8081-service:http_status:404&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;检查配置：&lt;/p&gt;&lt;div&gt;&lt;pre&gt;&lt;code&gt;sudocloudflaredtunnel\--config/root/.cloudflared/config.yml\ingressvalidate&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;然后给现有Tunnel增加DNS路由：&lt;/p&gt;&lt;div&gt;&lt;pre&gt;&lt;code&gt;sudocloudflaredtunnelroutedns\&amp;lt;现有Tunnel名称&amp;gt;\img.seis-jun.xyz&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;最后重启Tunnel服务：&lt;/p&gt;&lt;div&gt;&lt;pre&gt;&lt;code&gt;sudosystemctlrestartcloudflared-freshrss.service&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;公网测试：&lt;/p&gt;&lt;div&gt;&lt;pre&gt;&lt;code&gt;curl-Ihttps://xxxx/images/3.png&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;实际返回了&lt;code&gt;HTTP/2 200&lt;/code&gt;，文件大小和Fedora上的原图一致。原来的FreshRSS和PaperHot也都正常，说明新规则没有把旧服务挤下去。&lt;/p&gt;&lt;h2&gt;博客里怎么使用&lt;/h2&gt;&lt;p&gt;Markdown正文里直接写完整地址：&lt;/p&gt;&lt;div&gt;&lt;pre&gt;&lt;code&gt;![图片说明](https://xxx/images/3.png)&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;首页卡片图则写在文章头部：&lt;/p&gt;&lt;div&gt;&lt;pre&gt;&lt;code&gt;card_image:https://xxxx/images/3.png&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;文章专属图片可以写成：&lt;/p&gt;&lt;div&gt;&lt;pre&gt;&lt;code&gt;![论文图](https://xxxx.xyz/blog/assets/文章slug/figure1.png)&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;以后写博客的流程也就变成了：图片复制到Fedora，Markdown继续放GitHub，文章通过&lt;code&gt;xxx.seis-jun.xyz&lt;/code&gt;引用图片。GitHub仓库终于只需要负责它比较擅长的文字和代码，不必再被一堆大图压得气喘吁吁。&lt;/p&gt;&lt;p&gt;当然，这种办法也有代价。办公室电脑关机、Nginx停止或者Tunnel断线时，博客还能打开，图片却会暂时消失。所以重要图片仍然需要另外备份，不能觉得能在浏览器里打开就算万事大吉。&lt;/p&gt;&lt;p&gt;至少现在，第一张图片已经从自己的Fedora里钻过Cloudflare Tunnel，稳稳地出现在博客上了。这就可以了。&lt;/p&gt;&lt;p&gt;下次找到visa卡再试试cloudflare R2吧。&lt;/p&gt;</content:encoded>
</item>
</channel>
</rss>
