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

milou

v1.2.0

Published

A static site generator for press kits

Downloads

232

Readme

🐶 Milou a static press kit generator

Screenshot

Milou is a static site generator that helps you create beautiful and informative press kits to showcase your company and products to the press. It lets you present your brand story, press releases, media assets, and key team members in a structured and engaging manner.

Features

  • Static site generation: Milou generates static HTML files, with fast-loading times, accessibility by default, and responsive design
  • YAML configuration: Simple and human-readable configuration format
  • Boilerplate templates: Let Milou give you a template configuration and fill in the blanks with your content

Showcase

Getting started

Installation

You will need a terminal and Node.js.

Install Milou using npm:

npm install -g milou

Company

Create a new directory containing your company data:

mkdir mypresskit
cd mypresskit
milou new

The root directory of your project contains your company data. You should present your company by filling in the generated data.yml file in this directory. You can use this example of a completed company data.yml file as a reference.

You should put images for your company in the images subfolder. Images named header.* (e.g. header.png or header.jpg) will be used in the page header. Files prefixed by logo (e.g. logo01.png or logo.jpg) will be put in the logos section of your page. Any other image in this folder will be included as an image in the generated press kit.

Product

Create a new sub-directory containing a product:

mkdir myproduct
cd mypresskit
milou new -t product

The product folders will contain data for your software, games, or any other kind of product. Like for companies, write your content in the generated data.yml file in this directory. You can this example file as a reference.

Images should also be included in the new images subfolder.

Build

Your project should now look like this:

📄 data.yml
📂 images/
  📄 header.png
  📄 logo.png
📂 myproduct/
  📄 data.yml
  📂 images/
    📄 header.png
    📄 logo.png
    📄 screenshot1.png
    📄 screenshot2.png

From the root directory of your project, you can now build your static site:

milou build .

This will output the static HTML, CSS, and images in the build folder. You can now start a web server to serve your content:

cd build
npx serve

Upload this folder to any static site host (GitHub pages, Netlify, CloudFlare pages, etc...) to make your press kit accessible to the whole world.

Command line reference

milou new [options] <destination>

Create an empty `data.yml` file and its `images/` folder in the <destination> folder (current working directory by default).

  There are two template types available: company (default) or product.

Options:
  -V, --version         output the version number
  -t, --type [company]  set the type of the new `data.yml` file (default: "company")
  -h, --help            display help for command
milou build [options] <entry point>

Generate a press kit based on information found in `data.yml` files.

Options:
  -V, --version               output the version number
  -o, --output [destination]  output the build folder to the [destination] (defaults to ./build) (default: "/Users/alicegg/Code/mypresskit/myproduct/build")
  -w, --watch                 watch project for changes and re-generate if needed
  -d, --dev                   add monitoring of CSS and templates in watch mode
  -p, --port [8080]           set the server port to [8080] (default: 8080)
  -D, --clean-build-folder    delete the build folder beforehand
  -T, --ignore-thumbnails     use original images in galleries instead of thumbnails (will increase pages size)
  -h, --help                  display help for command

Credits

Pixelnest/presskit.html

Milou was forked from presskit.html, made by Pixelnest Studio.

presskit()

Presskit.html was inspired by presskit(), made by Rami Ismail.