devonthesofa_obsidian-note-.../scripts
2025-05-08 11:27:29 +02:00
..
generate-test-vault.ts chore: add script that generates the test vault 2025-05-08 11:27:29 +02:00
README.md chore: add script that generates the test vault 2025-05-08 11:27:29 +02:00

Installation and Usage

  1. Install dependencies:
    npm install commander
  1. Install tsx for executing TypeScript directly:
    npm install -g tsx
  1. Run the script:
    tsx generate-test-vault.ts --count 40000 --output ./test-vault

Script Options

  • --count or -c: Number of notes to generate (default: 40000)
  • --output or -o: Output directory path (default: ./test-vault)
  • --tag-prefix or -t: Status tag prefix (default: obsidian-note-status)
  • --depth or -d: Maximum folder depth (default: 5)
  • --max-per-folder or -m: Maximum files per folder (default: 200)

Performance Considerations

The script creates a realistic vault structure with:

  • Multiple folder levels
  • Random distribution of notes across folders
  • Variety of statuses including single and multiple status notes
  • Varied note content length and structure
  • Proper frontmatter format matching your plugin's expectations

This will let you test real-world performance issues with your plugin without needing to manually create thousands of notes.