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

@essential-component-toolbox/my-external-links

v1.0.7

Published

Webcomponent my-external-links following hax / open-wc recommendations

Downloads

5

Readme

my-external-links

Description

Web component for displaying social media icons which navigate a user to the link attached to them.

Links


Usage

To import into an HTML file:

<script type="module">
    import '@essential-component-toolbox/my-external-links/src/my-external-links.js';
</script>

To import into an existing JS module / web component:

import '@essential-component-toolbox/my-external-links/src/my-external-links.js';

HAX Component Instructions

DDD + Lit web component based on OpenWC toolchain. This is intended to provide the following:

  • Look good via DDD, HAX design system
  • Simple, easy to read code via Lit
  • Great workflow via OpenWC tooling + Vercel for sharing demos
  • Simplify contribution to the HAX ecosystem
  • Publish and distribute via npmjs.com

Install dependencies

  • npm install - installs dependencies so you can work

Commands

  • npm start - runs your web component for development, reloading on file changes
  • npm run build - builds your web component and outputs it in your dist directory for placement on web servers in a compiled form. Vercel automatically does this on commit to github.
  • npm run release - this will build your code, update the version, and publish it to npm for others to use

Working with your web component

  • edit /src/my-external-links.js
  • edit your 'demo' by modifying ./index.html
  • add dependencies using npm install --save @whatever/repo or editing ./package.json directly
  • if you must reference additional non-JS files, ensure you use the new URL('./my-file.jpg', import.meta.url).href syntax so that it builds correctly
  • if you add additional .js files / web components then place them under /src/
  • to improve HAX wiring edit file in /lib/my-external-links.haxProperties.json

Recommended setup

  • Load VS code in 1 window to project root
  • Browser open
  • Right click -> Inspect and open the Console to see error output

Recommended Integrated Development Environment (IDE)

Plugins

Name: lit-html
Description: Syntax highlighting and IntelliSense for html inside of JavaScript and TypeScript tagged template strings
Publisher: Matt Bierner
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=bierner.lit-html

Name: lit-plugin
Description: Syntax highlighting, type checking and code completion for lit-html
Publisher: Rune Mehlsen
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=runem.lit-plugin


Credits

Component created by Zach Dodson under the name Essential Component Toolbox.

A brighter future dreamed and developed by the Penn State HAXTheWeb initative.

Never. Stop. Innovating.