Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @gesso/gesso with all npm packages installed. Try it out:

var gesso = require("@gesso/gesso")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@gesso/gesso v1.0.0

Fast, interactive JavaScript programming.

Gesso

Tool for fast interactive buildling.

Features

  • Use in multiple ways
    • CLI with arguments (supports piped input)
    • REPL
    • Piped I/O
    • require or import as module
  • Compatibility
    • Supports any npm module
  • Quick
    • Graphical application composition
    • Automated npm package managemnt for Gesso functions
  • Configurable
    • Configure Gesso shell to customize the developer experience
  • Extensible
    • Custom command parsers with middleware
  • Deployable
    • Remove developer Gesso functions to package application for deployment
  • Integrations
    • Visual Studio Code extension (WIP)

Installation

gesso can install and run Gesso functions. The functions installed in a Gesso workspace define the capabilities of gesso.

To boostrap gesso for developing applications, run the following commands:

gesso install @gesso/function # Installs the default Gesso function.
gesso install @gesso/new      # Installs the "new" command to create functions.
gesso install @gesso/package  # Installs the "package" command to package applications.

Usage

Interactive (REPL)

Running gesso with no arguments and no piped input runs Gesso in interactive mode. Interactive mode is essentialy a REPL.

Run gesso to open Gesso in interactive mode which presents an input prompt:

$ echo "Hello"
Hello
$ text-to-speech "Hello there"

CLI

gesso and each gesso-function can be run from the command line.

Example: Echo input

gesso echo hello

Example: Generate a UUID

gesso echo uuid-generator

Example: Text to speech (single argument)

gesso text-to-speech "Hello from Gesso."

Example: Text to speech (explicit arguments)

gesso text-to-speech --input.text "Hello from Gesso."

Example: Text to speech (multiple explicit arguments)

gesso text-to-speech --input.text "Hello from Gesso." --input.voice Alex

Example: Text to speech (multiple explicit arguments with simplified syntax)

Input arguments can be specified without the input. prefix when only input arguments are specified.

gesso text-to-speech --text "Hello from Gesso." --voice Alex

Piping input and output

Example: Pipe a command and arguments

echo 'echo "hello world"' | gesso

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free