Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
229
content.ts582 B
// The initial state of contenteditable or content.Content html parse of empty. const EMPTY_CONTENT_INITIAL = "<body></body>"; // Sometimes pops up also, usually if the user backspaced every character. const EMPTY_CONTENT_MANUAL = "<body><p></p></body>"; export function isContentEmpty(s: string | undefined) { if (s === undefined) { return true; } const trimmed = s.trim(); if (trimmed === "") { return true; } if (trimmed === EMPTY_CONTENT_INITIAL) { return true; } if (trimmed === EMPTY_CONTENT_MANUAL) { return true; } return false; }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Southclaws/storyden'

If you have feedback or need assistance with the MCP directory API, please join our Discord server