All Projects → beefsack → Webify

beefsack / Webify

Licence: mit
Turn shell commands into web services

Programming Languages

go
31211 projects - #10 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to Webify

Href Counter
Golang multi-stage build to count links within a page for SEO
Stars: ✭ 42 (-95.07%)
Mutual labels:  serverless, function
Knctl
Knative CLI
Stars: ✭ 163 (-80.87%)
Mutual labels:  serverless, function
Serving
Kubernetes-based, scale-to-zero, request-driven compute
Stars: ✭ 4,238 (+397.42%)
Mutual labels:  serverless, function
Aws Lambda Workshop
Some incremental examples suitable to host an AWS Lambda Functions workshop
Stars: ✭ 18 (-97.89%)
Mutual labels:  serverless
Serverless Dynalite
Serverless plugin to run Dynalite locally (No JVM needed!) to handle DynamoDB development. Can watch for table config changes.
Stars: ✭ 19 (-97.77%)
Mutual labels:  serverless
Jazz Installer
Installer for Jazz Serverless Developer Platform!
Stars: ✭ 24 (-97.18%)
Mutual labels:  serverless
Serverless Python Requirements
⚡️🐍📦 Serverless plugin to bundle Python packages
Stars: ✭ 838 (-1.64%)
Mutual labels:  serverless
Serverless Aws Lambda Node Postgres
Serverless AWS Lambda with Node.js,Postgres Rest API with Sequelize.
Stars: ✭ 18 (-97.89%)
Mutual labels:  serverless
Serverless Aws Cognito Login
Simple example project with instructions how to implement serverless login using AWS Cognito.
Stars: ✭ 26 (-96.95%)
Mutual labels:  serverless
Gh Pages Url Shortener
Minimal URL shortener that can be entirely hosted on GitHub pages.
Stars: ✭ 924 (+8.45%)
Mutual labels:  serverless
Scalecube Services
v2.0 - ScaleCube Services provides a low latency Reactive Microservices library for serverless service registry and discovery based on gossip protocol and without single point-of-failure or bottlenecks.
Stars: ✭ 23 (-97.3%)
Mutual labels:  serverless
Jwt Example
Playing with user registration, login/logout, auth, etc using JWTs, serverless functions & faunadb as the data store.
Stars: ✭ 22 (-97.42%)
Mutual labels:  serverless
Baristacore
BaristaCore is a framework for providing a serverless platform using ChakraCore and .Net Core
Stars: ✭ 24 (-97.18%)
Mutual labels:  serverless
Ccalc
Scientific calculator in which you can define new constants and functions
Stars: ✭ 19 (-97.77%)
Mutual labels:  function
Openwhisk Runtime Php
Apache OpenWhisk Runtime PHP supports Apache OpenWhisk functions written in PHP
Stars: ✭ 26 (-96.95%)
Mutual labels:  serverless
Lambdalogs
A CLI tool to trace AWS Lambda calls over multiple CloudWatch log groups.
Stars: ✭ 18 (-97.89%)
Mutual labels:  serverless
Serverless Plugin Select
Select which functions are to be deployed based on region and stage.
Stars: ✭ 25 (-97.07%)
Mutual labels:  serverless
Download Your Travelmap
free your travelmap
Stars: ✭ 22 (-97.42%)
Mutual labels:  serverless
Aws Node Elasticache Vpc
Serverless function using elasticache (redis) within VPC
Stars: ✭ 22 (-97.42%)
Mutual labels:  serverless
Epsagon Go
Automated tracing library for Go 1.x ⚡️
Stars: ✭ 24 (-97.18%)
Mutual labels:  serverless

webify

Turn functions and commands into web services

Build Status Go Report Card MIT License

For a real world example, see turning a Python function into a web service.

Overview

webify is a very basic CGI server which forwards all requests to a single script. A design goal is to be as zero-config as possible.

webify invokes your script and writes the request body to your process' stdin. Stdout is then passed back to the client as the HTTP response body.

If your script returns a non-zero exit code, the HTTP response status code will be 500.

Installation

webify is available from the project's releases page.

On macOS, it can also be installed via MacPorts:

sudo port install webify

Usage

# Make a web service out of `wc` to count the characters in the request body.
$ webify wc -c
2020/08/25 12:42:32 listening on :8080, proxying to wc -c

...

$ curl -d 'This is a really long sentence' http://localhost:8080
30

Official Docker image

The official Docker image is beefsack/webify.

It can be configured using the following environment variables:

  • ADDR - the address to listen on inside the container, defaults to :80
  • SCRIPT - the command to execute, defaults to /script

Mounting script and running official image

$ docker run -it --rm -p 8080:80 -v /path/to/my/script:/script beefsack/webify:latest
2020/08/25 04:27:46 listening on :80, proxying to /script

...

$ curl -d 'Some data' http://localhost:8080

Building a new image using official image as base

Create a Dockerfile like the following:

FROM beefsack/webify:latest
COPY myscript /script

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].