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

@nent/core

v0.10.8

Published

Functional elements to add routing, data-binding, dynamic HTML, declarative actions, audio, video, and so much more. Supercharge static HTML files into web apps without script or builds.

Downloads

1,051

Readme

NENT: Web Application Elements

MIT ts webnamespaces.org npm coverall jsdelivr codacy coverage

NENT

NENT is a set of Web Components that enables designers to add functionality to static HTML. No code, no build process, just simple and powerful functionality.

⚠️ This project is still under development. Expect breaking changes until the 1.0 release.

Why use NENT?

NENT is a small library that allows you to include interactivity and animations to your static HTML pages. No framework, no build process, no code needed. Just include the JS file and add the elements where you need functionality within the semantics of HTML.

Declared Functionality

Each element encapsulates a feature or functionality such as routing, dynamic content, data-merged templates, and reusable partials. Each element is lightweight and lazy-loaded, so they can be individually used without pulling in an entire framework or library.

Declarative-Applications:

  • Easy to understand and reason about
  • Easy to maintain, with reduced side-effects
  • Deterministic and testable with static-analysis
  • More approachable to a wider range of skill levels
  • FUN! HTML as it was meant to be.

Element Groups

The elements are named and grouped by their sub-system. In some cases, shared services are enabled with a system-level element.

Sub-systems add functionality to other systems. For instance, view routes can use data expressions in their content when the data system is included.

View Router: <n-views-*>

In-page routing and navigation elements with no dependencies.

  • Single Page Application Routing
  • Fast navigation between views
  • Page History
  • Route Transitions
  • Nested Layouts
  • Nav Links with Active Route detection
  • Nav Lists:
    Nav-Bars, Child Menus, and Breadcrumbs
  • Guided Navigation

Content: <n-content-*>

Independent content elements for managing the HTML on the page.

  • Content Templates
  • Deferred Content
  • Content Data Injection
  • Markdown Rendering
  • Remote HTML / Partials

App: <n-app-*>

Option elements to add robust application features to the HTML file with no dependencies.

  • App Console Logging
  • App Theme Detection & Control
  • UI Component Kit Integrations (Ionic, shoelace, Material, etc)
  • PWA Support (coming)
  • Expose Event/Actions to the DOM

Actions: <n-action-*>

Data structure elements to declare functions and their activations.

  • Declared Actions
  • Reactive Activators
  • Add Custom Async Functions

Data: <n-data-*>

Optional enhancements elements to add data-functionality and data-providers.

  • Expression Evaluation
  • Token Resolution
  • Conditional Rule Evaluation

Elements: <n-elements>

Optional enhancement to add DOM manipulation features to other NENT elements. It also enables declarative actions for DOM updates.

Audio: <n-audio-*>

Optional audio element to orchestrate declarative audio playback.

  • Voice-over Audio
  • Event Sounds
  • Background Music

Analytics: <n-analytics>

Optional action listener to delegate events and route changes to any analytics provider (minor scripting required).

  • Page Views
  • View Times
  • Custom Events

Video: <n-video-*>

Optional wrapper element to normalize video events between various video players to enable media-timed events for synchronized actions. Useful for automatically navigating when a video ends or updating the content based on the video time.

Get Started

You can spike out a new NENT project with the script reference in place, or follow the installation instructions below for an existing HTML file.

npm create @nent my-nent-app

Installation

ℹ️ Note: This is a pre-release project and is subject to breaking changes and incomplete features. Thank you for trying it out!

Add a single script reference to the page head and the library is ready to go.

The initial download is under 1K!

Each component you use is lazy-loaded when you first use one. Most are tiny, with the largest around 60k.

ℹ️ Component Sizes

CDN

<head>
  <script
    type="module"
    src="https://cdn.jsdelivr.net/npm/@nent/core/dist/esm/nent.js"
  ></script>
</head>

NPM

<head>
  ...
  <script
    type="module"
    src="~/node_modules/@nent/core/dist/nent/nent.esm.js"
  ></script>
  ....
</head>
npm i @nent/core
# or
yarn add @nent/core

Show your Love

If you use NENT and want to help spread the word, put a NENT badge on your readme or your website.

NENT badge:

NENT

Markdown

[![NENT](https://badgen.net/badge/Powered%20by/NENT/purple)](https://nent.dev)

HTML

<a href="https://nent.dev" target="_blank">
  <img alt="Powered by NENT" 
    src="https://badgen.net/badge/Powered%20by/NENT/purple"/>
</a>

Learn More

The best way to see what these elements in action, is to take a look at the documentation demo. The installable app is built using these elements in a single HTML file (with child-routes and partials lazy-loaded, as-needed).

Take the Tour

Contact

If you like the idea, join us! Or give it a star.

github

If you have requests, ideas, or feedback, reach out to us:

Twitter

Attribution

Built on the shoulders of giants

Thank you to the Ionic team and their fabulous Stencil.js SDK for the best way to build lightning-fast, native elements.

Also, thank you to the creators and contributors to all open-source efforts, but especially to the libraries we love and use in our plugin components:

changelog