<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://jumplink.eu/en/blog/feed.xml</id>
  <title>Pascal Garber – Logbook</title>
  <updated>2026-11-06T00:00:00Z</updated>
  <link rel="self" type="application/atom+xml" href="https://jumplink.eu/en/blog/feed.xml"/>
  <link rel="alternate" type="text/html" href="https://jumplink.eu/en/blog/"/>
  <author>
    <name>Pascal Garber</name>
    <uri>https://jumplink.eu/</uri>
  </author>
  <entry>
    <id>https://jumplink.eu/en/blog/learn6502-everywhere/</id>
    <title>Learn 6502 now runs on Linux, macOS, Windows and Android</title>
    <link rel="alternate" href="https://jumplink.eu/en/blog/learn6502-everywhere/"/>
    <published>2026-11-06T00:00:00Z</published>
    <updated>2026-11-06T00:00:00Z</updated>
    <summary>Learn 6502 Assembly now runs on Linux, macOS, Windows and Android, all from one TypeScript codebase. How gjsify makes that possible, and where AI fits in.</summary>
    <content type="html">&lt;p&gt;I&amp;#39;m happy to say that since version 0.9.0, &lt;a href=&quot;https://jumplink.eu/Learn6502/en/&quot;&gt;Learn 6502 Assembly&lt;/a&gt; runs on Linux, macOS, Windows and Android 🐧🍏🪟🤖. Learn 6502 already ran on a phone before, by the way: on my OnePlus 6T with &lt;a href=&quot;https://postmarketos.org/&quot;&gt;postmarketOS&lt;/a&gt;, as a regular GNOME app. What&amp;#39;s new is that it now runs on Android too.&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://jumplink.eu/blog/2026/learn6502-everywhere-phones.webp&quot; alt=&quot;Learn 6502 on two phones in autumn leaves: an OnePlus 6T with postmarketOS and GNOME Mobile on the left, a Samsung Galaxy S9 with /e/OS on the right&quot; loading=&quot;lazy&quot; title=&quot;Learn 6502 on two phones in autumn leaves: an OnePlus 6T with postmarketOS and GNOME Mobile on the left, a Samsung Galaxy S9 with /e/OS on the right&quot;&gt;&lt;figcaption&gt;Learn 6502 on two phones in autumn leaves: an OnePlus 6T with postmarketOS and GNOME Mobile on the left, a Samsung Galaxy S9 with /e/OS on the right&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;All downloads are on the &lt;a href=&quot;https://jumplink.eu/Learn6502/en/&quot;&gt;app page&lt;/a&gt;. On Linux, &lt;a href=&quot;https://flathub.org/apps/eu.jumplink.Learn6502&quot;&gt;Flathub&lt;/a&gt; is still the recommended way. What the app does is in the &lt;a href=&quot;https://jumplink.eu/en/blog/learn6502/&quot;&gt;first post&lt;/a&gt;. This one is about how a GNOME app gets onto four systems without me maintaining four apps.&lt;/p&gt;
&lt;h3&gt;One codebase, four systems&lt;/h3&gt;
&lt;p&gt;Learn 6502 is written in TypeScript, the interface in Blueprint for GTK 4 and libadwaita. That code runs everywhere, just on a different runtime each time:&lt;/p&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;System&lt;/th&gt;&lt;th&gt;Runtime&lt;/th&gt;&lt;th&gt;GTK and Adwaita come from&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Linux&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://gjs.guide/&quot;&gt;GJS&lt;/a&gt;&lt;/td&gt;&lt;td&gt;the GNOME runtime in the Flatpak&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;macOS, Windows&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://nodejs.org/&quot;&gt;Node.js&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://gjsify.org/gjsify/projects/node-gi/&quot;&gt;&lt;code&gt;@gjsify/node-gi&lt;/code&gt;&lt;/a&gt; and a bundled GTK runtime&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Android&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://nativescript.org/&quot;&gt;NativeScript&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;https://gjsify.org/gjsify/adwaita/&quot;&gt;&lt;code&gt;@gjsify/adwaita-nativescript&lt;/code&gt;&lt;/a&gt;, real Android views styled like Adwaita&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;On Linux, Learn 6502 is a regular GJS app. For macOS and Windows I rebuilt the GJS runtime environment for Node.js. &lt;code&gt;@gjsify/node-gi&lt;/code&gt; loads &lt;code&gt;gi://&lt;/code&gt; namespaces like GLib, Gtk and Adw in Node.js and behaves like GJS while doing it. It started from &lt;a href=&quot;https://github.com/romgrk/node-gtk&quot;&gt;node-gtk&lt;/a&gt; and is now largely rewritten. So that I can rely on &amp;quot;behaves like GJS&amp;quot;, the same tests run on both runtimes.&lt;/p&gt;
&lt;p&gt;Android has no GTK. There the app runs in NativeScript, and &lt;code&gt;@gjsify/adwaita-nativescript&lt;/code&gt; builds native Android views from the same Blueprint files, styled like libadwaita. No WebView involved. GLib and GObject come through node-gi here too.&lt;/p&gt;
&lt;p&gt;That said, &amp;quot;no GTK on Android&amp;quot; isn&amp;#39;t quite true anymore. Florian &amp;quot;sp1rit&amp;quot; is working on an Android backend for GTK, and &lt;a href=&quot;https://geopjr.dev/&quot;&gt;GeopJr&lt;/a&gt; publishes unofficial test builds of GTK and Adwaita apps like the Adwaita Demo and Tuba on &lt;a href=&quot;https://gtk4android.geopjr.dev/&quot;&gt;GTK 4 Android&lt;/a&gt;. We&amp;#39;re experimenting with that too: &lt;code&gt;@gjsify/gi-runtime-android-gtk&lt;/code&gt; brings GTK 4 and libadwaita into a NativeScript app. Once that works well enough, we can drop our rebuilt Adwaita widgets and use real GTK on Android.&lt;/p&gt;
&lt;p&gt;The Android version is still experimental. The basics work: you can read the tutorial, write code and run it on the console. Expect a rough edge here and there, though.&lt;/p&gt;
&lt;h3&gt;And the other way round&lt;/h3&gt;
&lt;p&gt;The bridge goes both ways. &lt;a href=&quot;https://gjsify.org/gjsify/&quot;&gt;gjsify&lt;/a&gt; brings Node.js and Web APIs to GJS and implements them on GNOME&amp;#39;s own libraries: &lt;code&gt;node:fs&lt;/code&gt; on Gio, &lt;code&gt;fetch&lt;/code&gt; on Soup, &lt;a href=&quot;https://nodejs.org/api/sqlite.html&quot;&gt;&lt;code&gt;node:sqlite&lt;/code&gt;&lt;/a&gt; on libsqlite3.&lt;/p&gt;
&lt;p&gt;New is &lt;a href=&quot;https://gjsify.org/gjsify/projects/napi/&quot;&gt;&lt;code&gt;@gjsify/napi&lt;/code&gt;&lt;/a&gt;, an implementation of &lt;a href=&quot;https://nodejs.org/api/n-api.html&quot;&gt;Node-API&lt;/a&gt; for GJS. With it, GJS loads native Node.js addons, the &lt;code&gt;.node&lt;/code&gt; files compiled for Node.js. &lt;a href=&quot;https://github.com/WiseLibs/better-sqlite3&quot;&gt;better-sqlite3&lt;/a&gt; runs unmodified in GJS this way and returns byte-identical results to Node.js.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m impressed by what AI makes possible now. Implementing Node-API for GJS or rebuilding the Adwaita widgets for Android would have been out of reach for me alone a few years ago.&lt;/p&gt;
&lt;p&gt;So the code is compatible in both directions. I pick the runtime when I build, not when I write the code.&lt;/p&gt;
&lt;p&gt;gjsify itself runs on GJS as well. Installing, building, testing, the Flatpak and the macOS and Windows packages all work on a machine without Node.js. Node.js is a runtime you can choose, not a requirement. More in &lt;a href=&quot;https://jumplink.eu/en/blog/why-gjsify/&quot;&gt;Why gjsify&lt;/a&gt; and &lt;a href=&quot;https://jumplink.eu/en/blog/macos-signing/&quot;&gt;Shipping GNOME apps for Linux, macOS and Windows with gjsify&lt;/a&gt;.&lt;/p&gt;
&lt;h3&gt;One big experiment&lt;/h3&gt;
&lt;p&gt;gjsify is still in heavy development and really one big experiment. The idea is that any JavaScript, whether written for Node.js or the browser, should run in a native Adwaita app. A good part of that already works. The Excalibur.js game engine, three.js, socket.io and WebTorrent run on GJS through gjsify, checked with their own test suites. What is still missing is in the &lt;a href=&quot;https://github.com/gjsify/gjsify/tree/main/status&quot;&gt;project status&lt;/a&gt;.&lt;/p&gt;
&lt;h3&gt;It started without AI&lt;/h3&gt;
&lt;p&gt;It all began with &lt;a href=&quot;https://github.com/gjsify/ts-for-gir&quot;&gt;ts-for-gir&lt;/a&gt;. I wanted to write GNOME apps in TypeScript and needed types for GTK and the other GObject libraries. There were no AI tools back then. It took me about three years of spare time until the parser and generator produced really good types. Today you write a generator like that with AI in a short time, and it even works well. There are new projects like &lt;a href=&quot;https://gtkx.dev/&quot;&gt;GTKX&lt;/a&gt; that also generate their bindings from GObject Introspection.&lt;/p&gt;
&lt;p&gt;I wrote Learn 6502 itself mostly by hand. A better AI autocomplete helped, and even that was worth a lot.&lt;/p&gt;
&lt;p&gt;gjsify started without AI too. I wrote some Node.js modules like &lt;code&gt;node:fs&lt;/code&gt; by hand and tried a lot of things. But the project was too big for one person. AI changed that, and today gjsify is built almost entirely through agentic coding.&lt;/p&gt;
&lt;p&gt;I set the rules. Linux standards like the &lt;a href=&quot;https://flatpak.github.io/xdg-desktop-portal/&quot;&gt;XDG desktop portals&lt;/a&gt;, GJS and Web standards always come first, and where an open standard exists, we use it. When an app is missing something, it gets built into gjsify with a test instead of being worked around in the app. That gives me very good results right now. Without it, Learn 6502 would not have made it to Android and Windows.&lt;/p&gt;
&lt;h3&gt;Why I use AI anyway&lt;/h3&gt;
&lt;p&gt;I know AI is frowned upon in the open source community, and for good reasons. The training data was taken without consent, the energy use is high, and the effects on society will be large. I see all of that very critically. But we won&amp;#39;t stop this by rejecting or ignoring AI.&lt;/p&gt;
&lt;p&gt;What we can do is use AI as a tool for more and better free software. Software that makes us less dependent on big corporations. And we should support open models together, so the best AI doesn&amp;#39;t end up controlled by a few people or companies.&lt;/p&gt;
&lt;p&gt;That is also why I started &lt;a href=&quot;https://jumplink.eu/steuererklaerung/&quot;&gt;Steuererklärung&lt;/a&gt;, an app that lets anyone in Germany do their tax return for free. People with little money are often the ones who don&amp;#39;t file a tax return, and that leaves them with even less. My goal is to make the app simple enough that this stops being a barrier.&lt;/p&gt;
&lt;h3&gt;Try it&lt;/h3&gt;
&lt;ul&gt;&lt;li&gt;Learn 6502: &lt;a href=&quot;https://jumplink.eu/Learn6502/en/&quot;&gt;downloads&lt;/a&gt;, &lt;a href=&quot;https://github.com/JumpLink/Learn6502&quot;&gt;source code&lt;/a&gt;, translate on &lt;a href=&quot;https://hosted.weblate.org/engage/eu-jumplink-learn6502/&quot;&gt;Weblate&lt;/a&gt;&lt;/li&gt;&lt;li&gt;gjsify: &lt;a href=&quot;https://gjsify.org/gjsify/&quot;&gt;documentation&lt;/a&gt;, &lt;a href=&quot;https://github.com/gjsify/gjsify&quot;&gt;GitHub&lt;/a&gt;, and to get started, &lt;a href=&quot;https://jumplink.eu/en/blog/gjsify-first-app/&quot;&gt;A GNOME app in TypeScript, in five minutes&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;I hope gjsify is a useful tool for you too. Feedback and bug reports are welcome on &lt;a href=&quot;https://github.com/gjsify/gjsify/issues&quot;&gt;GitHub&lt;/a&gt;.&lt;/p&gt;</content>
    <category term="gjsify"/>
    <category term="GNOME"/>
    <category term="Android"/>
  </entry>
  <entry>
    <id>https://jumplink.eu/en/blog/macos-signing/</id>
    <title>Shipping GNOME apps for Linux, macOS and Windows with gjsify</title>
    <link rel="alternate" href="https://jumplink.eu/en/blog/macos-signing/"/>
    <published>2026-11-01T00:00:00Z</published>
    <updated>2026-11-01T00:00:00Z</updated>
    <summary>gjsify ship builds packages for Linux, macOS and Windows from your app. For the Mac it now also signs and notarises, with one command and no packaging files in your repo.</summary>
    <content type="html">&lt;p&gt;Writing an app is one half of the job, getting it to run on other people&amp;#39;s machines is the other. With &lt;code&gt;gjsify ship&lt;/code&gt; you build installable packages from your project, with no packaging files in the repo and no hand-driven &lt;code&gt;dpkg-deb&lt;/code&gt;, &lt;code&gt;rpmbuild&lt;/code&gt; or &lt;code&gt;hdiutil&lt;/code&gt;. What is new: for macOS, &lt;code&gt;ship&lt;/code&gt; now also &lt;strong&gt;signs and has Apple notarise&lt;/strong&gt; the result. I used it for three apps: &lt;a href=&quot;https://jumplink.eu/Learn6502/&quot;&gt;Learn 6502 Assembly&lt;/a&gt;, &lt;a href=&quot;https://jumplink.eu/steuererklaerung/&quot;&gt;Steuererklärung&lt;/a&gt; and &lt;a href=&quot;https://jumplink.eu/beifahrer/&quot;&gt;Beifahrer&lt;/a&gt;. All three now ship as a dmg for Apple Silicon and for Intel, and macOS opens them without a warning.&lt;/p&gt;
&lt;h3&gt;One command per operating system&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;ship&lt;/code&gt; runs your project&amp;#39;s &lt;code&gt;build&lt;/code&gt; script, assembles one payload and wraps it per format. For Linux it works out which libraries a distribution needs by reading your bundle. The settings live in a &lt;code&gt;gjsify.ship&lt;/code&gt; block in your &lt;code&gt;package.json&lt;/code&gt;.&lt;/p&gt;
&lt;pre class=&quot;shiki shiki-themes github-light github-dark&quot; style=&quot;--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e&quot; tabindex=&quot;0&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;gjsify&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; ship&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; linux&lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt; --target&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; deb,rpm,appimage&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;gjsify&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; ship&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; darwin&lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt; --arch&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; arm64&lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt; --target&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; macos-app-zip,macos-app-dmg&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Linux gets &lt;code&gt;.deb&lt;/code&gt;, &lt;code&gt;.rpm&lt;/code&gt; and AppImage. For the Mac you get an &lt;code&gt;.app&lt;/code&gt; as a &lt;code&gt;.zip&lt;/code&gt; and as a &lt;code&gt;.dmg&lt;/code&gt;, one architecture per run. The apps carry their own runtime, so whoever downloads one needs neither GJS nor GTK installed. Windows gets an MSI installer, which I do not sign yet; more on that below.&lt;/p&gt;
&lt;h3&gt;Signing and notarising&lt;/h3&gt;
&lt;p&gt;Without a signature macOS will not open a downloaded app, because Gatekeeper rejects anything carrying the browser&amp;#39;s quarantine flag. You need three things:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;a membership in the Apple Developer Program,&lt;/li&gt;&lt;li&gt;a certificate of the type &lt;em&gt;Developer ID Application&lt;/em&gt; in your keychain,&lt;/li&gt;&lt;li&gt;a credential for &lt;code&gt;notarytool&lt;/code&gt;, for example an App Store Connect API key, stored as a profile with &lt;code&gt;xcrun notarytool store-credentials&lt;/code&gt;.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Then two flags come on top:&lt;/p&gt;
&lt;pre class=&quot;shiki shiki-themes github-light github-dark&quot; style=&quot;--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e&quot; tabindex=&quot;0&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;gjsify&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; ship&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; darwin&lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt; --arch&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; arm64&lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt; --target&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; macos-app-dmg&lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt;  --sign&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; &quot;Developer ID Application: Your Name (TEAMID)&quot;&lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt;  --notarize&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; my-notary-profile&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;--sign&lt;/code&gt; signs every executable image in the app, and the dmg image as well. &lt;code&gt;--notarize&lt;/code&gt; sends the result to Apple, waits for the verdict and staples the ticket to the file. Without an identity &lt;code&gt;ship&lt;/code&gt; packs unsigned and says so loudly. There is no silent &amp;quot;signed&amp;quot;.&lt;/p&gt;
&lt;p&gt;In CI this runs on a Mac runner. Certificate and API key sit in the repository as secrets, and the job imports them into a throwaway keychain. Each of my apps carries five secrets, and CI builds the releases. Afterwards the job checks every architecture with &lt;code&gt;codesign --verify&lt;/code&gt;, &lt;code&gt;spctl&lt;/code&gt; with the quarantine flag set, and &lt;code&gt;stapler validate&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;What I learned along the way&lt;/h3&gt;
&lt;p&gt;I found the stumbling block with Steuererklärung, and it was in the tooling, not in the app: the umlaut in the name invalidated the signature. &lt;code&gt;codesign&lt;/code&gt; derives the identifier of the bundled interpreter from its file name, and the dmg stores names in a different decomposed form than the one the seal was computed with. The &lt;code&gt;.zip&lt;/code&gt; was fine, the same app inside the mounted dmg was not. Notarisation and &lt;code&gt;stapler validate&lt;/code&gt; still pass, and only Gatekeeper rejects the app at launch. &lt;code&gt;ship&lt;/code&gt; now handles both (&lt;a href=&quot;https://github.com/gjsify/gjsify/pull/2466&quot;&gt;#2466&lt;/a&gt;, &lt;a href=&quot;https://github.com/gjsify/gjsify/pull/2480&quot;&gt;#2480&lt;/a&gt;, included since gjsify 0.64.14), and a test mounts a dmg with an umlaut in the file names and verifies the signature inside it. You need to do nothing about it, not even for a name like &amp;quot;Steuererklärung&amp;quot;.&lt;/p&gt;
&lt;p&gt;The lesson holds for every release: check the finished dmg on a real Mac. I use the MacBook for arm64 and a macOS VM for Intel. Both get the quarantine flag as after a browser download, then &lt;code&gt;spctl&lt;/code&gt; and &lt;code&gt;codesign --verify --deep --strict&lt;/code&gt; on the app inside the mounted image. A green CI alone would not have shown the bug.&lt;/p&gt;
&lt;h3&gt;And Windows?&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;ship&lt;/code&gt; already builds the MSI, and CI installs and starts it as a test. It is unsigned, though, and Windows warns about it. The certificate from Microsoft is still pending, and the CI wiring follows.&lt;/p&gt;
&lt;p&gt;More on the formats is in the guide &lt;a href=&quot;https://gjsify.org/gjsify/ship/&quot;&gt;Ship your app&lt;/a&gt;.&lt;/p&gt;</content>
    <category term="gjsify"/>
    <category term="macOS"/>
  </entry>
  <entry>
    <id>https://jumplink.eu/en/blog/gjsify-first-app/</id>
    <title>A GNOME app in TypeScript, in five minutes</title>
    <link rel="alternate" href="https://jumplink.eu/en/blog/gjsify-first-app/"/>
    <published>2026-10-31T00:00:00Z</published>
    <updated>2026-10-31T00:00:00Z</updated>
    <summary>With gjsify you write a GTK app in TypeScript, Blueprint and CSS, and use fetch and node:fs like on the web. A walk-through from an empty folder.</summary>
    <content type="html">&lt;p&gt;&lt;a href=&quot;https://gjsify.org/&quot;&gt;gjsify&lt;/a&gt; brings the web and Node.js APIs to GJS. Here is what that looks like in practice: a small GTK 4 app in TypeScript, Blueprint and CSS that loads data with &lt;code&gt;fetch&lt;/code&gt; and stores it with &lt;code&gt;node:fs&lt;/code&gt;. Install the &lt;a href=&quot;https://gjsify.org/gjsify/getting-started/&quot;&gt;CLI&lt;/a&gt; first, for example with &lt;code&gt;npm install -g @gjsify/cli&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;Create and run&lt;/h3&gt;
&lt;pre class=&quot;shiki shiki-themes github-light github-dark&quot; style=&quot;--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e&quot; tabindex=&quot;0&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;gjsify&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; create&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; hello-gjsify&lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt; --template&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; gtk-minimal&lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt; --install&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt;cd&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; hello-gjsify&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;gjsify&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; run&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; build&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;gjsify&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; run&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; start&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You get a window, a Blueprint file for the interface (&lt;code&gt;src/main-window.blp&lt;/code&gt;) and a TypeScript class that binds to it. Leave &lt;code&gt;gjsify dev&lt;/code&gt; running in a second terminal: it rebuilds and relaunches the app whenever you save. Change the greeting in the &lt;code&gt;.blp&lt;/code&gt; and watch it update.&lt;/p&gt;
&lt;h3&gt;Use web standards and Node.js&lt;/h3&gt;
&lt;p&gt;Replace &lt;code&gt;src/main-window.ts&lt;/code&gt; with the following. It fetches data from the web, stores it through Node&amp;#39;s file system API, reads it back and shows it in the &lt;code&gt;hint&lt;/code&gt; label:&lt;/p&gt;
&lt;pre class=&quot;shiki shiki-themes github-light github-dark&quot; style=&quot;--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e&quot; tabindex=&quot;0&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt; GObject &lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; &#39;gi://GObject?version=2.0&#39;&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt; Gtk &lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; &#39;gi://Gtk?version=4.0&#39;&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt; { mkdtemp, readFile, writeFile } &lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; &#39;node:fs/promises&#39;&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt; { tmpdir } &lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; &#39;node:os&#39;&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt; { join } &lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; &#39;node:path&#39;&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt; Template &lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; &#39;./main-window.blp&#39;&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;export&lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt; class&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt; MainWindow&lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt; extends&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt; Gtk&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;ApplicationWindow&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;    declare&lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt; private&lt;/span&gt;&lt;span style=&quot;--shiki-light:#E36209;--shiki-dark:#FFAB70&quot;&gt; _hint&lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt; Gtk&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;Label&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;    static&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;        GObject.&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;registerClass&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;            {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;                GTypeName: &lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt;&#39;MainWindow&#39;&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;                Template,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;                InternalChildren: [&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt;&#39;hint&#39;&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;],&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;            },&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt;            this&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;        );&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;    constructor&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--shiki-light:#E36209;--shiki-dark:#FFAB70&quot;&gt;application&lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt; Gtk&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;Application&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt;        super&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;({ application });&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;        void&lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt; this&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;load&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;();&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;    async&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt; load&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt; Promise&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;        const&lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt; response&lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt; await&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt; fetch&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt;&#39;https://api.github.com/repos/gjsify/gjsify&#39;&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;, {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;            signal: AbortSignal.&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;timeout&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt;10_000&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;),&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;        });&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;        const&lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt; file&lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt; join&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;await&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt; mkdtemp&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;join&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;tmpdir&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;(), &lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt;&#39;gjsify-&#39;&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;)), &lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt;&#39;repo.json&#39;&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;        await&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt; writeFile&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;(file, &lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;await&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt; response.&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;());&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;        const&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt; { &lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt;full_name&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt;stargazers_count&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt; } &lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt; JSON&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;parse&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;await&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt; readFile&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;(file, &lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt;&#39;utf8&#39;&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;));&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt;        this&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;._hint.&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;set_label&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt;`${&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;full_name&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt;} · ${&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;stargazers_count&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt;} ★`&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;fetch&lt;/code&gt; and &lt;code&gt;AbortSignal&lt;/code&gt; work as in the browser, &lt;code&gt;node:fs&lt;/code&gt;, &lt;code&gt;node:os&lt;/code&gt; and &lt;code&gt;node:path&lt;/code&gt; as in Node.js. Under the hood they run on Soup, Gio and GLib: no browser engine, no Node.js process.&lt;/p&gt;
&lt;h3&gt;Style it&lt;/h3&gt;
&lt;p&gt;Put the CSS in its own file, &lt;code&gt;src/style.css&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;shiki shiki-themes github-light github-dark&quot; style=&quot;--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e&quot; tabindex=&quot;0&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;.demo-status&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt;  color&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt;#9141ac&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt;  font-weight&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt;bold&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;gjsify turns a CSS import into a string. TypeScript does not know that yet and would report &lt;code&gt;Cannot find module &amp;#39;./style.css&amp;#39;&lt;/code&gt;, so declare it in &lt;code&gt;src/css.d.ts&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;shiki shiki-themes github-light github-dark&quot; style=&quot;--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e&quot; tabindex=&quot;0&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;declare&lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt; module&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; &#39;*.css&#39;&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;    const&lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt; css&lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt; string&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;    export&lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt; default&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt; css;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Load the string into a &lt;code&gt;Gtk.CssProvider&lt;/code&gt; in &lt;code&gt;src/index.ts&lt;/code&gt;. Do it inside the &lt;code&gt;activate&lt;/code&gt; handler: before that, there is no display yet and &lt;code&gt;Gdk.Display.get_default()&lt;/code&gt; returns &lt;code&gt;null&lt;/code&gt;. Here is the complete file:&lt;/p&gt;
&lt;pre class=&quot;shiki shiki-themes github-light github-dark&quot; style=&quot;--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e&quot; tabindex=&quot;0&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt; Gtk &lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; &#39;gi://Gtk?version=4.0&#39;&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt; Gio &lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; &#39;gi://Gio?version=2.0&#39;&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt; Gdk &lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; &#39;gi://Gdk?version=4.0&#39;&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt; { MainWindow } &lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; &#39;./main-window.js&#39;&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt; css &lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt; &#39;./style.css&#39;&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;const&lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt; app&lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt; new&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt; Gtk.&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;Application&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;({&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;    applicationId: &lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt;&#39;org.gjsify.hello-gjsify&#39;&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;    flags: Gio.ApplicationFlags.&lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt;FLAGS_NONE&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;});&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;app.&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;connect&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt;&#39;activate&#39;&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;, () &lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;=&gt;&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;    const&lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt; provider&lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt; new&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt; Gtk.&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;CssProvider&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;();&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;    provider.&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;load_from_string&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;(css);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;    Gtk.StyleContext.&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;add_provider_for_display&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;        Gdk.Display.&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;get_default&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;        provider,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;        Gtk.&lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt;STYLE_PROVIDER_PRIORITY_APPLICATION&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;    );&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;    new&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt; MainWindow&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;(app).&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;present&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;();&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;});&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;app.&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;run&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;([]);&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Finally, give the label the class in &lt;code&gt;src/main-window.blp&lt;/code&gt;. This is the complete file with the change in the second label:&lt;/p&gt;
&lt;pre class=&quot;shiki shiki-themes github-light github-dark&quot; style=&quot;--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e&quot; tabindex=&quot;0&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt; Gtk&lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt; 4.0&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;template&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt; $MainWindow&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;Gtk&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;ApplicationWindow&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;  title: &lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt;&quot;hello-gjsify&quot;&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;  default-width: &lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt;480&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;  default-height: &lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt;280&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;  child: &lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;Gtk&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;Box&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;    orientation: vertical;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;    spacing: &lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt;12&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;    margin-top: &lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt;24&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;    margin-bottom: &lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt;24&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;    margin-start: &lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt;24&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;    margin-end: &lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt;24&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;    Gtk&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;Label&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;      label: &lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;_&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt;&quot;Hello from gjsify!&quot;&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;      styles&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt;&quot;title-2&quot;&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;    Gtk&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;--shiki-light:#6F42C1;--shiki-dark:#B392F0&quot;&gt;Label&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt; hint {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;      xalign: &lt;/span&gt;&lt;span style=&quot;--shiki-light:#005CC5;--shiki-dark:#79B8FF&quot;&gt;0.5&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#D73A49;--shiki-dark:#F97583&quot;&gt;      styles&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;--shiki-light:#032F62;--shiki-dark:#9ECBFF&quot;&gt;&quot;demo-status&quot;&lt;/span&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;  };&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;--shiki-light:#24292E;--shiki-dark:#E1E4E8&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;figure&gt;&lt;img src=&quot;https://jumplink.eu/blog/2026/gjsify-first-app.webp&quot; alt=&quot;The finished window: a greeting and the repository name with its stars in purple&quot; loading=&quot;lazy&quot;&gt;&lt;/figure&gt;
&lt;h3&gt;A bigger example&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/JumpLink/easy6502&quot;&gt;Learn 6502 Assembly&lt;/a&gt; is built the same way, with TypeScript, Blueprint, libadwaita and gjsify. Its code shows how a real app is put together.&lt;/p&gt;</content>
    <category term="gjsify"/>
    <category term="GNOME"/>
  </entry>
  <entry>
    <id>https://jumplink.eu/en/blog/new-site/</id>
    <title>A new jumplink.eu, with a new look</title>
    <link rel="alternate" href="https://jumplink.eu/en/blog/new-site/"/>
    <published>2026-10-30T00:00:00Z</published>
    <updated>2026-10-30T00:00:00Z</updated>
    <summary>Time for a redesign. More colour, more life, and the view from the Cuxhaven dike at the top of every page.</summary>
    <content type="html">&lt;p&gt;It was time for a redesign again. The old design had become too grey, too heavy on text and out of date:&lt;/p&gt;
&lt;figure&gt;&lt;img src=&quot;https://jumplink.eu/blog/2026/new-site-old.webp&quot; alt=&quot;The old site: a grey single-column CV with a photo and a pixel font&quot; loading=&quot;lazy&quot;&gt;&lt;/figure&gt;
&lt;h3&gt;The look&lt;/h3&gt;
&lt;p&gt;I did not want to give up the pixel-art look, but I wanted more colour and more life on the page. I live in Cuxhaven, so every page opens with the view from the dike: sky, sea and, on the horizon, the Kugelbake, the town&amp;#39;s landmark beacon. If your system is set to dark mode it is evening, with moon and stars; otherwise it is day.&lt;/p&gt;
&lt;p&gt;The scene moves. The waves roll, container ships, fishing cutters and gulls pass by during the day, shooting stars and aircraft at night. If you asked your system for less motion, you get a calm still picture instead.&lt;/p&gt;
&lt;p&gt;On the home page I stand in front of the water myself, as a pixel figure. It was made with AI, but locally on my own computer: with ComfyUI, the FLUX.2 Klein 4B model and the &lt;code&gt;pixel-art-sprite_limbicnation&lt;/code&gt; LoRA.&lt;/p&gt;
&lt;p&gt;Everything else stays calm: text stands free on the background with hardly any boxes, set in Adwaita Sans, GNOME&amp;#39;s typeface. The only pixel font left is the one for the page titles. A few words are borrowed from the RPGs I like: the CV lists quests and items, the skills form a small skill tree, and the blog is the Logbook.&lt;/p&gt;
&lt;p&gt;By the way, a small hint: click the moon or the sun to switch between day and night. Maybe a few more little gimmicks will turn up over time. :)&lt;/p&gt;
&lt;p&gt;The site sets no cookies, has no tracking and loads nothing from other servers. The old site is kept in the repository under the tag &lt;code&gt;v2-riba&lt;/code&gt;.&lt;/p&gt;</content>
    <category term="Website"/>
    <category term="Pixelart"/>
  </entry>
  <entry>
    <id>https://jumplink.eu/en/blog/learn6502/</id>
    <title>Learn 6502 Assembly, a GNOME app</title>
    <link rel="alternate" href="https://jumplink.eu/en/blog/learn6502/"/>
    <published>2026-10-29T00:00:00Z</published>
    <updated>2026-10-29T00:00:00Z</updated>
    <summary>Learn 6502 Assembly is a GNOME app with tutorial, editor, debugger and a virtual display, based on Nick Morgan&#39;s easy6502.</summary>
    <content type="html">&lt;p&gt;The 6502 is the processor of the Commodore 64, the NES and the Apple II. Nick Morgan&amp;#39;s &lt;a href=&quot;https://github.com/skilldrick/easy6502&quot;&gt;easy6502&lt;/a&gt; is a web tutorial that teaches its assembly language step by step. I turned it into a native GNOME app: &lt;strong&gt;Learn 6502 Assembly&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;What is in it:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;strong&gt;An interactive tutorial&lt;/strong&gt; that walks through the core concepts.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;A code editor&lt;/strong&gt; with syntax highlighting.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;An assembler and a debugger&lt;/strong&gt; that show registers, flags and memory while the code runs.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;A virtual display&lt;/strong&gt; where you see the result, which is what makes small games and graphics possible.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;It is written in TypeScript with GJS and libadwaita, and built with &lt;a href=&quot;https://gjsify.org/&quot;&gt;gjsify&lt;/a&gt;. The repository holds more than the desktop app: the assembler, simulator and disassembler live in their own package, &lt;code&gt;@learn6502/core&lt;/code&gt;, and the same code also drives a web version and an Android app. The tutorial content and the translations are separate packages too, and translating happens on Weblate.&lt;/p&gt;
&lt;p&gt;The app is on &lt;a href=&quot;https://flathub.org/apps/eu.jumplink.Learn6502&quot;&gt;Flathub&lt;/a&gt;. The code is GPL-3.0; the tutorial text is CC BY 4.0, as in the original.&lt;/p&gt;</content>
    <category term="GNOME"/>
    <category term="gjsify"/>
  </entry>
  <entry>
    <id>https://jumplink.eu/en/blog/why-gjsify/</id>
    <title>Why gjsify</title>
    <link rel="alternate" href="https://jumplink.eu/en/blog/why-gjsify/"/>
    <published>2026-10-28T00:00:00Z</published>
    <updated>2026-10-28T00:00:00Z</updated>
    <summary>gjsify brings the standard Node.js and web APIs to GJS, so TypeScript apps and npm packages run natively on GNOME.</summary>
    <content type="html">&lt;p&gt;GNOME apps can be written in JavaScript. The runtime is GJS, powered by SpiderMonkey. But GJS is neither Node.js nor a browser: there is no &lt;code&gt;node:fs&lt;/code&gt;, no &lt;code&gt;fetch&lt;/code&gt;, no &lt;code&gt;&amp;lt;canvas&amp;gt;&lt;/code&gt; and no npm ecosystem waiting for you. Many libraries, whether an HTTP client, a game engine or a crypto library, assume APIs that GJS does not have.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://gjsify.org/&quot;&gt;gjsify&lt;/a&gt; fills that gap. It reimplements the Node.js, web and DOM APIs on top of GNOME&amp;#39;s own libraries:&lt;/p&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;You write&lt;/th&gt;&lt;th&gt;gjsify runs it on&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;node:fs&lt;/code&gt;, &lt;code&gt;node:net&lt;/code&gt;, &lt;code&gt;node:crypto&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Gio, GLib&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;fetch&lt;/code&gt;, &lt;code&gt;WebSocket&lt;/code&gt;, &lt;code&gt;XMLHttpRequest&lt;/code&gt;&lt;/td&gt;&lt;td&gt;Soup 3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;&amp;lt;canvas&amp;gt;&lt;/code&gt; 2D and WebGL&lt;/td&gt;&lt;td&gt;Cairo, Gtk.GLArea&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;WebRTC, WebAudio, &lt;code&gt;&amp;lt;video&amp;gt;&lt;/code&gt;&lt;/td&gt;&lt;td&gt;GStreamer&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;node:sqlite&lt;/code&gt;&lt;/td&gt;&lt;td&gt;libsqlite3&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;This makes the standard APIs available in GJS. Libraries written for Node.js or the browser now run directly on GJS, with no browser engine and no Node.js runtime. There is no wrapper server, no bundled Chromium and no shelling out to Node. The result is a real GTK 4 and Adwaita app that you can ship as a Flatpak and that still speaks the language of the wider JavaScript world.&lt;/p&gt;
&lt;h3&gt;And the other way round&lt;/h3&gt;
&lt;p&gt;If you prefer Node.js or Bun, you can keep using them. For that I built the reverse direction too: the GJS APIs, meaning GTK, Adwaita and everything else GObject Introspection offers, are available under those runtimes as well. So every native API runs on every runtime.&lt;/p&gt;
&lt;p&gt;And it behaves the same there. Tests make sure of that: the same tests check the Node.js APIs, the web APIs, the GObject Introspection APIs and the GJS runtime APIs on each runtime, and the result has to be exactly the same everywhere. That is why you can switch the runtime during development without touching the code.&lt;/p&gt;
&lt;p&gt;It opens up other systems as well: with gjsify you can ship GJS apps for macOS and Windows, as an &lt;code&gt;.app&lt;/code&gt; and &lt;code&gt;.dmg&lt;/code&gt;, or as a program folder and &lt;code&gt;.msi&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;What I wanted from it&lt;/h3&gt;
&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Native on GNOME first.&lt;/strong&gt; GJS is the main target.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;The ecosystem, unmodified.&lt;/strong&gt; The test is whether npm packages run as they are. The Excalibur.js game engine, WebTorrent, socket.io, three.js, axios and the Anthropic MCP SDK all run on GJS through gjsify, checked against their own upstream tests.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;One source, several runtimes.&lt;/strong&gt; GJS, Node.js, Bun, the browser and NativeScript. Each package says which of them it reaches, and the build picks the right implementation.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;No Node.js required.&lt;/strong&gt; Install, build, run, test, publish and the Flatpak step all run on GJS itself.&lt;/li&gt;&lt;/ul&gt;
&lt;h3&gt;Why I build my apps this way&lt;/h3&gt;
&lt;p&gt;I know TypeScript, the web and its tooling well, and I want to write GNOME apps without leaving that. &lt;a href=&quot;https://github.com/gjsify/ts-for-gir&quot;&gt;ts-for-gir&lt;/a&gt; gives me types for GTK and every other introspected library, gjsify gives me the APIs and the toolchain. My own apps, such as &lt;a href=&quot;https://jumplink.eu/beifahrer/&quot;&gt;Beifahrer&lt;/a&gt;, &lt;a href=&quot;https://jumplink.eu/steuererklaerung/&quot;&gt;Steuererklärung&lt;/a&gt; and &lt;a href=&quot;https://flathub.org/apps/eu.jumplink.Learn6502&quot;&gt;Learn 6502 Assembly&lt;/a&gt;, are the first test: if something is missing, I fix it in gjsify instead of working around it in the app.&lt;/p&gt;
&lt;p&gt;The code is on &lt;a href=&quot;https://github.com/gjsify/gjsify&quot;&gt;GitHub&lt;/a&gt;, the documentation at &lt;a href=&quot;https://gjsify.org/gjsify/&quot;&gt;gjsify.org&lt;/a&gt;.&lt;/p&gt;</content>
    <category term="gjsify"/>
    <category term="GNOME"/>
  </entry>
</feed>