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

rx7

v2.0.1

Published

rx7.js is a small and lightweight library for React. rx7.js provides you great features as t7.js.

Downloads

1

Readme

rx7.js

Component, just a simple function.
State, just a simple object.

Overview

rx7.js is a small and lightweight library for React. rx7.js provides you great features as t7.js .

t7.js:

t7.js is a small, lightweight JavaScript template library that compiles ES2015 template strings into virtual DOM objects.

Template strings allow for JavaScript expressions to be embedded within literal strings. With that in mind, it made logical sense to build a small library around them to assist developers wanting to work with virtual DOM frameworks without the overhead of learning a new language. t7 does not introduce new syntax into the mix like other templating engines do, it simply uses pure JavaScript and HTML.

t7 provides designers and developers with a way to create awesome templates that anyone with JavaScript knowledge can easily understand. Long gone are the days of having to learn something like Mustache, Handlebars, Jade or Underscore.

Unlike JSX, t7 relies exclusively on ES 2015 features, so you can use any ES 2015 compliant build tools, linters, IDEs or syntax highlighting schemes, without worrying about transpiling JSX.

Installing

rx7.js fully supports in-browser, NodeJS (, Electron) , Browserify... usage. If you are using rx7.js in your browser, simply include the script:

Browser

<script src="rx7.js"></script>

Or use CDN:

<script src="https://unpkg.com/rx7@latest/rx7.js"></script>

NodeJS, etc.

Copy rx7.js your PC, or run the following:

npm install rx7

Simply use the rx7.js module as you would any other module:

const rx7 = require("./rx7.js");

Usage

See attached sample HTML files. This samples make sense to you if you are a React user.

Note

I provided you the function it looks like Redux until rx7.js-v1.0.
However React v16.8 includes a stable implementation of React Hooks. So I decided to remove that from rx7.js-v2.0. I recommend React Hooks! Of course you can use v1.0 branch if you want.

Contribution

  1. Fork it
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create new Pull Request

License

MIT