Cosmic JS Blog Stay tuned for community news, company announcements and updates from the Cosmic JS team.

Introducing Cosmic Functions


We're excited to release Cosmic Functions (public beta) to help teams build amazing modern products together with new serverless solutions.

Click here to go directly to the Cosmic Functions documentation >>


What are serverless functions?
Serverless function development is rapidly growing in popularity. And it's no surprise. With serverless, you don't have to manage server infrastructure, you get infinite scalability, and you never have to pay for idle server time like with AWS EC2, Digital Ocean Droplets, etc. You only pay for code executions. 

We even wrote an article about the advantages of serverless development and offer a Serverless Starter App for teams that want to get familiar with this new technology.

Along with our best-in-class headless CMS and application development tools, adding serverless solutions helps further our mission to help teams build modern apps faster.  We think that you'll find Cosmic Functions to be the most delightful way to deploy serverless functions, right from the comfort of your Cosmic JS Bucket.

Find Cosmic Functions in Your Bucket > Settings > Functions


What are Cosmic Functions?
Cosmic Functions allow you to deploy AWS Lambda functions (currently Node.js v8.10) without having to manage server infrastructure.  You can deploy your functions to AWS through your Bucket Dashboard located at Your Bucket > Settings > Functions

AWS Lambda functions are infinitely scalable, highly cost effective, and you get 1M requests per month free.  Using Cosmic to deploy your functions is 100% free.  Cosmic JS does not charge you to deploy your AWS Lambda functions.  All analytics and billing is connected to your AWS account.

What's required?
1. Your AWS access key and secret key
2. Node.js codebase (zip or link to git repo) that follows Lambda requirements. (If you've linked your Cosmic JS account to your GitHub account, you can deploy private GitHub repos as well as public repos).


Getting Started
To get started deploying your own Functions go to Your Bucket > Settings > Functions.  For more information, go to the Cosmic Functions documentation.


It's our hope that Cosmic Functions help you deploy code fast and efficiently, helping your team build great products. We're excited to see what you build and please let use know if you have any questions or would like to schedule a demo.

You can also reach out to us on Twitter and join the conversation on Slack.

You may also like


Object Pagination is now live in your Cosmic JS Bucket.

Medium has become the de-facto platform for publishing online content.  In this article, I'm going to show you how to build a Medium backup application using Node.js and Cosmic JS.

We sat down with Abe Hendricks for our latest installment of the Cosmic JS Developer Spotlight Series. 

We are excited to announce the addition of our GraphQL API to help you get content from your Cosmic JS Buckets faster and more efficiently.  The Cosmic JS community has been very supportive of adding GraphQL as an alternative to our REST API and we are happy to now make this available.

In this tutorial I’m going to show you how to build photo gallery with ready-to-use template, which will be hosted on Cosmic JS App Server.

Hello World!   We are officially in private beta mode.  Lots of work has been done up until this point to make Cosmic JS the best cloud-hosted content platform.  Sign up for an account and please send us some feedback.  Here is a copy of my blog post on the release:

Cosmic JS is a cloud-hosted content platform that makes it easy to manage content for websites and applications.

I built Cosmic JS because I saw a problem with scaling content across platforms and devices.  After years of building applications using installed content management systems, I became tired of rebuilding APIs to handle content distribution from a website to microsites, landing pages and applications.  I decided to build one API to handle all content outlets for easier and faster distribution, and Cosmic JS was born.

Cosmic JS allows for easy content management and distribution by giving you the power to store content as JSON objects in an API that can be delivered anywhere.


Cosmic JS is API-first, meaning your content can be distributed across all devices and platforms from your website, to microsites and landing pages, to native mobile applications which allows for faster development cycles.   And when you use Cosmic JS to serve data and files, application servers can be kept light-weight which saves on server costs.

Get started

Click here to sign up for a Cosmic JS account, it’s completely free to sign up.

Cosmic JS is currently in private beta but you will be notified when your account has been activated.

Start building

Click here to check out the available clients for JavaScript and PHP on GitHub.

Currently there are available clients for JavaScript and PHP to help you get started building scalable, content-ready applications.

View examples

Click here to view code for websites built using Cosmic JS.

I’ll post some tutorials on this blog soon to show you how easy it is to use Cosmic JS to manage content for your next project, so stay tuned.  If you have any questions, please post them below, or reach out to me on twitter or email me.

Thanks,
Tony Spiro

Click here to go to Cosmic JS
Click here to go to Cosmic JS on GitHub