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

0ty

v1.1.3

Published

A Zero-Config Static Site Generator

Downloads

268

Readme

0ty: A Zero-Config Static Site Generator

0ty is a static site generator that (hopefully) requires no fuss outside of installing 0ty and deploying your static site.

There is nothing to configure. Write your content in Markdown then run 0ty on it. 0ty will spit out a styled website with a navbar based on your content.

Example

Suppose you have a directory personal-website containing Markdown, images, etc.

personal-website/
├── about.md
├── image.jpg (This image is linked in the about.md file.)
├── blog/
│   ├── bar.md
│   └── foo.md
└── index.md

If personal-website is in your current working directory, you can enter the command npx 0ty personal-website site, it will spit out the following site directory:

site/
├── about/
│   ├── image.jpg
│   └── index.html
├── blog/
│   ├── bar/
│   │   └── index.html
│   ├── foo/
│   │   └── index.html
│   └── index.html
├── index.html
└── lemur.css (This is the styling that 0ty provides.)

Requirements

  • Requires Node.js. (0ty was built and tested using Node.js version 16.15.1.)

Installation

  • Install in your project: npm install 0ty
  • Install globally: sudo npm install --global 0ty

Setting up a 0ty NPM project

  • Initialize your NPM project: npm init.
  • Install 0ty: npm install --save-dev 0ty.
  • Make a src directory, put your Markdown etc. in there.
  • Install http-server so you can serve your built site: npm install --save-dev http-server.
  • Add the following to your package.json:
  "scripts": {
    "serve": "http-server site",
    "0ty": "0ty src site && npm run serve"
  }
  • When you are ready to preview your site, enter npm run 0ty.

Usage

Run on a directory

npx 0ty <input-directory>

Optionally supply an output directory: npm 0ty <input-directory> [output-directory]

Run on a single file

npx 0ty <input-file>

Optionally supply an output directory: npx 0ty <input-file> [output-directory]

Docs

For users

For devs