The JavaScript Journal

JavaScript applications are awesome on Fly! This is the home for JavaScript-oriented content including Node.js, Deno, Bun, React.js and more.

By Yvette Johns

Launching a Remix app with Postgres using Prisma

In 2021, we launched Fly Postgres to resounding fanfare - seriously, we'e still cheering about it to this day. For folks who need a straightforward, familiar database storage solution and aren’t too pressed about managing it themselves, it’s an incre

Read more
By Annie Sexton

Using WebSockets with Next.js on Fly.io

In this article I’ll show you how to build a real-time chat app with WebSocket in a Next.js app. This solution works whether you’re using the App Router or the Pages Router, as much of the magic comes from setting up a custom Next.js server. Let’s di

Read more
By Jesse Thompson

Build a file sharing service without making your brain hurt

I’m a pretty online person, and I have friends all around the world. We tend to do things like share mod files and video replays pretty frequently, and this creates issues when the >5 GB file someone just uploaded in Poland needs to be downloaded in

Read more
By Szymon Mentel

Multi-tenant apps with single-tenant SQLite databases in global Tigris buckets

I got nerd-sniped by one of the ideas Jason brainstormed in his Phoenix Files article about Tigris, an S3-compatible globally synced object store. Tigris is, not coincidentally, built on Fly.io. (If you haven’t read Jason’s article, go read it! You’l

Read more
By Annie Sexton

Building a Remix app locally with Docker

Docker can give developers a high degree of confidence that their applications will run exactly as expected in production. However, many people still run into failed deployments or unanticipated problems because when developing locally, the aren’t us

Read more
By Annie Sexton

FLAME for JavaScript: Rethinking Serverless

A couple of months ago, Chris McCord, the creator of the Phoenix framework, published an article about a new pattern called FLAME as an alternative to serverless computing. The original article focused on the implementation in Elixir, which has some

Read more
By Annie Sexton

Demystifying Docker for JavaScript

Dockerfiles for JavaScript applications can range quite a bit – from two lines to fifty. What gives? This complexity can drive some developers away from really understanding this powerful tool, so today, I’d like to demystify Docker by examining a sam

Read more
By Sam Ruby

Ciabatta with Garlic & Basil

Previously, Vanilla with Candy Sprinkles covered how you could select your own “vanilla” JS demo and sprinkle in as many options as you like. But that blog post focused on Node.js, and now that Bun 1.0 has been released it is time for an update. We

Read more
By Sam Ruby

Fly.io ❤️ Bun

Bun 1.0 comes out September 7th. Fly.io is making preparations. Previously, we stated that Fly.io ❤️ JS, and we understandably started with Node.js. While that work is ongoing, it makes sense to start expanding to other runtimes. Bun is the obvio

Read more
By Sam Ruby

Vanilla with Candy Sprinkles

Recapping where we are to date: There are plenty of JavaScript frameworks to choose from, and fly.io loves them all. Pretty much all of the big name frameworks are delightfully weird. Picking up where we left off, this blog post will describe lite

Read more
By Sam Ruby

The JavaScript Ecosystem is Delightfully Weird

Note, I’m not saying that JavaScript is weird, though it definitely is weird. But that’s not the point of this blog post. Bear with me, instead of starting with how JavaScript ecosystem is weird, I’m going to start with why the JavaScript ecosystem

Read more
By Sam Ruby

Fly.io ❤️ JS

Fly.io is a great place to run fullstack applications. For most programming languages, there is a defacto default fullstack framework. For Ruby, there is Rails. For Elixir, there is Phoenix. For PHP there is Laravel. For Python, there is Django.

Read more