DEV Community

Cover image for Building a Modern Full-Stack Architecture Around Aurelia 2
Sandikodev
Sandikodev

Posted on Edited on

Building a Modern Full-Stack Architecture Around Aurelia 2

Exploring platform-scoped SSR, Hono, Web Streams, and edge deployment without committing to a single meta-framework.

There is something I find interesting about working with Aurelia 2 in 2026.

Most frontend conversations eventually lead to a familiar question: which meta-framework should I use?

React has Next.js, Remix and Tanstack/React Router. Vue has Nuxt. Svelte has SvelteKit. Qwik has Qwik City.

These ecosystems provide recognizable paths for routing, server rendering, caching, deployment, and application architecture.

Aurelia leaves considerably more room for developers to make those decisions themselves.

I like that freedom. But it also raises an engineering question that is harder to answer with documentation alone:

What does a modern Aurelia application actually look like when you want to run it beyond the browser?

I decided to explore that question through a set of projects around Aurelia 2.

The architecture starts with a different assumption

I didn't want to build another monolithic framework that dictates the entire application stack.

I wanted Aurelia to remain responsible for the frontend experience while allowing the server, HTTP layer, rendering environment, and deployment infrastructure to use technologies that make sense independently.

That led me toward a combination of Aurelia 2, Hono, Web Streams, and modern JavaScript runtimes.

The interesting part isn't simply putting these technologies together. It's making their boundaries work correctly.

In particular, server-side rendering introduces problems that aren't immediately obvious when a framework was originally designed around browser execution.

SSR is more complicated than rendering HTML on the server

Rendering a component on the server sounds straightforward until multiple requests start arriving concurrently.

A browser normally provides a relatively isolated execution environment for an application. On a server, multiple requests can share the same JavaScript process.

That changes the problem.

If rendering depends on mutable global DOM state, shared framework containers, or a globally coordinated rendering environment, concurrent requests can interfere with one another.

A server-side renderer needs to think about request isolation, resource lifecycle, cleanup, and the ownership of its execution environment.

This became one of the central design questions in my implementation.

For the SSR work, I explored platform-scoped DOM execution using LinkeDOM and JSDOM, with request-level isolation rather than relying on a single global mutex to serialize rendering.

The goal is straightforward: one request should not accidentally inherit mutable rendering state from another request.

This is particularly relevant when deploying to environments where concurrency is part of the runtime model.

I also wanted the rendering pipeline to work with Web Streams rather than assuming that every deployment environment behaves like a traditional long-running Node.js server.

That makes the integration more interesting across Node.js, Bun, and edge-oriented environments.

Why Hono?

Hono fits naturally into this architecture.

It provides an HTTP layer that works across multiple JavaScript runtimes without requiring the frontend framework to own the entire server application.

That separation matters to me.

Aurelia handles the UI and application components. Hono handles HTTP concerns and request routing. The SSR integration connects the two.

The result is an architecture where the frontend doesn't need to dictate the backend's structure.

I have been developing this integration in hono-aurelia, alongside the rendering implementation in aurelia-ssr.

There is also a live Cloudflare Workers deployment that makes the work accessible:
https://aurelia-hono-ssr.sandiko.workers.dev

This is an important distinction: the deployment demonstrates a working integration in a real runtime environment. It doesn't mean every possible application architecture or deployment configuration has been validated.

The browser is still important

Another direction I wanted to explore was selective hydration.

Modern applications increasingly distinguish between content that needs JavaScript immediately and content that can remain static.

An informational landing page doesn't necessarily need the same hydration strategy as an interactive dashboard.

This is where the islands approach becomes interesting.

I've been exploring this in aurelia-islands.

The idea is to let static content remain lightweight while introducing interactive Aurelia components where they actually provide value.

This is especially interesting when combined with server rendering. Instead of treating an entire page as one indivisible application, we can start thinking about the page as a collection of independently meaningful regions.

There is still considerable implementation work involved in making that model reliable, particularly around hydration boundaries and component lifecycle.

But I think it's a worthwhile direction for Aurelia.

Interoperability matters too

There is another practical consideration.

A framework with a smaller ecosystem shouldn't assume that every team will replace its existing UI technology just to adopt it.

Real applications accumulate dependencies, components, and architectural decisions over time.

That's why I've also been exploring aurelia-bridge.

The intention is to investigate interoperability between Aurelia and other UI runtimes, including React, Vue, and Svelte.

This is still an evolving integration project. Its purpose is to explore how existing UI components can coexist across framework boundaries without requiring an immediate rewrite of an entire application.

For enterprise environments, that kind of incremental adoption can be more realistic than proposing a complete frontend migration.

These aren't just isolated repository experiments

The work eventually came together in a larger application:

sandikodev/aureliajs

The application is deployed at:

https://aureliajs.vercel.app

It is a multi-tenant SaaS application with authentication, workspace boundaries, and a shared contract between its frontend and API.

Some of the engineering decisions are deliberately independent of Aurelia itself:

  • A shared Zod contract between web and API.
  • Explicit tenant isolation.
  • An idempotency ledger.
  • A static-first landing page.
  • Separate deployment responsibilities for the application and API.
  • Integration testing across application boundaries.

I mention these because they demonstrate the kind of application architecture I wanted to validate around Aurelia.

The current test suite reports 275 automated tests with 1,651 assertions, alongside 49 Playwright E2E tests. Strict typechecking and linting are also part of the development workflow.

These numbers are snapshots of the current project, not a substitute for reviewing the actual implementation.

The SSR integration also has a live Cloudflare Workers deployment, while the application itself runs on Vercel.

None of the five repositories should be mistaken for official Aurelia team projects. They are maintained as independent work in the Aurelia ecosystem, and their packages have not yet been published to npm.

What I actually want to explore

I don't think Aurelia needs to become another React/Next.js.

There are legitimate reasons why developers appreciate having a single framework that makes most architectural decisions for them. There are also legitimate reasons why other teams prefer to own those decisions.

Aurelia's flexibility gives it room to work with different backend architectures, deployment environments, and rendering strategies.

The trade-off is that developers need more reference implementations showing how those pieces fit together.

That's the part I'm interested in contributing to.

I'm not claiming that these projects have solved every SSR, hydration, or interoperability problem in Aurelia. There are still boundaries to test, APIs to refine, and packages to mature.

But I find it worthwhile to investigate what happens when we take Aurelia's frontend philosophy seriously and connect it to the infrastructure developers are already using.

The repositories are open, the deployments are accessible, and the implementation is something others can inspect and challenge.

I'd genuinely like to hear from developers who have worked with Aurelia 2, especially anyone who has attempted SSR or edge deployment with it.

What integration paths are you currently using? Where does the framework make things easy, and where are you still having to build the missing pieces yourself?

That's a much more interesting engineering conversation to me.

Top comments (0)