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

@noodle-graph/cli

v0.0.24

Published

Architecture diagram that maintains itself

Downloads

31

Readme

Noodle 🍜

Architecture diagram that maintains itself.

Noodle is an open-source project designed to simplify the process of understanding and visualizing complex system architectures. It offers automated architecture diagram generation, graph filtering, user-friendly UI features, and a friendly CLI, making it easy to deploy and use. Additionally, Noodle is reliant on the best source of truth, which is the code itself, by linking to the source code of the relationships.

Node.js CI Node.js Package


Quick start

1. Install

npm install --location=global @noodle-graph/cli

2. Add Noodle comments

Simple example

3. Create config file

Simple example

4. noodle run --open

Commands

run

noodle run

Using the scanner to search resources relationships and bundles a UI with the results.

Options

| Option | Environment Variable | Default | Description | |-|-|-|-| | --config, -c | NOODLE_CONFIG | ./noodle.json | Path to the scan configuration file. | | --output, -o | NOODLE_OUTPUT | ./noodleScanOutput | Path to the UI bundle output folder. | | --githubToken | NOODLE_GITHUB_TOKEN | null | GitHub access token. Required for GitHub resources. | | --open | - | false | Whether to open in the browser the bundled UI when finished. | | --workers | NOODLE_WORKERS | 8 | Amount of workers for scanning the files of a resource. | | --verbose | NOODLE_VERBOSE | false | Whether to print debug logs. |

Scan config file

You can find example of a config file in the basic example

| Field | Required | Description | |-|-|-| | plugins | No | List of plugin import names. See examples/basic/noodleWithPlugin.json | | resources | Yes | List of resources objects to scan or declare. |

Resource object

| Field | Pattern | Required | Default | Description | |-|-|-|-|-| | id | a-z, number, forward slash, underscore, dash. RegEx: [a-z\d-_/]+ | Yes | - | Identifier of the resource. | | name | Any string | No | The value of id | The name of the resource. | | description | Any string | No | null | Description of the resource. | | type | See UI icons | No | null | The type of the resource is deployed on | | tags | a-z, number, forward slash, underscore, dash. RegEx: [a-z\d-_/]+ | No | [] | Tags of the resource. For the UI view and filtering. | | url | null if source is config, otherwise a valid URL. | Yes, except if source is config. | null | The URL of the source to scan. | | source | github, local, config | No | github if url starts with https://, config if url is null, otherwise local. | The type of the source to scan. config sources won't get scanned. | | relationships | Relationship array | No | null | List of relationship to added regardless of scanning. |

serve

noodle serve

Serves the result of noodle run.

Options

| Option | Environment Variable | Default | Description | |-|-|-|-| | --production | - | false | Use production options: { "port": 3000, "host": "0.0.0.0" }. It will not open the browser and use default pino logger. | | --port, -p | NOODLE_PORT | 0 | The port the server will listen to. | | --host, -p | NOODLE_HOST | 127.0.0.1 | The host the server will listen to. | | --scanOutputDir | NOODLE_OUTPUT | ./noodleScanOutput | The output directory of noodle run. |

Plugins

You can enrich the resource object in the output with plugins.

See examples/basic/noodleWithPlugin.json for example.

For implementing a plugin, see the CONTRIBUTING.md file.

Contributing

See CONTRIBUTING.md