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

@brixx/script

v1.2.1

Published

A free JavaScript library for creating independent web comonents (brixx) for low-code development.

Downloads

9

Readme

Brixx-Script

Brixx-Script is a free JavaScript library for creating independent web components. Smart Web Components (brixx) for websites and web applications can be created with Brixx-Script. This reduces the programming effort and project complexity for a low-code development to a minimum. Brixx web components are created with JSX (JavaScript XML) and can be used as Brixx HTML elements in HTML documents or Brixx script components in JavaScript applications and frameworks. JSX was introduced in 2014 with React and has the same syntax as E4X (EcmaScript for XML) for integrating XML into JavaScript. Brixx-Script has its origins in 1998 as LaSSiE as a platform-independent web development and was expanded in 2005 with E4X. Coinciding with the advent of JSX, E4X was marked as deprecated by the Mozilla Foundation in 2014 and consequently replaced by JSX in LaSSiE as well. LaSSiE was initially used as an integrated building block system in other libraries, but due to the great popularity and spread of JSX, it was released in December 2022 as a free JavaScript library Brixx-Script for creating Brixx web components. Brixx-Script is primarily used to create a building block oriented project architecture, but it can also be a lightweight alternative to other frameworks and libraries.

Installation

You can install the package with npm.

npm i @brixx/script

Import

You can import the package as module.

import { Brixx } from '@brixx/script'

Usage

Brixx web component in the Brixx script component file brixx-animal-list.js

const animals = ["Dog", "Cat", "Mouse"];

Brixx.element = (
<div>
  <h2>Animals</h2>
  <ul>
    {animals.map((animal) => (
      <li>
        <h3>{animal}</h3>
      </li>
    ))}
  </ul>
</div>
);

Brixx.registerElement({ name: "animal-list" });

Brixx HTML element in the HTML file index.html

<!DOCTYPE html>
<html>
  <head>
    <!-- Load Brixx-Script standalone for development -->
    <script src="https://brixx.it/@brixx/standalone/brixx.min.js"></script>
    <!-- Include the Brixx script component files for development -->
    <script type="text/babel" src="./brixx-animal-list.js" data-presets="brixx"></script>
  </head>

  <body>
    <!-- Add the Brixx HTML element -->
    <brixx-animal-list></brixx-animal-list>
  </body>
</html>

Documentation

See BRIXX.it documentation repository