New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

seqflow-js

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

seqflow-js

SeqFlow is a modern web framework that is designed to be simple and easy to use. It optimizes the development process by providing a simple and easy-to-understand API. It is a good choice for those who want to create web applications without the complexit

  • 0.0.1-beta.9
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

SeqFlow JS

SeqFlowJS is a JavaScript library for creating and managing frontend workflows. The core ideas are:

  • Events over State Management
  • Simplicity over Complexity
  • Linearity over Complex Abstractions
  • Explicitness over Implicitiveness

Installation

pnpm install seqflow-js

Usage

import { start, SeqflowFunctionContext } from 'seqflow-js'

async function Main(this: SeqflowFunctionContext) {
  let counter = 0

  const decrementButton = <button type="button">Decrement</button>
  const incrementButton = <button type="button">Increment</button>
  const counterDiv = <div>{counter}</div>
  this.renderSync(
    <>
      <div>
        {decrementButton}
        {incrementButton}
      </div>
      {counterDiv}
    </>
  )

  const events = this.waitEvents(
    this.domEvent('click', { el: this._el })
  )
  for await (const ev of events) {
    if (ev.target === incrementButton) {
      counter++
    } else if (ev.target === decrementButton) {
      counter--
    }

    counterDiv.textContent = `${counter}`
  }
}

start(document.getElementById('root')!, Main)

Keywords

FAQs

Package last updated on 09 May 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc