Hey everyone! Just some quick updates about the progress of stdlib. For those uninitiated, we at Polybit have been hard at work creating a standard library of microservices for the web. Stateless, scalable microservice development is taking off, we want to make sure we’re there to help developers get initiated with creating these services and simplifying workflow and development around them.

If you haven’t had a chance to create a microservice on our platform, visit stdlib.com to test drive stdlib from your web browser. It only takes a second!

Changes

Our platform is still in beta, but we’re rapidly heading towards full production capabilities. Our changes this week are the following;

From this point forward, stdlib functions will be compiled and deployed to the web using Node.js v6.5.0 .

. You can now configure environment variables for your functions. They’re available via the params object, as params.env.

The deployment endpoint has changed, so make sure you update to the newest version of the CLI

Details

To set production environment variables, you’ll need to use the CLI:

$ stdlib f:env username/namespace/name --set KEY_NAME VALUE

$ stdlib f:env username/namespace/name --remove KEY_NAME

Once your environment variables are set, they’re accessible in your functions;

module.exports = (params, callback) => {

callback(null, params.env.KEY_NAME); // outputs env value

}

Make sure you re-compile your function using stdlib f:compile to ensure you deploy with the most recent environment variables. You’ll of course need to be registered and logged in.

Happy Building!

As usual, enjoy! Have fun building your Node.js microservices. In the coming weeks we’ll begin rolling out some neat team and organization features, we look forward to making beautiful services with you. To stay tuned for updates follow @Polybit on Twitter and feel free to follow me as well!

Thanks again for the ongoing support, and e-mail me — keith at polybit dot com —if you have any questions, would like to know more, or would like to get involved! We’re always looking for talented developers.