Generate layout.json for MSFS community packages
npm install msfs-layout-generator!downloads !npm !types !License
A tool for Microsoft Flight Simulator (MSFS) developers to automatically generate and update layout.json files for their add-ons.
!terminal
---
- Automatic Layout Generation
Scans package directories and creates layout.json with file metadata
- Watch changes in Package Directory
Scans all changes in provided directory and updates layout.json accordingly
- Manifest Integration
Automatically updates total_package_size in manifest.json
- Multiple Processing Modes
Process single packages, multiple packages, or batch operations
- Batch Processing
Interactive Windows batch file with menu system for easy use
- Flexible CLI
Command-line interface with various options for different workflows
- TypeScript Support
Fully typed API for programmatic usage
---
1. Download msfs-layout-generator.bat from the latest release
2. Place it in your desired directory
3. Double-click to run
4. Choose options from the interactive menu
``bash `
npm install -g msfs-layout-generator
---
Use your manager (npm, yarn, bun etc.) to install the package:
`bash `
npm install msfs-layout-generator `
Import the generator in your TypeScript / JavaScript projects:ts ``
import { generateLayout } from 'msfs-layout-generator';
// Process a single package
await generateLayout("F:\\fs20\\Community\\my-package");
---
Happy Flying! ✈️