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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@andi1984/back2roots

v0.10.0

Published

![GitHub](https://img.shields.io/github/license/andi1984/back2roots) ![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/andi1984/back2roots?label=Version) ![Node CI](https://github.com/andi1984/back2roots/workflows/Node%20CI/badge.svg) [![

Downloads

963

Readme

Twig + Markdown HTML Generator

GitHub GitHub tag (latest by date) Node CI Coverage Status GitHub language count GitHub code size in bytes

Run npm run start to generate the HTML files based on the Markdown files saved inside the md folder.

The HTML content of the markdown files is going to be passed as content variable to the twig template specified in the respective template frontmatter of the markdown file. If none is specified, the templates/main.twig file is used as a fallback.

The output files are saved to the dist directory.

NPM scripts

| Name | Description | | ------------- | ---------------------------------------------------------------------------------------- | | test | Self-exploratory: Run your test suite here. | | tsc | Runs the typescript compiler and checks for errors | | dev | Starts a static file server and watches for content (e.g. template) or typescript files. | | watch-content | Watches for content (template) changes | | watch | Watches for changes on the core typescript files for the static page generator itself. | | build | Builds the output static HTML files. | | assets | Task for you to generate your assets with. | | start | Build HTML files using build task and builds assets with assets task. | | release | Command to generate a new release version. |

Twig Template Variables

| Variable | Description | Example | | -------- | :--------------------------------------------------: | -----------------------------------------------------------: | | title | Title of the page | "Foo" (default: The filename) | | sites | Array of all build sites | cf. Site interface | | content | Content of the page as HTML | cf. "<h1>Hello World</h1>" | | url | The URL of the current page. | e.g. www.my-base-url.com/hello-world.html | | base_url | The base url of the page | cf. URL in env vars below | | meta | All metadata provided via frontmatter for given site | cf. {title: 'foo', template: 'bar', author: 'Max Mustermann' |

CLI Options

| Option | Alias | Description | Default | | ------- | :---: | ---------------------------------------------------------------------------------: | ------- | | --clean | --c | Flag to indicate whether distribution folder should be cleaned before every build. | false |

Environment Variables

| Variable | Description | Example | | -------- | :--------------------------------------------------------------------------------------------------------: | ---------------------------: | | URL | URL of your page | URL: https://www.google.de | | PRETTY | indicate whether hosting can handle pretty URLs (e.g. /hello/world instead of /hello/world/index.html) | PRETTY: true |

Configuration

You can configure certain parts of the system. All config files are contained within the config folder.

Hooks

| method | Description | Example | | ------------ | :------------------------------------------------------------------------: | ---------------------------------------: | | sitesSorting | Sorts the sites before any further action (e.g. generating the HTML files) | Sort by date metadata/frontmatter field. |