Node.js CMS Learn how to use Cosmic JS to power content for your projects using tools you love.

Node.js

Cosmic JS makes it easy to manage content for your Node.js applications. Install the Official Cosmic JS JavaScript Client to integrate your Node.js app today.  Get a feel for Node.js by taking a spin through our Node.js Apps and check out the tutorials below.

Node.js CMS Articles

How to Build a Simple Blog Using Node.js
How to Build a Node.js User Management App
Start a Premium Content Business Using Node.js, React and Cosmic JS Extensions
How to Build a Multi-Language Static Website Without AJAX
How to Build a Cross-Platform Blog Using React Native and Node.js
How to Build a Facebook Bot App Using Node.js 

Node.js CMS Resources

Cosmic JS Docs
Official JavaScript Client
Cosmic JS GitHub

Examples

npm install cosmicjs --save

Then in your JavaScript file, get your content:

import Cosmic from 'cosmicjs';
const bucket = { slug: 'your-bucket-slug' };
Cosmic.getObjects({ bucket }, (err, res) => {
  console.log(res.objects);
});
Node.js CMS