Create and Deploy Serverless APIs with StdLib’s Code.xyz Web-Based Code Editor

Polybit, the company behind StdLib, a serverless API development platform, has announced the launch of Code.xyz, a web-based code editor for creating serverless APIs. Code.xyz is intended for developers of all skill levels, and it allows users to build and deploy APIs and generate code and complete documentation, with a single click. 

StdLib or Standard Library, is a serverless API development platform that handles code hosting, scaling, rate limiting, billing, authentication, and other services so that developers can focus on writing code and deploying APIs. APIs added to the platform can also be added to StdLib’s API Library (for public consumption) which can be accessed using the search bar on the company website.

Polybit founder Keith Horwood demonstrates how code.xyz leverages StdLib to publish a serverless API.

Code.xyz allows developers to build APIs, including serverless hosting and scaling that is atop the StdLib platform. Developers can choose to create a new API from scratch, or create a project based on an existing source (template) such as MessageBird SMS Hubs (for sending / receiving messages), Slack chat applications, and Stripe webhooks and backends. Both Stripe and Slack participated in Polybit's initial round of funding which closed yesterday. Endpoint testing tools are built into Code.xyz, but this feature is for testing APIs built on Code.xyz itself. The testing feature is not a replacement for an API testing tool like Postman when it comes to already existing APIs.

We reached out to Polybit founder and CEO Keith Horwood who provided some background on Code.xyz and the StdLib platform. Horwood explained that Code.xyz does not support GraphQL or any realtime API (websocket) functionality at this time. "Requests are stateless by design, unless you bring your own data layer," said Horwood. "If you can abstract your API into a single, traditional function call, that's where Code.xyz shines." Horwood went on to explain that:

"RESTful APIs are slowly falling out of fashion, or perhaps bifurcating into GraphQL and RPC / Serverless functions. We approach API design in an RPC / event-driven manner with Code.xyz, treating every endpoint like a simple function call. We actually have an open source specification for how we approach this, called FaaSlang (function as a service language) for serverless function API calls --- it includes a bunch of great features like type coercion, type safety, and more. It's available at https://github.com/faaslang/faaslang."

With Code.xyz, StdLib aims to provide a "Google Docs"-like experience for developing and publishing APIs, and available to anyone via web browser. Users can share API templates (sources) within their organization.

"Code.xyz completely provides the serverless hosting and scaling layer for your API endpoints using the Standard Library platform, meaning it's not just an editor: it actually provides a live API manager and hosting platform as well," Horwood told ProgrammableWeb. "We've essentially combined all of the crucial components to building, launching, and scaling an API --- writing the code, generating the documentation, hosting and setting up a gateway --- into a single, simple product. Integrating all of these layers in a single product, available with one press of a button, is something unique to Code.xyz."

Code.xyz is completely free to use, however, the StdLib platform has paid plans for hosting both the code and documentation. For more information about the StdLib platform visit https://stdlib.com. The Code.xyz web-based code editor is available at https://code.xyz.

(Disclosure: ProgrammableWeb.com editor-in-chief David Berlind made a minor investment in Polybit in mid-2017.  He did not influence the selection or the substance of this article).

Be sure to read the next API Design article: What's the Difference Between REST and Swagger?

 

Comments (0)