npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

plottoriffic

v2.1.0

Published

Generate plots based on Plotto: A New Method of Plot Suggestion for Writers of Creative Fiction

Readme

Plottoriffic

Generate plots based on Plotto: A New Method of Plot Suggestion for Writers of Creative Fiction. This work was helped immensely by the Plotto GitHub project.

Install

Plottoriffic uses ES6 features. If you need it in ES5 babel or some other transform would come in handy. Open a ticket if you don't know how to do that and I may add the translation to the project.

npm install plottoriffic

Usage

const PlotGenerator = require('plottoriffic');
//specifying a specific seed is helpful for testing
const gen = new PlotGenerator({seed: 20170802, flipGenders: true}); //params optional. random values used if missing
//if you didn't pass a seed get the default for test reproduction

let plot = 'Seed:' + gen.seed + '\n\n' + gen.generate();

Output

Seed:20170802

Enterprise / Deliverance: Seeking to Save a Person who is Accused of Transgression

A Person Subjected to Adverse Conditions

A has seen aer spouse, B, secretly as ae thought, exchange a pair of muddy shoes for the clean shoes of SN  A’s evident purpose is to shift the responsibility for a crime to the shoulders of innocent SN

B, spouse of A, vanishes mysteriously  B, spouse of A, and A-3, both vanish mysteriously at the same time  Gossip has it that B, spouse of A, has eloped with A-3

A learns that aer son, SN, is suspected of having committed a crime  A knows that aer son, SN, is innocent of the crime of which ae is accused, and ae knows who is guilty, but this knowledge makes the task of protecting SN dangerous and difficult

Undertakes a role that leads straight to catastrophe.

Character Map

Symbol | Role | Symbol | Role | Can FlipGenders? :-------|:----------|:-------|:----------|-------: A |male protagonist |B |female protagonist | yes A-2 |male friend of A |B-2 |female friend of B | yes A-3 |male rival or enemy of A |B-3 |female rival or enemy of B | yes A-4 |male stranger |B-4 |female stranger | yes A-5 |male criminal |B-5 |female criminal | yes A-6 |male officer of the law |B-6 |female officer of the law | yes A-7 |male inferior, employee |B-7 |female inferior, employee | yes A-8 |male utility symbol |B-8 |female utility symbol | yes A-9 |male superior, employer, one in authority |B-9 |female superior, employer. one in authority | yes F-A |father of A | F-B |father of B | M-A |mother of A |M-B |mother of B | BR-A |brother of A |BR-B |brother of B | SR-A |sister of A |SR-B |sister of B | SN-A |son of A |SN-B |son of B | D-A |daughter of A |D-B |daughter of B | U-A |uncle of A |U-B |uncle of B | AU-A |aunt of A |AU-B |aunt of B | CN-A |male cousin of A |CN-B |female cousin of B | NW-A |nephew of A |NW-B |nephew of B | NC-A |niece of A |NC-B |niece of B | GF-A |grandfather of A |GF-B |grandfather of B | GM-A |grandmother of A |GM-B |grandmother of B | SF-A |stepfather of A |SF-B |stepfather of B | SM-A |stepmother of A |SM-B |stepmother of B | GCH-A |grandchild of A |GCH-B |grandchild of B | BR |brother | SR |sister | SN |son | D |daughter | CN |cousin | CH |a child | AX |a mysterious male person, or one of unusual character | BX |a mysterious female person, or one of unusual character | X |an inanimate object, an object of mystery, an uncertain quantity |

1928 and Civil Rights Discrepancies

Plotto was written in 1928 decades before the civil rights era in the US. Therefore the generated plots may seem to favor males and have some references to race.

Protagonist Gender

Plottoriffic, by default, has a 50% chance of flipping the protagonist roles. The gender pronouns he, she, him, her, and his have been replaced (somewhat crudely since his and her are both used in multiple conjugations) with gender neutral pronouns to aid in making a gender switch less jarring to read. The table of character symbols is further below, but anywhere you see the symbol A refers to a male character and B refers to a female character.

The following example is a normal, male centric, plot conflict (1075b) from the book:

Book|Plottoriffic|Plottoriffic (flipped) :---|:---------|:------------------

Gender Neutral Pronouns

There are many variations out there, but the following is close enough to they, them, their, theirs that it seems like a good fit.

| | Subject | Object | Dependent Possessive | Independent Possessive | Reflexive | | |--|--|--|--|--|--|--| |Male|he|him|his|his|himself|He broke his bone. I saw him. The bone is his. He hurt himself| |Female|she|her|her|hers|herself|She broke her bone. I saw her. The bone is hers. She hurt herself.| |Neuter (inanimate)|it|it|its|its|itself|It broke its bone. I saw it. The bone is its. It hurt itself.| |Epicene (no gender, or gender unknown)|ae|aer|aer|aers|aerself|Ae broke aer bone. I saw aer. The bone is aers. Ae hurt aerself.|

There ~~may be~~ are cases where the pronouns and context do not make any sense. If you find one, please open an issue.

Citation

Cook, William Wallace. Plotto: A New Method of Plot Suggestion for Writers of Creative Fiction. Battle Creek, MI: Ellis, 1928.