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 🙏

© 2024 – Pkg Stats / Ryan Hefner

argumappr

v0.1.0

Published

Automatic graph layout generation for argument maps.

Downloads

2

Readme

Argumappr: Graph Layout for Argument Maps

Argumappr is a TypeScript package for automatic graph layout generation. It provides a graph data structure and a function for laying out graphs. Though it may be used to lay out any standard discrete graph, Argumappr is developed with argument maps in mind.

Why Argumappr?

Argument maps may have quirks that make it hard to represent them by conventional discrete graphs. Namely, logical conjunctions and warrants (per the terminology of Toulmin) pose issues. Typically, vertices contain statements, and edges show what they infer. Thus, simple arguments are easily represented by two vertices (a premise and a conclusion) and a single edge (directed from the premise vertex to the conclusion one). By this convention, common graphs may adequately map fairly complex argument chains. However, conjunct arguments tend to be represented by several premise vertices whose edges conjoin and end in a single conclusion vertex. Moreover, warrants are normally drawn as a premise vertice with an out edge that points to another edge.

Argumappr supports graph structures that may contain vertices, simple edges, conjoined edges and warrant edges. Its layout algorithm can generate layouts efficiently and effectively, resulting in aesthetic layered graph drawings. Argumappr is renderer-agnostic and lightweight. It simply assigns vertices x- and y-coordinates and gives edges three points on a Bézier curve between its source and target. You can then pass this layout information to your favourite renderer.