I joined Yapin and ended up writing a client for it twice

by Ilyes Hernandez

4 min read

I joined Yapin on October 17. It was still called Yapper then. Six days earlier, a small YouTuber named Antic had put out a video about building his own Discord alternative with AI. It started as something he did for fun, and by the time I signed up, that video had brought a lot of people along with me. Antic's original video

My first impression was that if you changed the primary color back, large parts of the app could pass for Discord. I kept noticing little UI decisions that felt like what you get when you ask AI to reproduce a familiar interface and accept the first thing that looks close. Still, Antic had put his own money into it, people were showing up through his channel, and we could actually hang out in the thing he'd made. I liked it enough to stick around. Two or three days in, I was already wondering how hard it would be to change the parts that bothered me.

The first people who used Yapmod

I knew how to put a web app in a desktop window, and I wanted a Yapin app I could run on my Mac. With Tauri I could open Yapin in the system WebView and run a little JavaScript of my own once the page loaded. Yapin was small enough that I could find the piece of the interface I cared about, change it, and see the result right there in the app I was using. That prototype became Yapmod.

CSS themes let people change the colors themselves. JavaScript plugins could go a bit further and add things to the interface. I made a Yapin server for the project, and people joined, installed the client, and started asking when they could use their changes in a browser. Then they asked about phones. I'd picked a desktop window because that was what I wanted on my own machine. Nobody who'd come for the themes had much reason to care about that decision.

I also had to admit I'd done something pretty close to what bothered me about Yapin in the first place. I'd used AI heavily on the prototype. I tested what it produced, saw the feature working, and moved on to the next thing before I'd really read the code. That caught up with me when I tried to work out which parts a browser extension would need. Themes, plugins, and desktop behavior had all grown up together. Even I had trouble telling where one ended and the next began.

Writing it a second time

By late October I'd decided to start over. The question that helped me was a pretty mundane one. If I fixed a bug in a plugin, why should somebody have to download a new desktop app to get the fix?

I wrote the shared client first. It builds to one JavaScript file that can run wherever Yapin is open. The browser extension came next, which gave me somewhere to use the client with none of the desktop code around. Then I rebuilt the Tauri app. It could take care of the tray, notifications, and window controls while loading the same client I'd just used in a browser tab. Each piece got its own repository in the Yapmod organization. Yapmod on GitHub

That sounds tidy in a paragraph. It took me weeks. Say a plugin adds a section to Yapin's settings. You can get that section to show up once and think you're done. Then you navigate away and come back. Yapin uses React, the element you attached the section to is gone, and the plugin still thinks it's on the page. I wanted someone writing a character counter or a quick-reply button to be able to spend their time on that. Getting the client to handle those little disappearances, and to clean up properly when someone switched a plugin off, was a big part of the rewrite. More about the plugin system

The rebuilt client reached 1.0 on November 19. The desktop app followed on November 20. On November 23 I published the mobile build, an APK for Android and an IPA for iOS. Of everything I shipped that month, the phone version is the one that makes me happiest about the rewrite. Someone had asked me a perfectly reasonable question about using Yapmod on their phone. A month earlier my best answer was that I'd built it for my Mac. Now I could send them a file. First mobile release

What I'm building now

On November 28 I started writing Base, the community bot I'd wanted to build since my first days on Yapin. Running the little server around Yapmod meant I finally had a place of my own where I'd want to use it.

Base pairs a bot with a dashboard for the people who run a server. Moderation gives staff a private inbox for member reports and a history of the cases they've handled. News is where they can put together an announcement. There's also a separate message composer so they can draft a regular server message and see how it'll look before sending it. Welcome handles greetings when people join, Security handles things like member verification, and Analytics tracks activity such as joins, departures, and messages.

The part I care about most right now is what happens after someone submits a report. On the member's side, that should be a private conversation. On the staff side, the next moderator who comes along should be able to see what happened and whether anybody's dealt with it yet. Six weeks ago I was looking at Yapin and thinking about the color I'd change. Today I'm spending my time on what a moderator sees when they open that inbox. That's where building a client for a few people took me.

Continue reading →

Why I never left the terminal

by Ilyes Hernandez

3 min read

I've been programming for a long time and there's one thing I've always loved: the terminal. That program that runs on any computer, that lets you talk to the machine by typing some mysterious words. I remember the first time I discovered it. I felt so damn good. Like a hacker, minus the actual knowledge required to be one. But in reality, the terminal is one of the first interfaces most programmers ever see. Whenever you start out, the first thing you touch is a terminal.

The first TUI

That step matters more than people give it credit for. I remember the first time I touched an editor that wasn't some gui but an actual terminal user interface, a TUI. It was fast, reliable, and built to be shortcut-driven, which put a stupid amount of power in my hands. I was flying through folders, listing them, managing them, all from the keyboard. But like most tools, I started running into its limits, and started understanding the ecosystem underneath it. An ecosystem built on years of work, with multiple "shells" (a term I only learned later) and the actual terminal applications that display those shells.

That distinction took me a while to get. The shell is the thing interpreting your commands. The terminal emulator is just the window it lives in. Bash, zsh, fish, all different shells with different quirks, different autocomplete behavior, different scripting rules. And on top of that, dozens of terminal emulators, each with their own rendering, their own font handling, their own idea of what a good default looks like. Once that clicked, the terminal stopped being a black box and became a stack I could actually reason about.

Everyone's back in the terminal now

Now here's where I want to give my opinion, because I think it's a good one.

We're in the middle of an AI boom, and a lot of people are rediscovering the terminal through it. Coding agents live there. You run a command, the agent goes off and does something, comes back with a diff or a log, and you're back at the prompt. People who never touched a shell in their life are suddenly living in one, and a lot of them are loving it. There's something honest about a terminal. No hidden menus, no mystery meat navigation, just you, a prompt, and whatever you type next.

And then they leave again

But I've noticed a pattern too: some of these same people are starting to dismiss the terminal once a proper app shows up to replace it. And I get why. A dedicated GUI, something like Codex's app version or any of the polished wrappers coming out right now, is going to be better at a lot of things. Visual diffs, click-to-approve, drag and drop, all of that is genuinely nicer for a lot of workflows. I'm not going to pretend a raw terminal beats a well-designed app at showing you a three-way merge conflict.

Why I'm staying

But I still think the terminal has a place, and not as some nostalgia thing. For people like me who want a keyboard-driven workflow, who want speed, who want something light that doesn't try to render forty UI elements just to show me a status, the terminal is still one of the most practical tools I own. It's not about rejecting the new apps. It's about knowing when the old tool is still the right one. And for me, most of the time, it still is.

Continue reading →

Let's talk about Deno Desktop

by Ilyes Hernandez

4 min read

I've been building web applications for a long time. But there's one thing I've always wanted to build: a desktop application.

There are plenty of solutions out there that let you build desktop apps with web technologies. Some of them use completely different languages for the backend, which never felt right to me. Others, like Electron, use Node.js with Chromium or the host's native web engine. They're genuinely impressive.

However, they wouldn't use Deno.

Deno is built to be minimal. And there was no minimal solution based on Deno that provided the same capabilities as Electron, in a simple way, mostly compatible with most Deno projects.

I've always wanted an Electron-like but for the Deno landscape. When 2.9 shipped, it was finally there.

Every desktop framework asks you to learn a second project

This is what frustrates me about desktop web frameworks.

Electron wants a main.js and a renderer.js and a preload script and a build step before you get a single pixel. Tauri wants a whole Rust project living alongside your frontend. You have to learn a second project structure just to open a native window.

Deno Desktop makes a different bet. You already know how to serve HTML.

Deno.serve(() =>
  new Response(`<!DOCTYPE html><h1>Hello from desktop</h1>`, {
    headers: { "content-type": "text/html" },
  })
);
deno desktop main.ts

That's the whole thing. The runtime picks a local port. Your handler binds to it automatically. A window opens. No port management, no extra config, no learning a second mental model.

The reason I like this is simple: the best API is the one you don't have to learn. That sounds obvious, but almost every desktop framework violates it.

You get to choose your engine, and the default is the right one

What I like is that Deno Desktop supports both approaches. You can use your OS native web engine, or you can bundle Chromium if you need pixel-perfect consistency everywhere. The default is the OS engine.

That default tells you a lot about their thinking. WebView keeps your app around 66 MB uncompressed, or 19 MB with --compress. CEF bumps that to roughly 150 MB. By making webview the default and CEF opt-in, Deno is saying: most apps don't need Chromium's rendering fidelity, and the people who do will know it. 19 MB versus 150 MB is not a small difference.

There's also a raw mode underneath that removes the browser engine entirely, meant for WebGPU or custom rendering. I don't think it's useful yet. But maybe someday someone will build a Deno library on top of it that lets you draw directly to the screen with no web engine at all. That would be fun. I haven't heard of anyone doing it yet.

However, the flexibility itself is what matters. And the binary size argument isn't even the thing I find most interesting.

In-process channels are my favorite part

Here's the thing nobody talks about with desktop frameworks: once your page is on screen, it still needs to talk to the backend. Most frameworks send messages across processes to do that. It works, but you feel it in startup sequences that query the backend for initial state. Those round trips add up.

Deno Desktop keeps everything closer. The runtime and the renderer don't cross process boundaries just to talk to each other.

You register a function on the Deno side:

const win = new Deno.BrowserWindow();
win.bind("readSettings", async () => {
  const text = await Deno.readTextFile("settings.json");
  return JSON.parse(text);
});

And call it from the webview:

const settings = await bindings.readSettings();

That's it. No message channels, no serialization ceremony. If you've used Electron, the mapping is straightforward: ipcMain.handle becomes win.bind, ipcRenderer.invoke becomes bindings.name(), and contextBridge just disappears.

Why do I care? Because this removes friction you don't notice until it's gone. Each individual call is fast enough in any framework. But they accumulate. The app starts feeling slightly heavy, slightly remote. You can't point at why. In-process calls fix that. Not a revolution, just removing something that shouldn't have been there.

This philosophy is the whole story

What I keep coming back to is that none of these decisions are random.

Deno already has everything needed to run and package your code. Desktop uses those pieces instead of inventing a second system. The same code that powers your server powers your desktop app. No extra build step.

That consistency is what makes it feel like Deno. Batteries included, zero config, escape hatches when you need them.

Every choice in Deno Desktop follows from that same belief:

  • Default to webview, not Chromium.
  • Ship in-process channels instead of IPC.
  • Auto-detect your framework instead of asking what you're using.

These aren't isolated technical optimizations. They're all the same thesis: the default path should be the right path, and configuration should be opt-in for people who actually need it.

What I'd honestly tell someone considering it

I should be straight about what's missing. Windows auto-update isn't implemented yet. Notarization is a separate manual step. Mobile support doesn't exist.

I'm not sure all of those are blockers for most projects. The foundation is what matters. Default webview, in-process channels, single command output. The value of a desktop framework is making the easy path the correct one, and this does that.

deno desktop is the first desktop framework that made me think I could reach for it today. Not when the ecosystem fills in, not after another rewrite cycle. Today. I think that's worth saying out loud.

Continue reading →

More posts can be found in the archive.