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 🙏

© 2024 – Pkg Stats / Ryan Hefner

crs-binding

v0.0.260

Published

zero dependency binding engine

Downloads

48

Readme

crs-binding

This is a dependency free binding engine for web client development.
The focus is on web technology standards as far as possible.

  1. Making use of ES6+ ish syntax
  2. Using HTML5 templates
  3. Web component support either vanilla or using bindable element.

A core focus of crs-binding is to manage binding or context data, responding to those context changes.
There is a clear separation between component properties and binding data so that they can operate in isolation of each other.

Please note that crs binding is still under active development as we are using it in an enterprise scale application.
Changes are made as we require new features or discover usability issues and bugs.
At this point of time the binding engine is stable.
We do not anticipate any breaking changes though more features will be added.

Installing

npm install crs-binding@latest

Documentation

Documentation comes in two main forms.

  1. Written Documentation
  2. Sample Application

The sample application is opensource but also provides links per sample to source for you to review.

Testing

Tests are written in both unit and puppeteer tests. Unit testing are used for core mechanics but DOM features are tested using puppeteer.

For the puppeteer tests to run you must have an active server running on port 8000.

Getting Started

One of the easiest ways to get started is to create a sample application where everything is setup for you.

Here are two github templates you can use.

  1. spa starter
  2. application starter

The sample application uses the application starter.
The difference between the two is that the application starter has a menu included.

Once on your hard drive, remember to run npm install in the commandline to install all the dependencies.

Install and using

If you don't want to use an existing template, you can easily set up your own project.

  1. install crs binding using npm npm install crs-binding@latest
  2. include it in your project <script type="module" src="./node_modules/crs-binding/crs-binding.js"></script>

Once you have included the library, crsbinding is registered on globalThis for usage.
You can look at the sample application for details.

Package

When installing crs binding you will notice that the library is bundled into one file but not minified.
This gives the end user a bit of flexibility around how they want to handle deploying crs binding with their application.

Other interesting opensource libraries

  1. crs router
  2. crs schema