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

jasdjs

v1.0.0-pre.7

Published

Just Another Sequence Diagrammer

Downloads

10

Readme

jasdjs - Just Another Sequence Diagrammer js

Generate a Sequence Diagram from a text representation.

For example:

title: An example

A -> B: This is a message
B -->> A: And this is a response
note over A: "Notes can be
over a lifeline"
note left of A: To the left
note right of A: Or to the right
A -> C: "It's easy to do
multiline text too"

note over A, C: Oh and notes can span over two lifelines too

JASDjs is allows you to create visually appealing documentation for your organisation.

Try it out online here.

Installation

npm install jasdjs

Getting started

This project is in its infancy atm, so please be patient.

Language Specification

Diagram Title

title: An example

Participants

Standard participants can either be declared inline in message declarations, e.g.

a -> b: message text

but can also be declared with an [optional] alias, e.g.

p: a
p: a as John

You can use both the short and long form:

p: thing as Short Form
participant: thing as Long Form

In the above, you can then use a in the message declarations whilst John will appear above and below the lifelife.

Actors need to be declared before they are used, again they can have an optional alias:

a: a
a: a as John

Again both shot (a) and long (actor) forms are available.

Messages

Messages are specified between the source and target pariticipants and are separated by an arrow.

source arrow target: text

Where source and target are the ids of pariticipants (if not previously declared, they will be created).

arrow can have have a solid or dashed line, dicatated by either a single or double dash (- or --), and an either a solid or open arrow head, dicatated by a single or double right chevron character (> or >>).

For example:

a -> b: Solid line, closed head 
b -->> a: Dashed line, open head

Activations

Use a plus and minus signs (+/-) after an arrow to activate or deactivate a lifeline respectively.

a ->+ b: this activates b
b ->- a: this deactivates b

Notes

Notes can either be left of, right of or over life lines.

note left of a: some text
note right of a: some text
note over a: some text

note over can optionally span two life lines:

note over a, b: some text

Multiline text

Diagram elements can display multiline text by enclosing the text in double quotes:

title: "A Multiline
Title"
Jack -> John: "This is a
multiline message"
note over Jack, John: "This is a
multiline note"

Comments

Both single and multiline comments are supported

// single line comment

/*
Multiline
comment */

Sponsors

License

MIT