SkillAgentSearch skills...

Sifrr

:zap: Set of tiny, independent libraries for creating modern and fast webapps with javascript/typescript

Install / Use

/learn @sifrr/Sifrr
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<h1 align="center"> <img src="./logo/sifrr-logo.svg" width="256" alt="sifrr" name="sifrr"> </h1> <p align="center"> <a href="https://github.com/sifrr/sifrr/blob/master/LICENSE"><a href="https://opencollective.com/sifrr-oc" alt="Financial Contributors on Open Collective"><img src="https://opencollective.com/sifrr-oc/all/badge.svg?label=financial+contributors" /></a> <img src="https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square" alt="GitHub license" /></a> <a href="https://circleci.com/gh/sifrr/sifrr"><img alt="CircleCI (all branches)" src="https://img.shields.io/circleci/project/github/sifrr/sifrr/master.svg?logo=circleci&style=flat-square" /></a> <a href="https://www.npmjs.com/package/@sifrr/dom"><img src="https://img.shields.io/npm/v/@sifrr/dom.svg?style=flat-square" alt="npm version" /></a> <a href="./misc/CONTRIBUTING.md"><img src="https://img.shields.io/badge/PRs-Welcome-green.svg?style=flat-square" alt="PRs Welcome" /></a> <a href="https://app.fossa.com/projects/git%2Bgithub.com%2Fsifrr%2Fsifrr?ref=badge_small" alt="FOSSA Status"><img src="https://app.fossa.com/api/projects/git%2Bgithub.com%2Fsifrr%2Fsifrr.svg?type=small"/></a> <a href="https://coveralls.io/github/sifrr/sifrr?branch=master"><img src="https://img.shields.io/coveralls/github/sifrr/sifrr.svg?style=flat-square" alt="Coverage Status" /></a> <a href="https://dependabot.com/"><img src="https://badgen.net/badge/Dependabot/enabled/green?icon=dependabot" alt="Dependabot badge" /></a> <a href="https://lgtm.com/projects/g/sifrr/sifrr/alerts/"><img alt="LGTM" src="https://img.shields.io/lgtm/grade/javascript/g/sifrr/sifrr.svg?logo=lgtm&style=flat-square&logoWidth=18" /></a> </p> <p align="center"> <a href="https://sifrr.github.io/sifrr/">Documentation</a> | <a href="./CHANGELOG.md">Changelog</a> | <a href="./misc/CONTRIBUTORS">Contributors</a> | <a href="./misc/CONTRIBUTING.md">Contributing guidelines</a> | <a href="./misc/CODE_OF_CONDUCT.md">Code of Conduct</a> </p>

sifrr is a set of tiny, customizable, independent libraries for creating modern and fast webapps using JavaScript.

Repository Info

This repository is a monorepo managed using yarn workspaces. This means there are multiple packages managed in this codebase, even though they are published to NPM as separate packages. They will always have same latest version and are released together.

Note that for 0.x releases of this library, the API is not considered stable yet and may break between minor releases. After 1.0, Semantic Versioning will be followed.

Packages

Browser (VanillaJS)

| Package | Description | NPM | Documentation | Tests | | :------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------- | :-----------------------------------------------: | | sifrr-dom | Small Library to build UIs with custom elements | npm version | Doscify | OK | | sifrr-template | :zap: Fast HTML-JS Templating engine used in sifrr-dom | npm version | Doscify | OK | | sifrr-fetch | Wrapper library for Browser fetch API can be used in node too | npm version | Doscify | OK | | sifrr-route | Routing for sifrr-dom | npm version | Doscify | OK | | sifrr-serviceworker | Service worker wrapper library | npm version | Doscify | OK | | sifrr-storage | Browser persisted storage library (2kb alternate to localforage) | npm version | Doscify | OK |

sifrr-dom, sifrr-template, sifrr-fetch, sifrr-serviceworker, sifrr-storage can be used independently. sifrr-route is a sifrr-dom element, hence it should be used with sifrr-dom.

Server (NodeJS)

| Package | Description | NPM | Documentation | Tests | | :---------------------------------------------- | :----------------------------------------------------- | :------------------------------------------------------------------------------------------------------------ | :------------------------------------------------------------------------------------------------------------------------------------- | :---------------------------------------: | | sifrr-ssr | Server side pre-rendering using puppeteer with caching | npm version | Doscify | OK | | sifrr-server | Fast HTTP + WebSockets server | npm version | Doscify | OK |

Usage

All the packages can be used with node, es6 modules, and are compatible with bundler of your choice (rollup, webpack, browserify)

commonJS (node)

const { Element } = require('@sifrr/dom');

ES6 modules (import)

import { Element } from '@sifrr/dom';

Browser distributions (browser packages only)

For eg.

<script src="https://unpkg.com/@sifrr/dom@{version}/dist/index.iife.js"></script>
// for v0.0.9
<script src="https://unpkg.com/@sifrr/dom@0.0.9/dist/index.iife.js"></script>
// this sets window.Sifrr.Dom as sifrr-dom, same for other packages

Packages that have tests have a working example of that package in test/public folder

Node support (server packages and development)

Sifrr officially supports node v20, v22 (LTS), v24. Other versions might work.

Browser Support (browser packages)

Sifrr browser packages officially supports these browser versions (for dist files):

| Browser | Version | | :-------------------- | :------ | | Chrome | >= 55 | | Android Chrome | >= 55 | | Firefox | >= 63 | | Android Firefox | >= 63 | | Opera | >= 42 | | Safari | >= 10.1 | | Safari (iOS browsers) | >= 10.1 |

Individual libraries may support older versions too with polyfills listed in docs, or by bundling it with polyfills using babel etc.

Approximately amounts to ~90% of total worldwide browser usage.

To support mini browsers (opera mini, uc browser etc.),

Related Skills

View on GitHub
GitHub Stars335
CategoryDevelopment
Updated3mo ago
Forks23

Languages

HTML

Security Score

97/100

Audited on Dec 14, 2025

No findings