StdLib Launches 4 SDKs: Node, Python, Ruby, and Javascript (Web)

Jacob Lee
Standard Library
Published in
3 min readMar 2, 2017

When we launched StdLib a few months ago, we set out on a mission to create the standard library of the Internet. We realize this is a rather broad vision and for us to truly be able to tackle it, we have to be very focused and put a lot of thought toward every step that we take.

Now Supporting Python, Ruby, Node and Javascript (Web)

StdLib: Our Vision

We believe the right circumstances are finally around (low-latency communication, scalable functions, and cheap computation costs) for software to be built with a micro-services based architecture.

But we weren’t happy with the experience of building micro-services using existing products like AWS Lambda.

So we created StdLib. We provide a registry of scalable web-services — a place where you can create, host, and publish your services for the world to use.

We want to be the platform that developers build their services, products and companies on top of.

Introducing our SDKs

We initially to stuck to Node and only supported JavaScript for both using and building services on StdLib.

As we’ve grown, however, we’ve had lots of our users ask us to let them consume existing services on our registry via native wrappers in their language of choice, instead of using the HTTP endpoints directly.

Having native SDKs and providing a great experience for our users to build on top of the services that our users publish is very much aligned with our mission.

We’re excited to introduce you to our latest SDKs for using services on StdLib. We will maintain and support them as part of our core product.

If you haven’t had a chance to check out StdLib yet, sign up here and give it a try!

Introducing StdLib Python Support

Python

You can find our Python SDK here. It’s available as lib on PyPI.

GitHub — stdlib/lib-python: StdLib Python Bindings
lib-python — StdLib Python Bindingsgithub.com

Example Usage

from lib import libtry:
result = lib.yourUsername.hostStatus(name='Dolores Abernathy')
except RuntimeError as err:
# handle error
Introducing StdLib Ruby Support

Ruby

You can find our Ruby SDK here. It’s available as the lib on RubyGems.

GitHub — stdlib/lib-ruby: StdLib Ruby Bindings
lib-ruby — StdLib Ruby Bindingsgithub.com

Example Usage

require 'lib'# inline stylebegin
result = Lib.yourUsername.hostStatus.exec! name: 'Dolores Abernathy'
rescue Exception => err
# handle Error
end
# block style
Lib.yourUsername.hostStatus.exec! name: 'Dolores Abernathy' do |err, result|
puts err
puts result
end
Introducing StdLib Node.js support

Node

You can find our Node SDK here. It’s available as lib on npm.

GitHub — stdlib/lib-node: StdLib Node.js Bindings
lib-node — StdLib Node.js Bindingsgithub.com

Example Usage

const lib = require('lib');
lib.yourUsername.hostStatus({name: 'Dolores Abernathy'}, (err, result) => {
// handle result
});
Introducing StdLib JS (web) Support

Javascript (Web)

You can find our Javascript SDK here. This is a small library intended to be use in the browser.

Example Usage

lib.yourUsername.hostStatus({name: 'Dolores Abernathy'}, (err, result) => {// handle result});

We’re excited to launch all these new SDKs! If you haven’t had a chance to check out StdLib yet, take a look now and let us know what you think. To stay tuned for more exciting StdLib updates, follow us on Twitter (@StdLibHQ).

Jacob Lee is a software engineer at StdLib. He’s an ex-Googler who loves to play squash and hang out in the Sunset, where StdLib’s offices are located. Follow him on Twitter here!

--

--

Jacob Lee
Standard Library

Co-founder at Standard Library (@StdLibHQ). Formerly engineer @Google Photos. Spent WAY too much time in front of a screen as a kid.