Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@manychat/flow-preview-service

Package Overview
Dependencies
Maintainers
6
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@manychat/flow-preview-service

Service for creating flow preview screenshots

  • 0.1.3
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
6
Weekly downloads
 
Created
Source

flow-preview-service

Service for creating flow preview screenshots

Installation

Node 8 required

npm install @manychat/flow-preview-service -g

Run

flow-preview-service --player-url http://localhost:8081/ --debug

Options

-V, --version       output the version number
--max <n>           maximum number of workers
--min <n>           minimum number of workers
--port <n>          listening port
--max-uses <n>      maximum number of times a worker can be reused
--player-url [url]  flow player page URL [http://localhost:8081]
--debug             enable debug logging
-h, --help          output usage information

API

stats

GET /

make preview

POST /process
Content-Type: application/json
Payload: { data: <SharedFlowData> }

success response

Status: 200
{
    "success": true,
    "worker": "worker_1",
    "result": {
        "type": "image/png",
        "base64": "data:image/png;base64,iVBORw0KGgoAAAA.."
    }
}

error response

Status: 500
{
    "success": false,
    "worker": "worker_1",
    "error": "Something went wrong"
}


Status: 400
{
    "success": false,
    "error": "body.data is required"
}

client

html interface http://localhost:8844/client/

FAQs

Package last updated on 20 Nov 2017

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