New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

seqcode

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

seqcode

![Example seqcode diagram](/tests/output/example.svg "Example seqcode diagram")

npmnpm
Version
0.1.19
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

SeqCode

Example seqcode diagram


dev:actor
main:Class

main.start() {

  t.create() {

    x: "Int \"Counter" # long name in quotes, escaped quote
    x.create()
  }
  # . is a call (synchronous)
  # > is a message (asynchronous)
  t > run() {
  
    # alt, par, strict and seq create frames with multiple sections
    alt(morning) {
  
      # loop, opt, critical, ignore, consider, assert, neg and break create frames
      loop(while(true\)) { # parameters end on closing bracket, escaped bracket
        x.inc()
      }
    }
    alt(afternoon) {}
  }

  # later is used to perform actions after, outside of the normal flow
  later() {

    # self messages with no body can be +found or -lost
    -sendStats(...)
    ref(diagram 2 | link-to-diagram-2)
  }
}

getCoffee( strong ) {

  # invariant labels also supported
  state(caffeinated)

  invariant(drunk)
}

# notes are of the form note(x,y,width,message)
note(450,10,200,welcome to seqcode.app! uml sequence diagrams automatically created from simple code)

FAQs

Package last updated on 08 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts