ssbc / ssb-fixtures

Generate a simulated .ssb folder
10 stars 1 forks source link

ssb-fixtures

A generator of fake ("Lorem ipsum") .ssb databases.

npx ssb-fixtures --messages=1000 --authors=100

Usage

ssb-fixtures [opts]

Options:
  --help            Show help                                          [boolean]
  --version         Show version number                                [boolean]
  --seed            String for deterministic generation
  --messages        Num of msgs to generate                     [default: 10000]
  --authors         Num of feeds to generate                      [default: 150]
  --outputDir       Directory for the output fixture           [default: ./data]
  --slim            Keep only essential flume files    [boolean] [default: true]
  --allkeys         Output all secret key files       [boolean] [default: false]
  --followGraph     Output follow-graph.json too      [boolean] [default: false]
  --indexFeeds      Percentage (0–100) of authors to write index feeds
                                                                    [default: 0]
  --indexFeedTypes  Comma-separated msg types for indexes
                                                      [default: "about,contact"]
  --report          Create a report.md file in the fixture       [default: true]
  --latestmsg       1-based index position of the LATESTMSG
  --progress        Print progress report to stdout   [boolean] [default: false]
  --verbose         Print all generated msgs to stdout          [default: false]

Features

Versioning

This does not follow SemVer. That's because we want to version the datasets primarily, not the code that produces the dataset. This is how we update versions M.m.p:

TODO