Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@canvas-js/cli
Advanced tools
Command line interface for using Canvas.
$ canvas run QmFoo
Binds to http://127.0.0.1:8000
by default.
GET /
- get metadata about the application. Returns { uri: string; cid: string; actions: string[]; routes: string[] }
.POST /actions
- apply an action.POST /sessions
- apply a session.GET /some/route/path
- Get the value of a route, or open an server-sent event connection. Either returns a text/event-stream
or a application/json
array, depending on the requested Accpet
header.$ canvas daemon
Binds to ~/.canvas/daemon.sock
. Pass a --port
argument to additionally bind to a port on 127.0.0.1
.
GET /app
- list the installed applications. Returns an object Record<string, string>
mapping app names to CIDs. For apps installed and run through normal CLI usage, these (app names and CIDs) will be the same.PUT /app/some-app-name
- body must be a Content-Type: text/javascript
spec. Creates a new app with name some-app-name
and returns the hash in an ETag
response header. Does not start the app. Succeeds with status OK
, or fails with status CONFLICT
if an app with that name already exists.DELETE /app/some-app-name
- permanently deletes the app with name some-app-name
, and all of its associated data. Succeeds with status OK
, or fails with status NOT_FOUND
if no app with that name already exists.POST /app/some-app-name/start
- start the app with name some-app-name
. Succeeds with status OK
, fails with status CONFLICT
if the app is already running, or fails with status NOT_FOUND
if no app with that name already exists.POST /app/some-app-name/stop
- stop the app with name some-app-name
. Succeeds with status OK
, or fails with status CONFLICT
if the app is not already running.GET /app/some-app-name
- same as getting application metadata in the Core API. Returns { uri: string; cid: string; actions: string[]; routes: string[] }
.POST /app/some-app-name/actions
- same as action application in the Core API.POST /app/some-app-name/sessions
- same as session application in the Core API.GET /app/some-app-name/some/route/path
- same as fetching routes in the Core API. Either returns a text/event-stream
or a application/json
array, depending on the requested Accpet
header.(c) 2022 Canvas Technology Corporation
FAQs
Canvas provides a command line interface for running applications inside Node.js.
We found that @canvas-js/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.