@le-pepe/model-forge
v1.0.16
Published
Production-ready CLI tool for hardware detection and publishing
Downloads
544
Readme
ModelForge
A production-ready CLI tool for hardware detection and publishing system specifications.
Features
- Hardware Detection: Automatically detects CPU, RAM, GPU, and OS information
- NVIDIA GPU Support: Detects NVIDIA GPUs and CUDA availability via nvidia-smi
- Capability Detection: Identifies AVX/AVX2/AVX512 CPU capabilities
- Interactive CLI: Clean, colored terminal output with spinners
- API Publishing: Optional publishing to remote API
Installation
npm install -g model-forgeOr run directly with npx:
npx model-forge scanUsage
Basic Scan
model-forge scanOutput:
✔ Hardware analyzed
CPU: Ryzen 7 5800X (16 cores)
RAM: 32 GB
GPU: RTX 3070 (8 GB VRAM)
OS: WindowsJSON Output
model-forge scan --jsonSkip Confirmation
model-forge scan --yesSilent Mode
model-forge scan --silentOptions
| Flag | Description |
|------|-------------|
| --json | Output raw JSON only |
| --yes | Skip confirmation prompt |
| --silent | Minimal output |
Development
# Install dependencies
npm install
# Build
npm run build
# Run locally
node dist/bin.js scan
# Link for global testing
npm linkRelease Workflow
# Patch release
npm run release:patch
# Minor release
npm run release:minor
# Major release
npm run release:major
# Custom release (with publish)
node scripts/release.js --minor
# Release without publishing
node scripts/release.js --patch --no-publishProject Structure
model-forge/
├── bin/ # CLI entry point
├── dist/ # Built output
├── scripts/ # Build & release scripts
├── src/
│ ├── index.js # CLI commander setup
│ ├── hardware.js # System information collection
│ ├── normalize.js # Data normalization
│ ├── display.js # Terminal output
│ ├── prompt.js # Interactive prompts
│ └── api.js # API integration
├── package.json
└── CHANGELOG.mdLicense
MIT
