FaasPlus: Simplifying JavaScript Functions as a Service

Effortlessly build, deploy, and scale functions with the power of JavaScript and JSON.

curl -X GET https://micro1.faasplus.com/acme/demo/ping
const handleRequest = async () => {
    const executedAt = new Date().toString();
    return {
        'res':'pong',
        'executed_at':executedAt
    };
};
->response
{
    "res": "pong",
    "executed_at": "Thu Sep 12 2024 12:43:23 GMT+0000 (Coordinated Universal Time)"
}

If you know javascript and json, you love FaasPlus.

With FaasPlus, turning your JavaScript and JSON knowledge into powerful, scalable cloud functions is effortless. No complex setups or steep learning curves—just write your code, deploy, and watch it scale. FaasPlus streamlines the function-building process, so you can focus on creating, not managing infrastructure. It’s your favorite languages, now supercharged for the cloud.

With FaasPlus, you can easily manipulate JSON data in your functions

Imagine you receive JSON data with two values, a and b, and you need to calculate their sum. With FaasPlus, it's as simple as writing a few lines of JavaScript.

In this case, FaasPlus extracts the values from the JSON, performs the calculation, and returns the result—all in one seamless function. This showcases how easily FaasPlus handles real-world scenarios where working with JSON data is essential, letting you focus on logic while it manages the heavy lifting.

Run in postman

curl -d "a=10&b=20" -X POST https://micro1.faasplus.com/acme/demo/sum
const handleRequest = async (req) => {
        const a=req.body.a||0;
        const b=req.body.b||0;
        const sum=a+b;
            return {
                'sum':sum
            }
        };                              
->response
{
    'sum':30
}

Easily Integrate and Call External Services

With FaasPlus, you can effortlessly interact with external APIs and services using JavaScript’s built-in fetch. Whether you're retrieving data from third-party services or posting data to external APIs, FaasPlus gives you the flexibility to seamlessly integrate external resources into your functions. For example, making an HTTP request to fetch external data is as simple as:

Run in postman

curl -X GET https://micro1.faasplus.com/acme/demo/fetch?postId=1
const handleRequest = async (req,fetch) => {
    //request postId as paramters (query string)
    const postId = req.params.postId;
    //request an external data
    const res = await fetch(`https://jsonplaceholder.org/posts/${postId}`);
    //read as json
    const jsonRes=await res.json();
    //add additional field
    const executedAt=new Date().toString();
    //compose new result
    const myRes={
        id:jsonRes.id,
        url:jsonRes.url,
        executedAt:executedAt
    }
    return myRes;
}
->response
{
    'id':1,
    'url':'https://jsonplaceholder.org/posts/lorem-ipsum',
    'executedAt':'Wed Sep 11 2024 11:13:10'
}

Unlock Even More Powerful Capabilities

FaasPlus goes beyond basic functions. You can easily use query string parameters to fine-tune your inputs and leverage workspace variables to securely store project URLs, secrets, and other sensitive data. Need to make SOAP calls? No problem—FaasPlus supports that too, allowing you to integrate with a wide range of services. From handling complex APIs to managing secure environments, FaasPlus has you covered. See all use cases (examples).

See all use cases (examples)

Sign up now

Sign Up and Start Using FaasPlus Now—It’s Free! Getting started with FaasPlus is quick and easy. Signing up takes just a few seconds, and you can begin building and deploying functions right away at no cost.

Get started