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

maker-link

v1.0.0

Published

Pieter Levels' (@levelsio) Maker Link as a JavaScript library.

Downloads

2

Readme

maker-link.js

JavaScript library for creating customizable Maker Links

Maker Links are small, unobtrusive buttons found at the bottom right of all of Pieter Levels' (@levelsio) websites. When clicked, the button opens a new tab and navigates to his personal website, https://levels.io. This library allows you to easily customize and add one to your own website without the need to alter your current site's code.

Download

maker-link.js is meant to be consumed in the browser using <script> tags. You have a couple of options when it comes to including maker-link.js in your project / site.

  1. Using a package manager (e.g. npm, yarn, bower, etc.):

    • npm: npm i --save maker-link
    • yarn: Coming soon!
    • bower: Coming soon!
  2. Downloading the bundled library directly:

    • Navigate to https://github.com/cedricium/maker-link.js/releases, select the most recent release and download the maker-link.min.js file
  3. Consuming maker-link.js via CDN:

    • Coming soon!

Usage

Instantiate a new MakerLink object with options containing your information to have a Maker Link added to your site.

<!-- index.html -->

<!-- Include the MakerLink library -->
<script src="path/to/maker-link.js/"></script>

<!-- Initialize MakerLink object -->
<script>
  const makerLink = new MakerLink({
    author: "cedric amaya",
    photoURL: "https://pbs.twimg.com/profile_images/1002035724076568576/8SSEXKp3_400x400.jpg",
    redirectURL: "https://cedric.tech",
    brandColor: '#007bff',
    font: 'monospace',
  });
</script>

Configuration

It's super easy to customize the look and feel of your Maker Link. By passing an options object when instantiating Maker Link, you control how Maker Link looks.

MakerLink([options])

options

Type: Object

author

Type: string

Default: 'levelsio'

Text to display inside the Maker Link (by levelsio). Typically your name (Pieter Levels) or social-media handle (levelsio).

photoURL

Type: string

Default: 'https://levels.io/levelsio.png'

URL pointing to the image you'd like displayed in the Maker Link.

If an empty string ('') is given, then the Maker Link will hide the <img> element (by applying display: none).

redirectURL

Type: string

Default: 'https://levels.io'

URL pointing to the link you want users to visit when the Maker Link is clicked.

brandColor

Type: string - (color CSS property)

Default: 'rgb(255, 71, 66)'

String containing valid CSS representing the CSS color property. Applied to the display text when hovered.

Possible Values:

A <color> can be defined in any of the following ways:

  - Using a keyword (such as 'blue' or 'transparent')
  - Using the RGB cubic-coordinate system (via the '#-hexadecimal' or the 'rgb()' and 'rgba()' functional notations)
  - Using the HSL cylindrical-coordinate system (via the 'hsl()' and 'hsla()' functional notations)

More Information: MDN color CSS property

font

Type: string - (font-family CSS property)

Default: '"Helvetica Neue", sans-serif'

String containing valid CSS representing the CSS font-family property. Any font that your site has access to is fair game for the Maker Link font option as well.

More Information: MDN font-family CSS property

Contributing

Contributions are welcome from anyone and everyone. To contribute:

  1. Fork the repo on GitHub
  2. Clone the project to your own machine
  3. Commit changes to your own branch
  4. Push your work back up to your fork
  5. Submit a Pull request so that we can review your changes

Note: Be sure to merge the latest from "upstream" before making a pull request!

License

MIT