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

fudgel

v1.4.0

Published

Minimalist web component library to take the pain out of automatic updates.

Downloads

138

Readme

Fudgel

Want to investigate web components but don't like the amount of overhead needed to add and remove elements? Feel like making a custom element that can work with any framework, yet shudder when you think of the heavy lifting that's required to automatically update text shown in the browser? Need a reason to reduce the amount of code overhead while still feeling a sense of relief when you realize that other tools are doing the majority of the work?

Introducing Fudgel: Write less. Do more.

This lightweight (under 5k minified and gzipped) library gives you many of the powerful features of today's frameworks without the annoyance of the bulk. No build system is required; you can write plain JavaScript. This fully supports tree shaking, TypeScript, and augmentation as your needs grow.

For detailed information and live examples, check out the documentation site. Offline? Hopefully you were able to install dependencies with npm install while you were online, then use npm run start to view the documentation locally.

Upgrading

  • 1.3.0
    • Updated the build scripts to produce ES6-compatible code without private fields. The typical # prefix is now replaced with µ during minification and after the identifiers have been mangled. This opens up more browsers to the power of Fudgel.
  • 1.2.0
    • Went back to shadow DOM styles, so change :scope to :host in your styles. This will automatically be changed to work if your element only uses light DOM.
    • Initialization of the slot-like custom element (using any name) will automatically register it for use for all light DOM elements. You no longer need to call slotInit() for slots to work in light DOM components.
  • 1.0.0
    • In order to work with Content-Security-Policy settings, function generation using new Function() has been removed. A new expression parser is added, so your bindings now will change. Remove this and $scope from your templates and everything should work. Properties will now be looked up in $scope first and fallback to this (the controller) if not found. For example, {{this.person.firstName}} becomes {{person.firstName}} and {{this.update($scope.key, $scope.value, true)}} becomes {{update(key, value, true)}}.