Hello, I'm Hexagon

Hexagon's avatar

I've been into JavaScript since 1996, having created libraries like Croner, a cross-runtime cron scheduler, and Pup, a process manager similar to pm2 for Deno. My blog covers everything from JavaScript and TypeScript to modern runtimes like Deno, and lately also Rust, Linux servers, security and identity, with projects like rootcard and Murmo. I'm all about Open Source, portable code and minimal bloat.

For a solid foundation in pure JavaScript, check out my article series The guide to JavaScript.

This blog is built using Deno and Lume, and the source code is available at github.com/hexagon/blog.



Recent posts

One cron pattern, five languages: Croner and OCPS

by Hexagon,

Croner started as a small cron library for JavaScript. It then got a Rust version, and recently Python and .NET versions. Now there is a fifth one, for C++. Five libraries that should answer the same question in the same way: when does 0 0 L * FRI run next? That turned out to be the easy part. The hard part was deciding what the right answer is.

Talking to my servers, and letting them take notes

by Hexagon,

I have a couple of servers that I care about. Each was set up by me, at some point, in a hurry, and each has its own little surprises. These days I mostly just talk to them. Claude runs on each of them, and writes down what it learns, so it knows a bit more the next time.

Croner for Python and .NET: Stable releases

by Hexagon,

Croner started as a cron library for JavaScript, and later got a Rust version. It is now also available for Python and .NET, and both have reached their first stable releases.

Murmo bots: Letting Claude tap me on the shoulder

by Hexagon,

A few days ago I wrote about Murmo, the end-to-end encrypted messenger built on rootcard. Since then it has learned a new trick: bots. Any program can now write with Murmo users over plain HTTPS. And the first program I wanted to hook up was Claude, so it can tell me when it is done instead of me checking every five minutes.

Murmo: A secure messenger that is still just a messenger

by Hexagon,

So, there I was, with an identity system that I had just built for a space game. A login where the password never leaves the browser, and an account that belongs to the user instead of the server. I kept thinking that it would fit something else even better: a messenger. I had played with that idea once before, just for fun, a long time ago. This time I wanted to do it properly, and the result is Murmo.

rootcard: A new take on the password login, and an ID card for the web

by Hexagon,

So, there I was, with a game server where anyone could log in with just a name. The game is Xigna, a space MMO I'm building, and it needed real accounts. That should be easy. Hash the password, store the hash, add a reset by e-mail, done. But the more I looked at it, the less I liked it. A couple of weeks later I had built rootcard instead.

Cross-Runtime JavaScript: Navigating Runtime Differences

by Hexagon,

Discover strategies for handling runtime differences and ensuring smooth cross-platform execution of your JavaScript code.

Cross-Runtime JavaScript: Streamlining Your Project Setup

by Hexagon,

Embrace the 'less-is-more' philosophy for cross-runtime JavaScript development. Discover how Deno's and Bun's built-in features reduces complexity and enhances your workflow.

Cross-Runtime JavaScript: Introduction

by Hexagon,

Kickstart your cross-runtime JavaScript journey! Learn the basics and why building code for all runtimes (Node.js, Deno, and Bun) matters.

Two weeks with jsr.io: Do we need a new package registry?

by Hexagon,

A while ago, I wrote a post called How to Create a Dual-Mode Cross-Runtime JavaScript Package: How to Create a Dual-Mode Cross-Runtime JavaScript Package, and while possible - it sure isn't simple. There has to be a better way, and the creators behind jsr.io seem to agree.

A detour to Rust: Creating a Rust flavor of Croner

by Hexagon,

So, there I was, diving into Deno's new feature, Deno.cron, when something caught my eye. It was missing a few things – support for time zones, second granularity, and some extended cron-syntax I like. It got me thinking: could I fill these gaps? Despite not having dabbled in Rust before, I had a fair bit of fun creating the croner library for JavaScript and TypeScript, so why not give it a shot in Rust?

Creating a Dynamic CSS Color Palette for both Light and Dark Modes

by Hexagon,

Today, I have an exciting CSS trick to share. When working on Lumocs, I wanted users to be able to set a color of their choice and have the page automatically adapt to that color. I had the idea of using CSS variables to achieve this. Lumocs supports both light and dark modes, so this had to be automatic as well. After some tinkering, I discovered a technique that enables you to generate a full color palette using any hue for both light and dark modes using only CSS.

Introducing Lumocs: A Modern Documentation Engine based on Deno and Lume

by Hexagon,

Meet Lumocs, a documentation generator powered by JavaScript through Deno and Lume. This guide will walk you through the essential steps to set it up, create your first documentation page, and deploy your site.

If you want a quick showcase, check out the Lumocs Documentation, which is generated by Lumocs itself.

Autostarting And Monitoring Deno Applications And Services

by Hexagon,

Planning to host your Deno service or server on your own but unsure about how to launch it at system boot and ensure its uptime? This guide is here to help. Dive into Docker and Pup as robust options for managing Deno apps at system boot, guaranteeing their continuous operation, resilience, and monitoring.

Harden Your Linux Server Using These Foundational Measures

by Hexagon,

With the constant rise of online threats, it becomes more crucial to ensure that your server is secure. Review these basic measures, and make your server safer. The steps in this guide are primarily geared towards Ubuntu and Debian, but the fundamental principles are the same.

Unshackling JavaScript: Vanilla JS Over Shims

by Hexagon,

Vanilla JavaScript, in its pure and authentic form, enables developers to utilize the language's native capabilities, freeing them from the confines and redundancies of libraries like jQuery and Lodash. This article reveals the elegance of such native alternatives and advocates for purity in coding practices.

Advanced SSH Key Management - SSH CA

by Hexagon, , Updated:

Venture into advanced SSH key management concepts such as SSH Certificate Authority (CA) and learn how to set up and manage it manually.

Distributing and Using SSH Keys

by Hexagon, , Updated:

Explore the various methods for distributing and utilizing SSH keys, ensuring secure and seamless access to remote servers and GitHub.

Introduction to SSH Key Management

by Hexagon, , Updated:

SSH keys are cryptographic keys that enable user authentication to servers, providing a secure alternative to traditional passwords. They not only increase security but also greatly simplify daily tasks for developers.

Creating and Managing SSH Keys

by Hexagon, , Updated:

Delve deeper into the creation and management of SSH keys, learning about passphrase protection and the differences between public and private keys.