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

syp

v0.0.0

Published

Sort Your Projects

Downloads

1

Readme

Sort Your Projects

Join the chat at https://gitter.im/NelsonCrosby/syp

This project is pre-alpha, and not ready for use. If you would like to help out, check out the repo at https://github.com/NelsonCrosby/syp and ask what needs doing at https://gitter.im/NelsonCrosby/syp

If you're anything like me, then you're trying to find a way to keep your projects organized. You've probably come up with a system of directories and such, using the filesystem to help you organize. And if you're like me, then you have probably revised this system so many times that you can't remember where you had a project last time you used it, and have to search through a ton of different directories looking for it.

I ended up getting frustrated at this system. I threw together a CLI tool in Python that was designed to keep a track of my projects, give them some extra info, and allow me to search them.

It was a good start, but the existing code-base wouldn't stand the test of time. It needed an API, not just a CLI. It needed documentation. It needed a rewrite.

So, I'm rewriting it.

Usage

# Install
~$ npm install -g syp
# Install shortcut for `cd`ing into a project
~$ syp --get-bash-shortcut cdp >>~/.bashrc
~$ source ~/.bashrc
# Load an existing project into the index
~$ syp import <my_existing_project_dir>
# Create a new project
~$ syp new
Project ID: some-unique-identifier
Directory (~/Projects/some-unique-identifier):
Name: Some Project
Categories: Example
          : Some Category
          :
Description: This is an example project
~$ syp info --path some-unique-identifier
~/Projects/some-unique-identifier
# If you installed the cd shortcut:
~$ cdp some-unique-identifier
# If you are in a project directory, you don't have to specify
# the project ID to perform operations.
~/Projects/some-unique-identifier$ syp info
Some Project (some-unique-identifier)
  ~/Projects/some-unique-identifier
  Example, Some Category
  This is an example project
~/Projects/some-unique-identifier$ cd
# Delete the entire project
~$ syp rm some-unique-identifier

Format

All persistence is stored in JSON files. Any keys not recognized should be ignored. Implementations may define their own keys, which should start with X_.

Config file

The main SYP config file exists at ~/.syp-cfg.json. The following properties are available (any properties not provided should be set to their default):

| Property | Default | Type | Purpose | | --- | --- | --- | --- | | "extend" | null | String | A path to a SYP config file. The provided file should be loaded, then the current file should extend it. All indexes in an extend chain should be loaded. | | "index" | "./.syp-index.json" | String or Array of String | A path (or array of paths) to a SYP index file(s). |

Index file

SYP stores all information related to projects in index files. An index file is an Object, where the keys are Project IDs and the values are Project objects. A Project object has the following standard properties:

| Property | Default | Type | Purpose | | --- | --- | --- | --- | | "path" | (required) | String | The path to the project directory. | | "name" | null | String | A human-readable name for the project. | | "categories" | [] | Array of String | Some short, classifying strings. | | "description" | "" | String | A reminder of the purpose of the project. Shouldn't be much more than a couple of sentences. |