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

cyto

v0.6.2

Published

A better boilerplate generator

Downloads

34

Readme

A declarative boilerplate generator designed to help you write less meaningless code.

npm Travis Coveralls

Installation

Cyto is primarily meant to be used as a global command line tool:

> yarn global add cyto
# or `npm install -g cyto`
> cyto init

Note: If you installed yarn via homebrew, you may need to update your config. Following the steps outlined in this comment should resolve that.

Cyto can also be used as a library in any node.js application (more on this later)

Why Use Cyto?

Boilerplate generation is not a new problem. Many libraries have tried to solve this issue before, the most notable being Yeoman. Yeoman was and still is great for spinning up boilerplate projects and has undoubtedly shaped how many people develop applications today. However, I've always some issues with it's approach to boilerplate generation, the most major being that it always felt like too much work to create your own generators. The Yeoman API is dense, to say the least, and although it does a lot for you, any truly useful generator always seemed to turn into a massive codebase on it's own (check out the Yeoman Angular generator as an example). I've always felt that boilerplate generation is a hard problem to solve because every developer has slightly different preferences. If you can't create your own generator easily, you're forced to use generators written by others. These almost always do too much or too little and lock you into someone else's design choices, which can be irritating at best and more work in the long run at worst.

Cyto is different. While Yeoman solves boilerplate generation through an imperative API, Cyto is declarative. Instead of programming out what actions to take in a generator, Cyto instead requires that you declare what you need through templates. By following a simple yet powerful declarative API, these templates are smaller, easier to reuse, and simpler to reason about than Yeoman generators.

Docs

  1. Getting Started
  2. Argument Types
  3. Creating Your Own Template
  4. Composing Templates
  5. Runtime Dependencies
  6. Partial Templates
  7. Base Templates
  8. Template Options
  9. Best Practices
  10. API Reference

Contributing

  1. Read the docs on contributing here and sign the CLA
  2. Clone this repository
  3. Run yarn or npm i
  4. Run npm run watch and leave it running
  5. Run npm link in a separate terminal
  6. You should now have the cyto command installed! It will update with your latest changes while you have npm watch active

Contributors

Cyto is written and maintained by Connor Taylor @taylorc93. However, it wouldn't have been possible without the help of these amazing people:

  1. Scott Staniewicz scottstanie
    • For all of the documentation edits and user testing
  2. Alicia Payette apayette
    • For designing the awesome logo
  3. Alex Kasemir annarichardson
    • For documentation edits and user testing
  4. Anna Richardson alexkasemir
    • For user testing