The Impact Framework (IF) empowers you to calculate and understand the environmental impact of your software. It comes with a standard library of built-in plugins, referred to as builtins, and an Explorer for discovering and installing third-party plugins.
Before getting started, ensure you have the following:
- Node.js: Installed and configured.
- NPM: Comes with Node.js; ensure it’s updated.
- Access to Documentation: Familiarize yourself with the IF documentation.
- Basic YAML Knowledge: For creating and managing manifest files.
Install the latest version of IF globally using NPM:
npm install -g "@grnsft/if"
IF
provides multiple command-line tools, with the primary tool being if-run
.
-
if-run
: Execute Manifest Files- Description: Executes manifest files to calculate impact.
- Manifest File: A YAML file central to IF functionality. It contains configurations, application architecture, input data, and serves as a portable, shareable, human-readable document for audits.
- Usage:
if-run --manifest <path-to-your-manifest-file>
More about if-run here.
-
if-env
: Create Local Development Environments- Description: Sets up a local environment for running manifests.
- Usage:
mkdir my-manifest && cd my-manifest if-env
Find details in the documentation.
-
if-check
: Verify Manifests- Description: Combines the functionalities of if-env and if-diff to verify manifest files with outputs and execution sections.
- Usage:
# Check a specific manifest file if-check -m <path-to-your-manifest-file> # Check all manifests in a directory if-check -d /path-to-your-manifests
Explore more in the documentation.
-
if-csv
: Save Data to CSV- Description: Saves calculated impact data to a CSV file.
- Usage:
if-csv -m ./my-manifest.yml -p carbon
Read more in the documentation.
-
if-diff
: Compare Manifests or Outputs- Description: Compares two manifest or output files to identify differences.
- Usage:
if-diff <file1> <file2>
Details are available in the documentation.
- Built-In Plugins: Utilize IF’s built-ins for common environmental impact assessments.
- Third-Party Plugins: Visit the Explorer to discover and install third-party plugins tailored to your needs.
For assistance with any command, use the --help flag:
if-run --help
- Documentation: IF Documentation
- Third-Party Plugins: Plugin Explorer
Join the IF Community for updates and discussions:
- Mailing List: [email protected]