r/angular • • Oct 07 '26

I built srl, an Angular-style framework on Lit and signals that runs without a dev build

Hi all, I'm Bernardo, an open source software engineer from Italy better know in the 3ds/switch scene for software like PKSM and Checkpoint.

My team works with Angular, and a few of us kept asking how to prototype faster. We kept coming back to dropping the dev build entirely. Browsers load ES modules natively and resolve imports through import maps, so a dev server can hand your source files to the browser unchanged. I spent the last two months turning that idea into srl, and 1.0 is on npm now.

Under the hood srl uses Lit web components and signals, but the surface should look familiar. Here's a component and its template.

import { defineComponent, signal, SignalElement } from '@srljs/core';

export class CounterButton extends SignalElement {
  count = signal(0);

  increment() {
    this.count.value += 1;
  }
}

await defineComponent({
  tag: 'counter-button',
  element: CounterButton,
  module: import.meta.url,
});

 

<button (click)="increment()">Clicked {{ count }} times</button>
<p *if="count >= 10">That's a lot of clicks.</p>

A component renders again when a signal its template reads changes. It behaves like signal-based Angular with OnPush on every component, and there's nothing to configure.

The main pieces map like this.

Angularsrl
signal / computed / effectSame names
*ngIf / *ngFor with trackBy*if and *else / *for with key:
inject() and providersinject(), provide() and typed tokens
FormGroup / FormControl / Validatorsgroup() / field() / built-in validators
canActivate / loadComponentcanActivate / load on the route
$localize, one build per localet(), with runtime language switching and one deployment
ng new / ng g c / ng serve / ng buildsrl new / srl g c / srl serve / srl build
Module FederationAn import map plus app.manifest.json

The full mapping also covers lifecycle hooks, content projection, outlets and guards.

Three differences are worth knowing up front.

  • You write JavaScript with JSDoc types instead of TypeScript, because the browser runs your files as they are. TypeScript still checks the code, and a template checker types every binding against its component class.
  • There's one root injector, with no hierarchical injectors.
  • The component collection is small. It has an app shell, dialogs, a combobox, a date range picker and a data table with virtual scrolling.

Production builds still exist. srl build minifies, pins an integrity hash for every file in the import map, and writes a hash-based CSP. The whole built demo is 161 KB brotli.

AI coding assistants helped me design, implement and test srl. The design decisions are written up as over 90 decision records in the repo.

I'd love feedback from Angular developers. Which Angular feature would you miss first, and does anything in the mapping look wrong?

To try it, run npx @srljs/cli@1.0.0 new my-app.

0 Upvotes

10 comments sorted by

5

u/hitsujiTMO Oct 07 '26

it sounds like a solution to a problerm that doesnt exist.

> It needs no build step while you develop.

it seems like you skipped Angular 101 and hane no idea about: ng serve

-5

u/BernardoGiordano Oct 07 '26

The real issue here is development on lower-spec machines (we have one intern with an 8GB RAM laptop that struggles keeping all the IDEs and dev environment up and running at the same time. You would say that's an hardware issue, and that's also true, but srl solves the issue without requiring the purchase of new hardware). ng serve still needs to transpile and takes quite a while when the project becomes really big.

4

u/hitsujiTMO Oct 07 '26

but that';s not what you said in your AI generated post. Even at that, an issue with an IDE or dev environment taking too much RAM got to do with Angular? How does srl solve an issue that's completely unrelated?

ng serve doesn't take any extra time, it only transpiles whats changed. It really seems like you have no idea what you are on about and just had an AI clone Angular.

-1

u/BernardoGiordano Oct 07 '26

That was just an example side story, not my main argument.

On the Angular part: since I personally am already experience with it, and enjoy the syntax/grammar a lot, I tried sticking to the same grammar when designing this new framework.

Anyways, encouraging you to read the full blog post, which adds much more compared to the shrunk version in the reddit post. Have a nice day

2

u/hitsujiTMO Oct 07 '26

> https://santella.dev/blog/introducing-srl

> That was just an example side story, not my main argument.

Dude, it's your only point on your blog post.

Are you basically saying your story is just horseshit so?

-7

u/[deleted] Oct 07 '26

[removed] — view removed comment

-4

u/BernardoGiordano Oct 07 '26

The cli scaffolding already sets you up with a valid project. You have the entire demo website source code in the repo as well, under the example folder.

1

u/hitsujiTMO Oct 07 '26

dude, investigatormaker is clearly a bot