Overview
Cosmic is a headless CMS (content management system) that offers a user-friendly web dashboard for content creation and an API toolkit for seamless content delivery to any website or application. With the Cosmic JavaScript SDK, you can build and deliver various types of content effortlessly. This product focuses on providing flexibility and convenience to developers and content creators alike.
Features
- Web Dashboard: Cosmic provides a user-friendly web dashboard that allows users to create and manage content easily.
- API Toolkit: The API toolkit included in Cosmic enables the delivery of content to any website or application.
- Content Building: The dashboard allows users to create various types of content, giving flexibility in content creation.
- Object Retrieval: Easily fetch multiple objects using the
objects.find()method and specify the object type and desired properties. - Single Object Retrieval: Use the
objects.findOne()method with the object type and slug to retrieve a single object. - Object Manipulation: Create, update, and delete objects using the
objects.insertOne(),objects.updateOne(), andobjects.deleteOne()methods respectively.
Installation
To install Cosmic and start using the JavaScript SDK, follow these steps:
- Install the Cosmic JavaScript SDK. We recommend using the bun package manager.
- Import Cosmic into your app using the
createBucketClientmethod. - Authenticate by accessing your Cosmic admin dashboard and navigating to Bucket > Settings > API Access. Retrieve your Bucket slug and read key, then use these variables in your app to connect to your Bucket.
Summary
Cosmic is a powerful headless CMS that simplifies content management and delivery. Its web dashboard offers a user-friendly interface for creating and managing content, while the API toolkit allows seamless integration with any website or application. With features like flexible content building, easy object retrieval, and object manipulation, Cosmic provides developers and content creators with a versatile solution for efficient content management.