Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

pathfinder-society

pixelastic194MIT0.4.44

All Pathfinder Society Scenarios metadata as an npm module

readme

Pathfinder-society

This contains all the Pathfinder Society Scenarios metadata, as extracted from the PathfinderWiki. The module is automatically updated every week.

The initial goal was to build a searchable list of Pathfinder Society Scenarios, but the data has been packaged in a easy-to-use format to allow anyone to build from it.

Installation

yarn add pathfinder-society

Usage

import pathfinderSociety from 'pathfinder-society';
console.info(pathfinderSociety.stayOfExecution);
// {
//   "authors": [
//     "Alison McKenzie"
//   ],
//   "backcover": "When a petty thief named Hadge gets a lucky break and makes off with a powerful divination focus of the Pathfinder Society's masked leadership, you and your fellow Pathfinders set out to the sparsely populated Taldor frontier to find him and recover the focus. When the local governor tosses Hadge into the brutal Porthmos Prison for a minor crime, your mission suddenly becomes a jail break. Will you free Hadge and uncover the location of the focus before the gangs of Porthmos tear him apart?",
//   "coverUrl": "//cdn.paizo.com/image/product/catalog/PZOP/PZOPSS012E_500.jpeg",
//   "levels": [
//     1,
//     2,
//     3,
//     4,
//     5,
//     6,
//     7
//   ],
//   "locations": [
//     "Taldor",
//     "Sardis Township",
//     "Porthmos Prison"
//   ],
//   "npcs": [
//     "Drandle Dreng",
//     "The Inward Facing Circle"
//   ],
//   "paizoUrl": "https://paizo.com/products/btpy86nh",
//   "price": 3.99,
//   "pubcode": "PZOPSS0012E",
//   "rating": 2.3,
//   "scenarioIndex": 12,
//   "seasonIndex": 0,
//   "title": "Stay of Execution",
//   "url": "https://pathfinderwiki.com/wiki/Stay_of_Execution"
// }

Sources

Data is extracted from the Pathfinder Wiki API. Additional information is extracted from the official Paizo website (like cover art and rating).

Development

Run yarn run regenerate to update the data with the latest information extracted from the Wiki and Paizo website. This might take some time as it's making a bunch of HTTP requests. Subsequent calls use a local cache on disk.

Automation

This repository is configured to automatically publish a new version to npm every week if there is new data from the wiki.

CircleCI is configured to run the weeklyUpdate job every Tuesday morning. This will regenerate the data.json file by recrawling the wiki. If the file contains changes from the previous version, it will make a patch release and re-index the data into Algolia so the website is updated as well

changelog

0.3.30 (2020-02-19)

0.3.29 (2020-02-12)

Bug Fixes

  • git: Change commit message on weekly update (95b8226)

0.3.28 (2020-02-06)

0.3.27 (2020-01-21)

0.3.26 (2020-01-17)

0.3.25 (2020-01-17)

Features

  • ci: Fix CI scripts (67db52b)
  • ci: Index to Algolia along with release (96df444)

0.3.24 (2020-01-16)

0.3.23 (2020-01-15)

0.3.22 (2020-01-11)

Features

0.3.21 (2020-01-03)

Bug Fixes

  • ci: Attempt at fixing automated release (7add288)
  • lambda: Return 200 OK when ignored (a9abb20)

0.3.20 (2020-01-03)

0.3.19 (2020-01-03)

0.3.18 (2020-01-03)

0.3.17 (2020-01-03)

0.3.16 (2020-01-03)

0.3.15 (2020-01-03)

Features

  • ci: Use got instead of raw curl call (23ea594)

0.3.14 (2020-01-03)

Features

  • ci: Update script to use CircleCI API v2 (2ace641)

0.3.13 (2020-01-03)

0.3.12 (2020-01-03)

Features

  • ci: Add real call to CircleCI (bc01836)
  • ci: Attempt at reading secrets from netlify functions (eb99207)
  • ci: Better output of errors (872ce56)
  • ci: Scaffold Netlify functions (4c2c9cc)
  • ci: Test netlify function (f46655b)
  • circleci: Use conditions in workflows (80ccd08)
  • redirect: Prevent access to root (24c1ea2)

0.3.11 (2019-12-20)

0.3.10 (2019-12-20)

Bug Fixes

  • ci: Add git write key for release (1e00bc1)
  • ci: Add npm token for release (a3b40ba)
  • ci: Configure git so it can push when releasing (f53569b)
  • ci: Configure git with name and email (2c97bb0)
  • ci: Fix steps to GitHub Actions workflows (95da192)
  • ci: Make git changes global (2b6022a)
  • ci: Pass secret to ENV variable (52105e1)
  • ci: Rename module to release (?) (cb00185)
  • deps: Re-add octokit (d36b2a2)
  • rating: Handle pages with no ratings (b7a07eb)
  • regenerate: Re-scan all seasons (aba001a)

Features

  • ci: Add scaffolding for automated release (fe4bad8)
  • ci: Configure SSH keys for push (10c987c)
  • ci: Create an issue on build failing (34dda9a)
  • ci: Moving to CircleCI instead of GitHub Actions (0a1e35b)
  • ci: Replace placeholder with real update of data (8b7cef6)
  • ci: Run data update every week from CircleCI (1ce6267)
  • ci: Trigger a release when PR is merged (0bdc6e2)

0.3.9 (2019-12-18)

0.3.8 (2019-12-18)

Bug Fixes

  • deps: update dependency firost to v0.19.3 (1ab0b8b)

Features

0.3.7 (2019-11-26)

0.3.6 (2019-11-19)

Bug Fixes

  • npcs: Add manual location of Doorway to the Red Star (9b5a46b)

Features

  • renovate: Update deps as soon as possible (13a648b)

0.3.5 (2019-11-13)

0.3.4 (2019-11-05)

Bug Fixes

  • deps: update dependency firost to ^0.16.0 (aecdb29)

0.3.3 (2019-11-02)

0.3.2 (2019-10-23)

0.3.1 (2019-10-17)

Bug Fixes

  • actions: Try to avoid build marked as failed if no diff (e11faa9)
  • data: Exclude scenarios not yet released (90b93a4)
  • season2: Correctly read scenarios from 2nd edition (1e7c687)

Features

  • precommit: Adding lint-staged (72125c8)

0.3.0 (2019-10-05)

Bug Fixes

  • backcover: Extract text from quote (eb3dcbe)
  • data: Fix seasonIndex and some backcovers. Add ruleVersion (4042ba0)

0.2.8 (2019-10-04)

Bug Fixes

  • deps: update dependency firost to ^0.13.0 (c448d0b)

Features

  • renovate: Group my tooling together (23bb48a)

0.2.7 (2019-10-04)

Features

  • renovate: Configure renovate (667dcb0)

0.2.6 (2019-10-04)

Bug Fixes

  • update: Make automated PR more explicit (268b575)

0.2.5 (2019-10-04)

0.2.4 (2019-10-04)

Features

  • actions: Force master checkout (a6e3a2f)
  • actions: Make auto patch release on merging weekly PR (533dc30)

0.2.3 (2019-10-03)

Bug Fixes

  • regenerate: Fix exclusion of Season 10 (ef0bc3d)

Features

  • actions: Add Weekly PR with new data (17bcc98)
  • actions: Auto-release when weekly PR is merged (a10c4a9)

0.2.2 (2019-10-02)

Bug Fixes

  • wiki: Update data from updated wiki (257986d)

0.2.1 (2019-10-02)

Bug Fixes

  • scenarioIndex: Fix index on Season 10 (44bbc96)

Features

  • data: Update scenarioIndex for season 10 (97e0fd7)
  • scenarioIndex: Set all special elements as scenarioIndex: 0 (2fb1a0c)
  • scenarioIndex: Set it to 0 when special (4a6181f)

0.2.0 (2019-09-27)

Features

  • levels: Compute levels as an array of possible levels (1f95c44)
  • levels: Update levels as array of possible levels (ccb32e0)

0.1.0 (2019-09-20)

Features

  • cover: Add coverUrl extraction logic (6376462)
  • coverUrl: Add coverUrl to all scenarios (10bb756)
  • levels: Add basic min/max level extraction (292ae0e)
  • levels: Update data with min/max levels (39e5a34)
  • locations: Add basic location extraction (adcd944)
  • locations: Update locations (27bc5ed)
  • npcs: Add basic extraction of recurring NPCs (03c5f68)
  • npcs: Add recurring NPCS (daa9d4a)
  • rating: Add basic rating extraction (56ee911)
  • rating: Fix logic to allow for float values (7ac0bf6)
  • ratings: Updated ratins (13c91bf)

0.0.2 (2019-09-19)

Bug Fixes

  • data: Convert — to — (873f47a)
  • price: Mark price as $0 when free (74d6d39)
  • release: Release data.json (b7bba96)

Features

  • data: Adding all Season 0 (079e7c8)
  • data: Dump of all 10 seasons (0a04e02)
  • data: Each scenario is a key in the dump (5bd67d2)
  • data.json: First data.json export, on one scenario (db0d657)