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

materialweb

v0.0.3

Published

Material Web Freedom Version is a dependency-free single CDN bundle variation of Material Web.

Downloads

1

Readme

MWeb

It's @mateial/web, but with more freedom!

MWeb has no dependcies and comes gift-wrapped in an impossibly small ??kb CDN bundle.

To get started...

copy this

<link href="https://unpkg.com/[email protected]/dist/mw-.css" rel="stylesheet">
<script src="https://unpkg.com/[email protected]/dist/mw-.js" defer></script>

paste it

<head>
    <!-- here -->
</head>

and then you code

<mw-badge count="1"></mw-badge>

Documentation is coming soon.

About

Mweb was created because Material Web is not and will not be available to developers as a complete dependency-free package over CDN. Each component file has to be included individually or imported with JavaScript and bundled with a tool like Webpack. This falls short of the promise of Web Components.

There are other differences here too relating to Mweb's adherence to the TAC methodology, which, among other things, means Mweb leverages existing HTML elements when possible. In contrast, Material Web creates its own Custom Elements abstractions for fundamental HTML elements like <button>, <input>, and <dialog>. That pattern has several consequences:

  • It separates the developer from native HTML. This means common HTML knowledge is no longer useful, or at least immediately useful...
  • The developer now has to stop and learn if native HTML features like button's type="reset" or input's autofocus is available in Material, and if so, how to you use them.
  • The answer from libraries that do this is almost always that it's same interface as HTML, i.e. <md-button> defines type="reset" too and the implementation is often just a pass-through.
    • This is extremely wasteful for developers having to relearn and trust these mostly-the-same interfaces, e.g. unlike HTML where button is button's default type, Material surprisingly sets submit as the default
    • It's a huge waste of effort in source code development and testing. Material's button alone is 41 files of source code and tests - over 1,000 lines of code. That's not including many more files from internal dependencies for things like focus, ARIA, classes, and more.
  • Even worse, this pattern requires the library to receive pro-active maintenance alongside new web specs forever. If button gets a new type, you can't use it until Material adds support. That may come early, may come late, or may never come at all. It is a fool's errand! Similarly-flawed projects like React, with its massive funding and active contributions, still fail to do this. This is a repeat of the IE dilemma where developers couldn't use new web features or at best had to implement hacks to get them to work. Libraries that do this put themselves in a position where they effectively require a column on caniuse.com. That's terrible. Truly one of the worst anti-patterns!

Roadmap

We're gonna try to build all of it.

  • ❌ Not started
  • 🟡 In progress
  • ✅ Complete

Component | Beta | Stable ----------------------------- | :--: | :----: Button | 🟡 | ❌ FAB | 🟡 | ❌ Icon button | 🟡 | ❌ Checkbox | ❌ | ❌ Chips | 🟡 | ❌ Dialog | 🟡 | ❌ Divider | ❌ | ❌ Elevation | ❌ | ❌ Focus ring | ❌ | ❌ Field | ❌ | ❌ Icon | 🟡 | ❌ List | 🟡 | ❌ Menu | ❌ | ❌ Progress indicator (circular) | ❌ | ❌ Progress indicator (linear) | ❌ | ❌ Radio button | 🟡 | ❌ Ripple | ❌ | ❌ Select | ❌ | ❌ Slider | ❌ | ❌ Switch | ❌ | ❌ Tabs | 🟡 | ❌ Text field | ❌ | ❌ Autocomplete | ❌ | ❌ Badge | 🟡 | ❌ Banner | ❌ | ❌ Bottom app bar | ❌ | ❌ Bottom sheet | ❌ | ❌ Segmented button | ❌ | ❌ Card | 🟡 | ❌ Data table | ❌ | ❌ Date picker | ❌ | ❌ Navigation bar | ❌ | ❌ Navigation drawer | ❌ | ❌ Navigation rail | ❌ | ❌ Search | ❌ | ❌ Snackbar | ❌ | ❌ Time picker | ❌ | ❌ Tooltip | ❌ | ❌ Top app bar | ❌ | ❌

Browser support

This project aims to support the latest two major versions of browsers at the time of each release.