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

@gsvarovsky/deciduous

v0.0.3

Published

App that simplifies building decision trees to model adverse scenarios

Downloads

63

Readme

Deciduous

A web app that simplifies building decision trees to model adverse scenarios. Hosted at https://deciduous.vercel.app/

It allows you to document your assumptions about how a system, service, app, etc. will respond to adverse events. Its heritage is in helping defenders anticipate attacker behavior and prepare mitigations accordingly, but it also applies to anticipating reliability-related failures, too.

It is especially useful as a foundation to conduct resilience stress testing / chaos experimentation, allowing you to continually refine your mental models of a system with reality. The end goal of using decision trees is to document your beliefs about how failure will unfold across your system in a given scenario, which can inform design improvements to better sustain resilience to that failure.

Getting started guide: https://kellyshortridge.com/blog/posts/deciduous-attack-tree-app/

Theme options include:

  • theme: default - the default tree styling
  • theme: accessible - for more color differentiation between attack and mitigation nodes
  • theme: classic - classic Graphviz styling
  • theme: dark - dark mode

For a more detailed write-up of using decision trees in practice, refer to the book Security Chaos Engineering: Sustaining Resilience in Software and Systems.

Risks and Priorities

The UCL version of Deciduous adds in a number of usability improvements that should be largely intuitive, plus the calculations of risks as follows.

Risks can be shown in the diagram by assigning a top-level key risk: value.

Risks are shown for fact, attack and goal nodes in the node display with the prefix "ℙ:" (for probability). For mitigations, risks also exist, but since a risk for a mitigation only exists to pass down to further attacks, the display instead shows the cumulative effect of the mitigation on the goals. This value is shown with the prefix "𝛿:" (for delta probability).

The linkage between nodes can be assigned an effect. The easiest way to do this is to add a label to the from, suffixed with a value in angle brackets thus: - from_node_id: Label <1>. An effect value must be between zero and one. (It's also possible to add an effect sub-key to the individual from value.)

Effect values cascade down the tree from facts to the attacker's goals, changing the risk value assigned to graph nodes. By default, all nodes have a risk of 1. This is most easy to interpret for facts: since facts are true, the risk of the fact being true is 1. From their initial values, risks are affected by effect values as follows:

  1. Effect values in the froms of a fact, attack or goal node affect the risk of the node itself. The risk of each from node are multiplied by the effect, combining with an exclusive OR (thus, the risks are added).
  2. Effect values in the froms of a mitigation node affect the from node, reducing its risk by the effect value (calculated by multiplying the risk by 1 - effect).

Since this calculation is not always easy to interpret, the top-level risk key can be set to risk: calc, the diagram then showing the risk calculation in place of the value.

Examples

Example trees for #inspo are hosted in /examples.

Security

Reliability

Surrealism