npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@srljs/core

v0.7.0

Published

Buildless reactive frontend library: signals, a template dialect checked without a compiler, routing, forms, i18n, auth and micro-frontends, plus a component collection built on it

Readme

@srljs/core

srl (source runs live) is an Angular inspired SDK for lightweight, buildless, reactive SPAs. Signals, a template dialect that is statically checked without a compiler, routing, forms, i18n, auth and micro-frontends — plus a component collection built on them.

Development stays usable without a persistent compiler. Production optimisation and static verification remain optional, deterministic steps.

Full documentation, the guides and the decision records are in the repository.

Two ways to install it, and they are not the same shape

A browser with an import map — what this library is for

Nothing is bundled and nothing is compiled. Serve the package's two directories on your origin and paste the import map fragment it publishes.

node_modules/@srljs/core/lib/          ->  /lib/
node_modules/@srljs/core/components/   ->  /components/
<script type="importmap">
  <!-- the contents of node_modules/@srljs/core/lib/importmap.json -->
</script>
<script type="module" src="/src/main.js"></script>

The fragment carries the integrity hashes of the vendored runtime dependencies, computed from the bytes in lib/vendor, so a page gets the library's own map rather than a copy somebody typed. Source then imports the way the library itself does:

import { defineComponent } from '@core/elements/component.js';
import { SignalElement } from '@core/elements/signal-element.js';
import { UiTable } from '@components/data/ui-table.js';

Node or a bundler

No import map exists, so the bare prefixes above resolve to nothing. Two pre-resolved bundles are published for that case:

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

@srljs/core/components imports @srljs/core rather than inlining it, so one page holds one custom element registry. Minified builds are @srljs/core/dist/srl-core.min.js and @srljs/core/dist/srl-components.min.js; each imports the minified other.

Component templates are inlined into the components bundle, so a bundled application makes no template request. The buildless path fetches each .html beside its module instead, and both run the same compiler over the same bytes.

Types are not published as .d.ts. The sources are annotated in JSDoc against the @core/ prefixes, and this package publishes the table that resolves them:

{
  "extends": "@srljs/core/tsconfig.base.json",
  "include": ["web/**/*.js"]
}

Extend it from the root of your repository and @core/… resolves for tsc where it resolves for the browser, from one declaration rather than a copy. That covers the buildless path. The bundles above are still untyped: a rolled-up .d.ts needs the same resolution problem solved again for the type layer.

A component, end to end

import { defineComponent } from '@core/elements/component.js';
import { SignalElement } from '@core/elements/signal-element.js';

export class UsersPage extends SignalElement {
  get rows() { return inject(USER_SERVICE).users; }
  reload() { void inject(USER_SERVICE).reload(); }
}

await defineComponent({
  tag: 'users-page',
  element: UsersPage,
  module: import.meta.url,   // the template is this module's sibling .html
  uses: [UiCard],            // the elements this template names, as classes
});
<h1>{{ t('users.title') }}</h1>
<button (click)="reload()">{{ t('users.reload') }}</button>

<ui-card *for="user of rows; key: user.id">{{ user.name }}</ui-card>

Runtime dependencies

Two, declared as dependencies and also committed into lib/vendor so the buildless path needs no install: lit 3.3.3 (BSD-3-Clause) and @preact/signals-core 1.14.4 (MIT). lib/vendor additionally carries @tailwindcss/browser 4.3.3 (MIT) for development pages that compile utilities in the browser; nothing imports it. Notices are in lib/vendor/LICENSES.md and provenance in lib/vendor/provenance.json.

License

MIT. See LICENSE.