Skip to content

Latest commit

 

History

History
118 lines (82 loc) · 5.52 KB

README.md

File metadata and controls

118 lines (82 loc) · 5.52 KB

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.

example

Node.js CI Node.js Package


Quick start

1. Install

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

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