(Almost) painless content for devs
A couple lines of code lets you fetch/update content, with a free editor here for those troublesome humans.
REST: Pass your key with your path to api.pullnote.com for content in MD or HTML docs
NPM: Use our npm package to get and fetch content:
npm install @pullnote/client
import { PullnoteClient } from '@pullnote/client';
const pn = new PullnoteClient(PULLNOTE_KEY );
// Store
await pn.add('/about', {
title: 'About',
content: 'About the **Pullnote** Headless Content API'
});
// Retrieve
var content = await pn.getMd('/about'); // For the raw Markdown
var content = await pn.getHtml('/about'); // If you prefer to directly render as HTML
See API reference for all options or go to the console to create / edit content.
CMSes traditionally cannot be driven by AI, but Pullnote can. Pass your LLM a link to our llms.txt file and it will be able to create, edit and retrieve content on your behalf.
LLMs can also pull clean content from Pullnote driven pages by appending .md to the URL e.g. /docs/llms.md.
More on best LLM practices here.