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

xml-to-linkpage

v1.1.2

Published

Generate a linktree styled landing page from an XML file.

Downloads

475

Readme

This app allows the user to turn a formatted XML file into a static Linktree style webpage

Install

  • Run npm i -g xml-to-linkpage to install globally

Bootstrap

  • Run xml-to-linkpage init to bootstrap new project

Usage

  • Open terminal to directory with xml file
  • Run xml-to-linkpage
  • Place your favicon and logo inside the generated /img folder
    • Favicon must be named favicon.png
    • Logo must be named logo.png

CLI Options

  • xml-to-linkpage -h to display help message
  • xml-to-linkpage <input-dir> <output-dir> to use directories other than the current directory

Exmaple XML

<page>
    <title>Title Bar</title>
    <handle>Handle</handle>
    <links>
        <link url="https://google.com">Google</link>
        <link url="https://Youtube.com">Youtube</link>
    </links>
    <styles>
        <var name="--theme-background-main">#ffffff</var>
        <var name="--theme-background-link-btn">#dddddd</var>
        <var name="--theme-color-main">#000000</var>
        <var name="--theme-color-link-btn">#000000</var>
    </styles>
</page>

Options

Add defaultIcons="false" to page if you do not want to use the default icons included in the package. Make sure to supply your own image files instead.

<page defaultIcons="false"></page>

Background Images

Create background images by using the img tag

<img>
    <var name="--background-img-main">./img/background-img-main.jpg</var>
    <var name="--background-img-link-btn" repeat="no-repeat" size="contain">./img/background-img-main.jpg</var>
    <var name="--img-copy">./img/copy.png</var>
    <var name="--img-clipboard">./img/clipboard.png</var>
</img>

Options

  • Tag Content - Sets the background-img url for either background
  • repeat - Sets the background-repeat value for either background
  • size - Sets the background-size value for either background
<var name="--background-img-main" repeat="no-repeat">./img-main.png</var>
<var name="--background-img-link-btn" size="contain">./img-link.png</var>

All CSS Vars

<var name="--font-size-small">1.3em</var>
<var name="--font-size-large">2em</var>
<var name="--spacing-xs">4px</var>
<var name="--spacing-small">12px</var>
<var name="--spacing-medium">16px</var>
<var name="--spacing-large">24px</var>
<var name="--spacing-xl">10vh</var>
<var name="--font-family-primary">Inter, sans-serif</var>
<var name="--font-weight-header">400</var>
<var name="--font-weight-link">400</var>
<var name="--theme-background-main">#ffffff</var>
<var name="--theme-background-link-btn">#dddddd</var>
<var name="--theme-copy-btn-hover">#ffffff3b</var>
<var name="--theme-color-main">#000000</var>
<var name="--theme-color-link-btn">#000000</var>