Infrequently Noted

Alex Russell on browsers, standards, and the process of progress.

Corruption Is A Cost-of-Living Issue: App Store Edition

While I'm not shy about my pro-democracy, anti-authoritarian politics, this blog has kept to a more technical lane, veering into policy only out of necessity. As the scale of the web's setbacks at the hands of proprietary forces became clear, it became urgent to explain them and raise the alarm. But politics are inescapable now; the abuses inherent in centralised control of native app platforms aren't just enabling violent repression on foreign shores, but threaten the democracy I call home.

Not coincidentally, the same forces have driven up prices for consumers and businesses. The control demanded by app stores has served to excuse insufficient platform security while concentrating wealth to a shocking degree, warping public policy along the way.

The moral outrages of ICE are just the latest in a long line of corruptions the app stores have fathered. App stores exist to protect gatekeepers, not users, but we abide them specifically because they claim to make us safer. That center cannot hold.

To recap: cursory reviews by store publication pipelines are no substitute for platform security. Protection against malware depends on boundaries enforced by OSes and browsers, not distribution contracts or pre-publication scans, rendering the justifications for the concentrated power moot.1 App stores have used the patina of security to pull off the greatest coup of chokepoint capitalism in history, raising prices for every service and funnelling wealth upward in a spiral of omni-corruption.

From embedded distribution fees, to restricted competition, higher switching costs, and transaction taxes passed on to consumers, "native apps" have fleeced the American people for nearly twenty years. And now that unaccountable power has caved to authoritarians. It was only a matter of time before the tools of elite capitulation were weaponised against civil society. The shock of the stores enabling ICE and the abuse of women creates space for moral clarity. We can use it to connect those events to corrosive concentrations of power and wealth that derive from government-enabled software distribution monopolies.

The web once functioned as a counterweight to this sort of empire-building. But the web hasn't been able to provide that ballast since it was was hobbled by Apple and Google in the transition to mobile. Deliberate actions taken by both companies ensured it could never challenge their walled gardens. Store-sanctioned depravity is an inevitable consequence of lies used to justify these monopolies; untruths so embedded we struggle to even perceive them. The duopolists claim that:

These were deliberate, knowing lies, repeated ad-nauseam by oligarchs on the make. But instead of being laughed out of the room, the duopolists were hailed as heroes, and they learned the perverse lesson deeply. In the almost two decades since the iPhone's unveiling, Apple and Google have abused the credulity and moral flexibility of journalists, regulators, politicians, and the community of technical leaders to feather their beds, degrading and enclosing a commons that provided for so many; including earlier incarnations of their own businesses.

Desktop computing stayed relatively open because browser competition started a race to the top for quality, forcing OS vendors to innovate as capabilities inevitably became commoditised. Open platforms with access to APIs on equal terms dispersed power to the benefit of users, first and foremost. And when web-based providers of services when sideways, the web's inherent properties and fierce browser competition facilitated adversarial interoperability levelled the playing field.

The engine of this process was aggressive standardisation at the W3C (et. al). Based in open access to OS APIs, competing browsers commoditised proprietary OS APIs, increasing the scope of interoperable web capabilities. These safety-conscious increases in the power of web applications gave monopolistic ecosystems chase, forcing them to improve, lowering costs for everyone along the way.

The relative and continued openness of desktops wasn't pre-ordained. It has been a sustained because proprietary and open (over-the-top) software ecosystems coexisted in tension. Win32 vs. the web has been a live debate for 25 years, and with each increase in browser capabilities, the ability of dominant OS players to extract rents falls.

Mobile changed everything.

The web was first abandoned, then tilled under by its former friends. Apple and Google came to understand that they could divvy up mobile's spoils through enclosure, running identical playbooks for profit extraction through app stores. These models wedded commercially necessary device capabilities to fully proprietary APIs that were only accessible once software houses acquiesced to a per-OS monopoly on software distribution through gatekeeper app stores. To keep regulators at bay, an annual pantomime of competition was staged. Once price segmentation settled in, the reality of OS switching was foreclosed by anti-competitive tactics. Enclosure deepened with each new feature denied to the web by policy or internal politics.

Now, in late 2026, the alignment of industry and a would-be authoritarians face potential oversight.

Democrats, it seems, are engaged in a debate about whether to "focus on corruption" or "focus on addressing prices."2 These are not exclusive categories, and setting them up in opposition is counterproductive. Indeed, Apple and Google's App Store abuses are a microcosm for understanding how criminal corruption and cost-of-living issues are deeply linked.

The duopolists obscure the reality that stores don't deliver security because the legitimacy of their monopolies relies on confusion.

If we understood app stores as shitty search engines wedded to overpriced CDNs, operating under toothless "beware of dog" signs, the spell would break. Apple will threaten to take its ball and go home at the first whiff of regulation; don't believe it for a second. SDKs and APIs aren't borne of a spirit of generosity, they're economic imperatives.

Google and Apple's efforts at social networks, music streaming services, IoT ecosystems, enterprise productivity, and software in a dozen other categories have been flops. A device without leading contenders in each class reduces demand for their OS, hardware, and services. Against a large enough set of must-have apps, a degree of openness becomes inevitable. But the "how" matters.

Instead of expanding Safari to cover the gap between what Apple's own apps could achieve and what it offered to third parties with iOS 1.0, Apple ignored the web's unparalleled security umbrella and did the expedient, unsafe thing. With the app store and iOS 2.0, Cupertino handed over access to "native" software on terms it wrote and revised, primarily for its own commercial benefit, wearing a user-protection Halloween mask.

For nearly 20 years, this devil's bargain has undermined claims that any of this was an effort to protect users. Aware of the risks (to users), but interested in the upside (for itself), Apple created the App Store as a chokepoint to access device capabilities, tied to an implicit bargain: software developers would not directly embarrass or implicate Apple, and in return, Apple would loan its power over the most private computers carried by the wealthiest users for an exorbitant vig. Google, as ever, mimicked Cupertino's moves anywhere it thought it could get away with it.

The kicker? Cupertino and Mountain View would deploy "security" measures up and down the stack to prevent pesky users from enquiring deeply into — or heaven forbid, intervening to prevent — abuses embedded in the skeevy apps the app stores bought wholesale to sell out the back door of the shop at a 30% markup.

Steve Jobs unleashed surveillance capitalism while swearing to protect users. It was always a lie.

Apple's need for a software ecosystem for the touchscreen-iPod-with-a-modem ran headlong into its cultural predilection for totalitarian control, with the result being a first-sale hostile offering3 that has predictably curdled into the most successful distribution channel the world has ever seen for gambling and panopticons.

This is the background we need to understand the proposed investigations by Congress into the behaviour of Apple and Google's authoritarian-coddling app stores. The duopolists' early land grabs cemented a transfer of power away from users and third-party software vendors in order to run air cover for fundamental flaws in iOS and Android. The whitewash could only hide the technical rot for so long, and as the business of mobile grew, the Faustian bargain accelerated.

For at least 15 years the most accurate description of the app stores is not that they are software marketplaces, but landlords for unregulated casinos. The tracking, junk-yard dog lawyering, corrupt side-deals with fellow oligarchs, mafioso shake-downs and corporate drive-bys packaged as user protection are all side-effects of the dirty gambling business that Mountain View and Cupertino tax. Apple and Google have both stopped pretending to act against the surveillance economy for the same reason: the casinos they take a cut from have come to rely on it. If you have an iOS device, spend five minutes playing with Loupe to to get a sense for just how flimsy the privacy narrative is.

Total control lends a veneer of respectability to app stores as commercial destinations stocked with things people need, rather than cesspools of vice designed to abuse a tiny population of problem gamblers to extract the bulk of store revenue. The truth isn't a secret, but it's not one the duopolists are proud of. The eminence front hinges on the perception of stores as powers keeping us safe. Would that it were.

Government pressure to enable ICE’s crime spree provides a compelling investigative hook, but enquiries must not end there.

Unchallenged app stores cannot be justified on any objective grounds. Their concentration of power has not kept us safer, but has led to wealth extraction across the entire spectrum of tech oligarchs. That they facilitated unconscionable censorship and reciprocal corruption of US trade and foreign policy is almost a footnote to the damage they have done. Tim Apple's Golden Paperweight should remind us all that Apple wasn't just abasing a legacy, but demonstrating the threat to civil society that concentrated private power always poses.

Corruption is a ratchet; successive administrations left the unjust and anticompetitive behaviours of app stores in place, which created the potential for bi-directional capture. An industry with as much power as the app stores were allowed to centralise (in order to tax) acted as extra-governmental states all their own, degrading true accountability and eroding the expression of rights fundamental to democratic self-rule by a free people.

OS-specific monopolies on software distribution have eroded civil society, and we should welcome Congress questioning the fiefdoms Apple and Google have erected, however belatedly. But investigations must not stop at ICE abuses and executive capitulations. The duopolists lied when they claimed the app stores protected us, and that lie facilitates big-money degradation of our politics.

Those lies facilitated both big-money corruption of politics and enabled the authoritarian tendencies of a would-be king and his brutal, racist viziers. Supine regulators swallowed weak arguments, and the public power they privatised is now a threat to our friends, relatives, and neighbours.

But better is possible, and it starts with nerdy, low-level change to mandate interoperability. The web had demonstrated how powerful this can be on our desks for nearly 30 years, and there are regulatory templates to crib from. The EU's Digital Markets Act is now law (if not yet in a toothsome way), demonstrating that alternate theories of market power can be constructed to meet new challenges.

Apple will claim that these laws create danger, or that they will not be able to produce software and hardware under slightly less favourable terms. These are also lies.

In the EU, where Apple has been compelled to offer a minimal level of interoperability, we see these excuses crumbling in real time as regulators call Cupertino's bluff. Instead of walking away from the market (after many threats to do so), Apple has resorted to corrupt bullying tactics through a bought-off White House. These are definitionally corrupt acts of state capture; abuse of public power towards private ends. And they are not separable from store-facilitated abuse of Americans by Stephen Miller's secret police. The digital casino protection racket they run at the public's expense relies on state not to enforce competition laws already on the books. Miller is getting what he wants from them because they are getting what their profit motive want from him. They are the same story.

Deflating the power of app stores through interoperability — minimally, via true browser competition, as it is the quickest and least risky intervention — is necessary not only to prevent future censorship of civil society and enablement of secret police, but also to reduce the corrosive power of Big Tech to subvert the state and shield the casinos themselves from accountability.

The shortest path to that better world is the interoperability the web has demonstrated on our desks and in our laps for the past 30 years. A Congress that digs deep will find this too, and instead of waiting for a regulatory macguffin, it can act now to strike at the immoral, anti-competitive structure that liberated tech executives to become their worst selves.

FOOTNOTES

  1. The mobile OSes that Apple and Google have produced are riddled with all the insecurity, surveillance, and user predation a computer scientist transported from 2006 would have expected had you described to them a pocket Unix computer attached to a high-end lab's worth of sensors, an always-on data connection, third-party software written in C/C++, and a weak SELinux sandbox.

    App stores don't appear in this analysis because they can't possibly add to it. Their only role is that of reputational speed bump; barriers to entry that keep force honest firms to comply with the extractive terms of Apple and Google's shake-down. They could never act as a bulwark against threats because security comes primarily from runtimes, not stores. ⇐

  2. Yes, that sound you hear is the clickity-clack of a forehead repeatedly smacking onto a high-quality mechanical keyboard.

    It is obviously the case that corruption is driving up prices for Americans, and that if you want to tackle prices, you have to investigate and punish corruption. From the looting of departmental budgets that amounts to theft of tax dollars, to the economy-wide hits to productivity of ICE's terrorism, to the immoral and inflationary tariffs a deranged old man has doled out in ways that are shockingly self-enriching, to the insider trading, to the pocketbook consequences of a disastrous war of choice that seems to only be enriching the President's family and friends, it is impossible to imagine going after the cost of living without tackling Trump's Orbanesque corruption.

    To hear a Democrat of any persuasion treat these as disconnected concepts is mind-bending, and suggests an almost wilful disinterest in how both people and economies function. ⇐

  3. Apple was not alone in jonesing for control of the smartphone.

    Up until the iPhone, telcos had been relatively successful in running high-margin frauds on the public, overcharging for data and texts on 2G networks. From an "internet communicator" perspective, something like the iPhone had been possible for several years, but no carrier would agree to data pricing that would make it practical, nor would they relinquish sole control over software and updates.

    Apple merely learned from the best.

    Telcos had used ghost stories about security and user abuse to protect profits and hobble competitors for years by the time Cupertino made the weakest in their pack (AT&T) an offer it couldn't refuse. But instead of creating liberation for users, Apple ganked their power and narrative wholesale, providing a continuity argument to deferential regulators who had become accustomed to a diet of expensively catered bullshit sandwiches.

    That it was Apple calling in the marketing and governmental affairs firepower hardly changed the barrage of nonsense landing on regulator's heads. Cupertino proved just as deft at deploying self-serving cybersecurity ghost stories to defend the extraction of monopoly rents. The neoliberal consensus had swallowed Bork wholesale, and a change of cast mid-production wasn't a problem. It was inevitable a market broken so deeply would reassert a divine right of swappable kings.

    It didn't matter how much the Sherman Antitrust Act's plain language militated against studious indifference to the rights and welfare of consumers. The cops weren't just off the beat, they were hoping to score jobs as capos in the robber's operation when their resume-building stints in government drew to a close.

    What made it work for a generation was the realisation that even if fascism and tin-pot totalitarianism depended on weakened oversight, the corruption would never be traced back to this crop of Chicago-school acolytes. They would go unnoticed but well-remunerated. The cult of wealth that swept the nation didn't find a naturally immune herd among regulators. As nameless, faceless lawyers working both sides of the equation, they could subtly facilitate an upward redistribution of power away from residents, consumers, and citizens to the firms that loathed and resented nothing more than actual competition.

    And nobody with skin in the game would object. ⇐

From PrismJS to Better PrismJS to MicroLighter in Three Painless* Steps

*: OK, mostly painless

An excellent feature of Eleventy1 is the official PrismJS-based syntax highlighting plugin, which adds painless build-time syntax highlighting. It keeps 11ty sites from worrying about client-side bloat from JS-based highlighters and the common failure mode of over-including language definitions.2

But nothing's perfect.

The official plugin integrates naturally, and I took to using it via the usual triple-backtick markdown syntax:

# The Usual Markdown Nonsense { #the-usual-nonsense }

And now for something entirely different:

```js
function yourCodeHere() { /* ... */ }
```

Etc., etc.

This works a treat, until you want a bit more control. At that point, what seems magical starts to feel restrictive.

A recent goal was to add line numbers.

After reading some of the plugin code that invokes PrismJS, I closed my laptop in frustration, unable to cajole eleventy-plugin-syntaxhighlight into outputting line numbers. Walking away from the keyboard paid off a few days later when I recalled the paired shortcode code path generated stable per-line delimiters. This allowed reuse of the plugin's primary logic, wrapped in a bit of string munging to add the necessary styling hooks:

// From this site's Eleventy config file

// Because my esm conversion is still partial:
const { default: syntaxHighlight } = 
        await import("@11ty/eleventy-plugin-syntaxhighlight");
// ...
module.exports = async function(config) {
  // ...
  let syntaxHighlightOptions = {
    // For faster CSS selectors
    preAttributes: { highlighted: "highlighted" },
    codeAttributes: { highlighted: "highlighted" },
  };

  config.addPlugin(syntaxHighlight, 
                   syntaxHighlightOptions);

  config.addPairedShortcode("code",
                            function(content, 
                                    language="", 
                                    highlightLines="") {
    // The design of cssMin and addToBundle are outside 
    // the scope of this post.
    //
    // Suffice to say, we're inlining the contents 
    // of the file path passed as an argument to it.
    //
    addToBundle(
      this, 
      "css", 
      `<style>${ 
        cssMin("assets/css/prism-okaidia.css") 
      }</style>`);

    let xformed = syntaxHighlight.pairedShortcode.call(
        this, 
        content, 
        language, 
        highlightLines, 
        syntaxHighlightOptions
    );

    // Wrap each line in `<span class="line">...</span>`
    let _preamble = "<pre><code>";
    let _end = "</code></pre>";
    let _content = "";

    // Preamble and postfix might be different than 
    // defaults above, so preserve them.
    let preambleEnd = 
      xformed.indexOf(">", 
                      xformed.indexOf("<code")) + 1;
    _preamble = xformed.substring(0, preambleEnd);

    let contentEnd = 
      xformed.lastIndexOf("</code></pre>");
    _content = 
      xformed.substring(preambleEnd, contentEnd);

    let parts = _content.split("<br>");

    // Wrap each line in a stylable <span>
    _content = parts.map((line) => { 
      return `<span class="line">${line}</span>`;
    }).join(`<br>`);
    return _preamble + _content + _end;
  });

  // ...

};

Add a bit of CSS that does the counting for us, ét voila!, line numbers:

pre[highlighted] {
  display: block;
  overflow-x: auto;
  isolation: isolate;
  max-width: 100%;
  contain: content;

  & > code {
    width: 100%;
    text-wrap-mode: wrap;
    counter-reset: step;
    counter-increment: step 0;

    & .line::before {
      content: counter(step);
      counter-increment: step;
      width: 1.5rem;
      padding-right: 0.5rem;
      margin-right: 0.5rem;
      display: inline-block;
      text-align: right;
      color: var(--color-mid);
      border-right: 1px solid currentColor;
    }
  }
}

If the JavaScript approach looks familiar, that might be because it's the technique outlined last year when I pressed the 11ty Bundler into service as a poor man's route-based code splitter, allowing each shortcode that requires JavaScript to lazily include it only for pages that feature those components:

// An `.eleventy.js` configuration file

module.exports = async function(config) {

  // Register some bundles that templates output.
  config.addBundle("js");
  // etc., ...

  // Needed to avoid Markdown double-processing.
  let removeNewlines = function(str) {
    return str.replace(/[\n\r]/g, "");
  }

  // Invoke shortcodes that `config.addBundle()` 
  // generates from within *other* shortcodes, 
  // allowing us to use the Bundler for duplicate code 
  // removal and hoisting dependencies to the optimal 
  // place in output templates.
  function addToBundle(scope, bundle, code) {
    config.getPairedShortcode(bundle).
            call(scope, removeNewlines(code));
  }

  config.addShortcode("someblock",
                      function(/* ... */) {
    addToBundle(this, "js", `
      <script type="module" async
          src="/assets/js/someblock-deps.js">
      </script>
    `);
    // ...
  });
  // ...
};

The 11ty syntax highlighting hack only works because the output always has a <br> delimiter when invoked via HighlightPairedShortcode. While brittle, it does work. Invoking it via Nunjucks paired shortcode syntax is longer than triple-backticks, but not painful:

# The Usual Markdown Nonsense { #the-usual-nonsense }

And now for something entirely different:

{% code "js" %}
function yourCodeHere() { /* ... */ }
{% endcode %}

Etc.

This blog hasn't been code-heavy of late, but this has been working well enough for a fair few months. If anyone is interested to see this wrapped up in an 11ty plugin, let me know.

Line numbers scratched an itch, but the situation was uneasy; PrismJS emits sub-optimal markup and features like highlighting never worked. I've remained curious about other solutions.

Enter my colleague Dave Rupert's extremely cool MicroLighter project. If you'd like to learn more about the ultra-modern web decisions behind it, he's got a great blog post that teases out the whys and wherefores.

As I've been thinking about syntax highlighting alternatives for use here and an upcoming, 11ty-based multi-document HTML slide system (provisional name: "Faro"), reworking {% code "..." %} to use something else behind the scenes has seemed increasingly beneficial. To that end, here's the general approach I've ended up with to integrate MicroLighter:

  1. Ensure that all the files get copied to the output directory.

    It's a bit more complicated than this in practice, as I avoid copies in favour of symlinks for speed in dev mode — this blog rebuilds from scratch in less than six seconds and sub-second incrementally on a Chromebook — but the effect is the same:

config.addPassthroughCopy({
  overwrite: false,
  "node_modules/microlighter/dist": "assets/microlighter",
});
  1. Use the approach from last year's post to include scripts and inline the CSS only when needed.

    This has three components:

    • Adding the core web component JS to the bundle.
    • Inlining theme CSS (also via bundler).
    • Ensuring <link rel="modulepreload" ...> tags are generated for each used language.

    There's a bit of finagling here to replicate what the Web Component's runtime language aliases (js in addition to javascript, e.g.). I don't have a solution for language dependencies, but top-level grammar preloading avoids network stalls in my limited use.

  2. Handle content escaping in shortcodes.

    By default, 11ty and Nunjucks (my templating engine of choice) escape content, replacing < with &lt;, e.g. which is what we want for code that will live inside a <pre><code>...</code></pre> block. It's less desirable in cases where the surrounding markup is intended to land in the final page as HTML, as is the case with web components.

    Sidestepping Nunjucks escaping relies on old env.filters.safe() and env.filters.escape() hacks, and skipping Markdown escaping comes courtesy of markdown-it-ignore.

    Together, these allow passthrough of web component markup amidst other processing.

Step #2 is the linchpin. I would not have felt comfortable adopting a client-side solution without the ability to load dependencies in a way that plays well with other content and only includes code when highlighting is required and brings in language definitions as-needed.

The dependency chain for this new shortcode is a bit unwieldy and site-specific, so I hesitate to offer as a plugin. If someone with ambition is interested, I'd be happy to share my hacky code and talk through how it might be made more general.

FOOTNOTES

  1. I understand the brand-consistency arguments for 11ty's Build Awesome rebranding. I'm a huge fan of Zach, the lovely and supportive community he has built, and the OSS funding model that the Fonticons, Inc. folks have put into practice with Font Awesome, Web Awesome, and now Build Awesome.

    I get it, deeply. When the Build Awesome kickstarter was announced, I was early to throw cash at the effort, and I'm pleased as punch to see the community's outpouring of support for the project.

    ...all of which is preamble to say that I won't be uttering the words "Build Awesome" unironically. It's always eleventy to me, and I hope everyone will forgive (or at least accommodate) my style guide transgressions. ⇐

  2. You might be thinking "surely nobody includes every PrismJS language in their bundles in 2026?", and I'd reply that you, sir or madam, are not looking closely at the bundles of the pages you experience feeling "a little bit slow".

    Not only is correct dependency inclusion like hen's teeth in "modern" frontends, I've personally diagnosed close to a dozen cases of PrismJS language definition over-inclusion over the past few years. Perhaps syntax highlighting blunders will fade away in the future, but that point was not last year, last month, or yesterday. ⇐

Previously