
Product
PHP and Composer Support Is Now in Beta
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.
@kaiord/cli
Advanced tools
Command-line interface for Kaiord workout file conversion. Convert workout files between FIT, KRD, TCX, and ZWO formats with ease.
Install globally using npm or pnpm:
npm install -g @kaiord/cli
or
pnpm add -g @kaiord/cli
After installation, the kaiord command will be available globally.
Convert workout files between different formats.
kaiord convert --input workout.fit --output workout.krd
kaiord convert --input workout.fit --output workout.krd
kaiord convert --input workout.krd --output workout.fit
Convert multiple files using glob patterns:
kaiord convert --input "workouts/*.fit" --output-dir converted/
Override automatic format detection:
kaiord convert --input data.bin --input-format fit --output workout.krd
Perform round-trip validation to verify data integrity.
kaiord validate --input workout.fit
Use a custom tolerance configuration file:
kaiord validate --input workout.fit --tolerance-config tolerance.json
Example tolerance.json:
{
"time": { "absolute": 1, "unit": "seconds" },
"power": { "absolute": 1, "percentage": 1, "unit": "watts" },
"heartRate": { "absolute": 1, "unit": "bpm" },
"cadence": { "absolute": 1, "unit": "rpm" }
}
You can create a .kaiordrc.json file to set default options. The CLI will search for this file in:
~/.kaiordrc.json)CLI options always take precedence over config file defaults.
Create .kaiordrc.json in your project or home directory:
{
"defaultInputFormat": "fit",
"defaultOutputFormat": "krd",
"defaultOutputDir": "./converted",
"defaultToleranceConfig": "./tolerance.json",
"verbose": false,
"quiet": false,
"json": false,
"logFormat": "pretty"
}
fit, krd, tcx, zwo)fit, krd, tcx, zwo)pretty or structured)With a config file, you can simplify your commands:
# Without config file
kaiord convert --input workout.fit --output workout.krd --output-format krd
# With config file (defaultOutputFormat: "krd")
kaiord convert --input workout.fit --output workout.krd
CLI options override config defaults:
# Config has verbose: true, but --quiet overrides it
kaiord convert --input workout.fit --output workout.krd --quiet
# Verbose output (detailed logging)
kaiord convert --input workout.fit --output workout.krd --verbose
# Quiet mode (errors only)
kaiord convert --input workout.fit --output workout.krd --quiet
# JSON output (machine-readable)
kaiord convert --input workout.fit --output workout.krd --json
# Force pretty terminal output
kaiord convert --input workout.fit --output workout.krd --log-format pretty
# Force structured JSON logs
kaiord convert --input workout.fit --output workout.krd --log-format json
The CLI is designed with a plugin architecture that will allow third-party developers to add support for custom workout file formats without modifying the core library. See Plugin Architecture Documentation for details on the design.
Planned Features:
.kaiordrc.jsonkaiord plugins list, install, etc.)Example Plugin Usage (Future):
# Install a plugin
npm install -g @kaiord/plugin-gpx
# Use plugin format
kaiord convert --input workout.gpx --output workout.krd
See Example GPX Plugin for a complete plugin implementation example.
# Install dependencies
pnpm install
# Build the CLI
pnpm build
# Run in development mode
pnpm dev -- convert --input workout.fit --output workout.krd
# Link for local testing
npm link
kaiord --version
npm unlink -g
Run the test suites:
# Run all tests
pnpm test
# Run unit tests only
pnpm test:unit
# Run integration tests
pnpm test:integration
# Run smoke tests
pnpm test:smoke
# Run tests in watch mode
pnpm test:watch
MIT - See LICENSE file for details.
FAQs
Command-line interface for Kaiord workout file conversion
The npm package @kaiord/cli receives a total of 74 weekly downloads. As such, @kaiord/cli popularity was classified as not popular.
We found that @kaiord/cli 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.

Product
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.

Product
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.

Research
/Security News
Three compromised Rust crates pulled in a malicious dependency that downloaded and executed cross-platform malware during Cargo builds.