
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@loopstack/cli-module
Advanced tools
The Loopstack CLI provides commands for adding and installing packages from the Loopstack registry. It handles npm installation, source file copying, and automatic module/workflow registration in your project.
loopstack add <package>Copies the source files of a registry package into your project and registers its modules and workflows.
loopstack add @loopstack/google-oauth-calendar-example
What it does:
src/ directory into your projectdefault.module.ts)default.workspace.ts)Use add when you want full access to the source code for learning, exploring, or customizing.
Options:
| Flag | Description |
|---|---|
-d, --dir <directory> | Target directory for the copied source files. If not specified, the CLI prompts with a default based on the package name. |
-m, --module <module> | Target module file to register in (e.g. src/default.module.ts). If not specified, the CLI searches for .module.ts files and prompts if multiple are found. |
-w, --workspace <workspace> | Target workspace file to register workflows in (e.g. src/default.workspace.ts). If not specified, the CLI searches for .workspace.ts files and prompts if multiple are found. |
Example:
loopstack add @loopstack/google-oauth-calendar-example -d src/calendar -m src/default.module.ts -w src/default.workspace.ts
loopstack install <package>Installs a registry package as an npm dependency and registers its modules and workflows — without copying any source files.
loopstack install @loopstack/google-oauth-calendar-example
What it does:
import { ... } from '@loopstack/google-oauth-calendar-example')Use install when you don't need to modify the source code and want to receive updates via npm.
Options:
| Flag | Description |
|---|---|
-m, --module <module> | Target module file to register in (e.g. src/default.module.ts). If not specified, the CLI searches for .module.ts files and prompts if multiple are found. |
-w, --workspace <workspace> | Target workspace file to register workflows in (e.g. src/default.workspace.ts). If not specified, the CLI searches for .workspace.ts files and prompts if multiple are found. |
loopstack configure <package>Runs only the module and workflow registration for a package that is already installed via npm. Skips registry lookup and npm installation entirely.
loopstack configure @loopstack/oauth-module
What it does:
loopstack config from the installed package's package.jsonUse configure when the package is already in your node_modules (e.g. installed as a transitive dependency or after a manual npm install) and you just need to wire it into your project.
It supports both modes:
--dir (dependency-style): imports use the package name (e.g. import { ... } from '@loopstack/oauth-module')--dir (add-style): imports use relative paths from the copied source directory (e.g. import { ... } from './my-feature/my.module')Options:
| Flag | Description |
|---|---|
-d, --dir <directory> | Directory where source files were copied to. When provided, local module/workflow entries use relative import paths instead of the package name. |
-m, --module <module> | Target module file to register in (e.g. src/default.module.ts). If not specified, the CLI searches for .module.ts files and prompts if multiple are found. |
-w, --workspace <workspace> | Target workspace file to register workflows in (e.g. src/default.workspace.ts). If not specified, the CLI searches for .workspace.ts files and prompts if multiple are found. |
Examples:
# Dependency-style: imports from package name
loopstack configure @loopstack/oauth-module
# Add-style: imports from copied source directory
loopstack configure @loopstack/google-oauth-calendar-example -d src/calendar-example
Both add and install perform automatic module and workflow registration based on the loopstack configuration in the package's package.json.
For each module entry in the config, the CLI:
@Module() decorator's imports arrayModules can come from two sources:
add) or uses the package name (for install)For each workflow entry in the config, the CLI:
@InjectWorkflow() decorator to the workspace classLike modules, workflows can come from the package's own source or from a dependency.
Packages declare their registration config under the loopstack key in package.json:
{
"loopstack": {
"installModes": ["add", "install"],
"modules": [
{
"path": "src/calendar-example.module.ts",
"className": "CalendarExampleModule"
},
{
"package": "@loopstack/oauth-module",
"className": "OAuthModule"
},
{
"package": "@loopstack/google-workspace-module",
"className": "GoogleWorkspaceModule"
}
],
"workflows": [
{
"path": "src/workflows/calendar-summary.workflow.ts",
"className": "CalendarSummaryWorkflow",
"propertyName": "calendarSummary"
},
{
"package": "@loopstack/oauth-module",
"className": "OAuthWorkflow",
"propertyName": "oAuth"
}
]
}
}
Module entries:
| Field | Description |
|---|---|
path | Path to the module file within the package (local modules only) |
package | npm package name (dependency modules only) |
className | The module class name to import and register |
An entry must have either path (local) or package (dependency), not both.
Workflow entries:
| Field | Description |
|---|---|
path | Path to the workflow file within the package (local workflows only) |
package | npm package name (dependency workflows only) |
className | The workflow class name to import |
propertyName | The property name to use in the workspace class |
options | Optional object passed as argument to the @InjectWorkflow() decorator |
Install modes:
The installModes array controls which commands a package supports. Valid values are "add" and "install". If omitted, both modes are allowed.
add, install, and configure| Aspect | add | install | configure |
|---|---|---|---|
| Registry lookup | Yes | Yes | No |
| npm install | Yes | Yes | No (package must already be installed) |
| Source files | Copied into your project | Stay in node_modules | Stay in node_modules |
| Import paths (local entries) | Relative (e.g. ./calendar/calendar-example.module) | Package name | Package name |
--dir flag | Supported | Not applicable | Not applicable |
| Customizable source | Yes | No | No |
| Receives npm updates | No (your copy is independent) | Yes | Yes |
FAQs
The cli module for Loopstack
We found that @loopstack/cli-module demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.