4.0.1 • Published 3 years ago
ssb-fixtures v4.0.1
ssb-fixtures
A generator of fake ("Lorem ipsum") .ssb databases.
npx ssb-fixtures --messages=1000 --authors=100Usage
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
- Distribution of message types follows a real world distribution
- Distribution of messages per author follows the Pareto distribution with α=2
- Generates
postmsgs - Generates
aboutmsgs - Generates
votemsgs - Generates
contactmsgs - Generates private
postmsgs - Oldest msg is always
type: postand contains the text "OLDESTMSG" - Most recent msg is always
type: postand contains the text "LATESTMSG" - Can generate an "extended" fixture
npx ssb-fixtures --seed=foo --messages=1050 --authors=100 --latestmsg=1000contains 50 more new messages more thannpx ssb-fixtures --seed=foo --messages=1000 --authors=100
- Can generate meta feeds and index feeds
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:
M: updated when the dataset changes even when parametersseed,messages,authorsremain the samem: updated when the source code and CLI get breaking changes or new features, i.e. noticeable changesp: update when the source code and CLI receive bug fixes
TODO
- Support
npmandnpx(it installs multiple versions of mock-monotonic-timestamp, messing up the mutable counter) - Generate channel messages
- Private threads (currently all private messages are "root")
4.0.1
3 years ago
3.0.5
3 years ago
3.0.4
4 years ago
3.0.3
4 years ago
3.0.2
4 years ago
3.0.1
4 years ago
3.0.0
4 years ago
2.6.1
4 years ago
2.6.0
4 years ago
2.5.2
4 years ago
2.5.3
4 years ago
2.5.0
4 years ago
2.5.1
4 years ago
2.4.1
4 years ago
2.4.0
4 years ago
2.3.1
4 years ago
2.3.0
5 years ago
2.2.0
5 years ago
2.1.0
5 years ago
2.0.0
5 years ago
1.0.0
5 years ago