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

sketch-book

v0.1.0

Published

An opinionated workflow and CLI tool for generating design documentation from typical files/artifacts of the design process and serving it up as a website. It has been designed to minimize friction between design and development through automation with th

Downloads

6

Readme

sketch-book

An opinionated workflow and CLI tool for generating design documentation from typical files/artifacts of the design process and serving it up as a website. It has been designed to minimize friction between design and development through automation with these carefully chosen features:

  • Export crisp and measurable SVGs from Sketch

  • Parse color, typography, and other specs from Sketch artboards

  • Gather reference images

  • Generate a static site from Markdown files with access to all of the above

  • Deploy to GitHub Pages or anywhere

Usage

sketch-book requires node.js to run. Install it with npm which hopefully is already in use for development in your project. Once installed, these commands are available:

$ sketchbook --help

  Usage
    $ sketchbook <file|directory|glob>... [-o output path]
    
  Any mix of Sketch, image, and Markdown files are accepted as input.
  Supported globs: https://git.io/vrluA

  Options
    -o, --output  Path to write rendered pages and prepped assets to
    -t, --template  Path to a custom Handlebars layout template

Input

Markdown

Each Markdown file is rendered to a like-named HTML file. The hierarchy of any directories is also preserved.

markdown-it parses your content following the CommonMark spec and these plugins:

You can also embed other pages like this:

{{> example_folder/markdown_file}}

Sketch Files

In addition to being a source for visual examples, your Sketch files themselves can also be parsed for color and text style specs. Make any artboards that contain examples of these exportable to SVG. Name layers containing examples as they should appear in your documentation. Parsed specs are available to render within pages using built-in templates, specified like this:

{{ colors: Example Artboard }}
{{ styles: Example Artboard }}

Browse built-in templates

Images

  • SVG
  • PNG
  • JPEG
  • GIF

Images are copied to your output path as assets for your static site. Be sure to size them appropriately for display on the web.

Recommendations

What your documentation consists of exactly is up to you! And your team, and your process. But plenty of previously published projects should help provide some precedent and ideas to get started.

GitHub

Strongly consider applying the GitHub Flow to design, this will help you collaborate with developers on your team and perhaps approach design more methodically. With Git LFS you can even commit your Sketch files!

Install git-sketch-plugin to get visual diffs and Git commands right in Sketch.

Learn how Shyp is doing this

Sketch

Symbols were made for this! Consider maintaining a library of reusable components with which you can compose documentation examples showing them in isolation, in pairs, and brought together into full mockups.


js-semistandard-style

MIT LICENSE
copyright © 2016 sparkart group, inc.