惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园_首页
大猫的无限游戏
大猫的无限游戏
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Apple Machine Learning Research
Apple Machine Learning Research
B
Blog
B
Blog RSS Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
P
Proofpoint News Feed
MyScale Blog
MyScale Blog
Engineering at Meta
Engineering at Meta
量子位
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
Tailwind CSS Blog
Stack Overflow Blog
Stack Overflow Blog
N
Netflix TechBlog - Medium
T
The Blog of Author Tim Ferriss
U
Unit 42
aimingoo的专栏
aimingoo的专栏
博客园 - 叶小钗
博客园 - 【当耐特】
云风的 BLOG
云风的 BLOG
博客园 - Franky
博客园 - 聂微东

CloudCannon Blog

Building with AI: Git-based vs headless vs traditional CMS CloudCannon + Astro: performance meets powerful content management Introducing the Astro Component Starter Introducing Jetstream — built on the Astro Component Starter Why we switched to the system font stack Redesigning CloudCannon’s docs with Diátaxis, Lume, and Pagefind Make content editing more visual: upgraded Editable Regions How Configuration Mode makes building editing interfaces easy Your hosting just got an upgrade (and a price cut) Custom testing domains for professional branding Keep your content consistent with input validation Managing multilingual content in CloudCannon Simplify team publishing with conflict resolution and domain tools Open Beta: Publishing Conflict Resolution Getting started with CloudCannon and Astro: Bookshop, components, and live editing Welcome to the CloudCannon Community! Omnichannel delivery is just marketing spin from API-based CMS companies Getting started with CloudCannon and Astro: Snippets and Collections Managing digital assets in CloudCannon: a guide to smart asset storage Understanding CloudCannon's branching workflows and Projects: a complete guide What is a static website? CloudCannon’s 2024 wrapped Getting started with CloudCannon and Astro: WYSIWYG blogging Jamstack vs. WordPress: reasons to make the change The top five static site generators for 2025 (and when to use them!) Free Jekyll themes for 2025: ten great community options Eleventy (11ty) vs. Hugo How to set up WYSIWYG editing with MkDocs Material The rise of static-first websites: why major brands are making the switch Watching your Core Web Vitals on Jamstack
Git-based CMS or API-first CMS - main differences and ben...
2021-02-17 · via CloudCannon Blog

Introduction Direct link to this section

Many older content management systems (CMSs) suffer from tightly coupled architecture and poor separation of front and backend, which can cause difficulties for developers and content contributors. Git-based and API-first CMSs solve this problem by better separation of concerns, allowing you to scale and manage your content more easily. But what are the main differences and benefits of these two types of systems, and what benefits does a Git-based CMS offer?

Git-based vs. API-first - what’s the difference? Direct link to this section

Modern development demands, including for a CMS, mean moving fast, scaling easily for traffic, and worrying less about security and infrastructure. Both a Git-based CMS and an API-first CMS help with these demands by improving developer workflows and making content more portable, while still giving you a visual interface for management. But how each of these solutions solves these problems is quite different:

A Git-based CMS is a system that synchronizes with your Git repository and pulls its contents into the system for processing, such as editing and viewing. Any changes made are pushed back to the repository to keep the system and code in sync.

An API-first CMS lets you create structured content, such as tables representing products, in raw form. This content can then be requested via an API, typically as JSON data, and then built into applications of varying types.

In the end, when you’re deciding which option is the best, it comes down to where you want to store your content, and what you want to do with it.

Main advantages of Git-based CMS Direct link to this section

With a purely Git-based system, you are using your Git repository - such as GitHub, GitLab, or Bitbucket - to store your content. This comes with a number of benefits, especially for developers:

  • Familiarity. Content is stored in Git, which is an industry standard that most developers will be familiar with in some form. Relying on a Git repository for collaboration and version control means less pressure for developers to learn new tools and platforms to do their job.
  • Ownership. Git repositories make you the ultimate owner of your creations, meaning no vendor lock-in. If there is ever a need to transfer content to another platform, everything is immediately available in the repository.
  • Distributed access. If the CMS service goes offline, you still have access to your full code base in the remote repository/repositories. Any changes made can be pulled and merged as usual, giving you greater autonomy to work outside of the CMS.

Main advantages of an API-first CMS Direct link to this section

With an API-first CMS, your main content is stored as raw data, completely independent of any display layer(s), such as HTML pages. How you use this content is up to you. This is often flexibly managed through the CMS interface or HTTP requests.

  • Omnichannel presence. Raw data from an API offers ultimate portability and flexibility, as it can be built into any application or device, whether that’s a website, a phone app, or an IoT device.
  • Centralized data management. With multiple sources using the same data, adjustments made to API data will easily cascade down to data consumers, removing the need for individual updates.
  • Quicker design iterations. With the data living separate from its consumers, large changes can be made to design without worrying about changing the content being brought in.

Summary Direct link to this section

Git-based and API-first CMSs are both great options, offering greater flexibility and better development workflows than legacy CMSs. Naturally, each solution comes with distinct advantages and disadvantages. If ownership of data and familiar Git workflows are of high importance, a Git-based CMS is a logical choice. Alternatively, if raw, centralized data access for multiple platforms is needed, an API-first approach may provide the most benefit.

Why Git-based? Where CloudCannon fits in Direct link to this section

CloudCannon is a Git-based CMS with a focus on ensuring developers and editors are always in sync, by using a repository as the single source of truth. This gives users full ownership of their data, preventing vendor lock-in, and creates a history of all changes made.

However, Git workflows and APIs often aren’t approachable for many non-developers. Because effective sharing, editing, and collaborating are our fundamental philosophies, CloudCannon works hard to create a solution that works for everyone in the team, without the complicated interface. Developers can use the platform to maintain their normal workflow, easily configure build and hosting options, and quickly provide content contributors with an intuitive way to edit content.

CloudCannon also offers tutorials for learning the basics of static site generator frameworks such as Astro, Eleventy, Hugo, SvelteKit, and Jekyll.