@humanspeak/svelte-markdown
Version:
Markdown and HTML renderer for Svelte 5 — built for rendering streaming AI agent output from Claude Code, ChatGPT, and agentic workflows. XSS-safe defaults, streaming-aware sanitization, token caching, TypeScript types, and Svelte 5 runes.
171 lines • 4.59 kB
JSON
{
"name": "@humanspeak/svelte-markdown",
"version": "1.5.3",
"description": "Markdown and HTML renderer for Svelte 5 — built for rendering streaming AI agent output from Claude Code, ChatGPT, and agentic workflows. XSS-safe defaults, streaming-aware sanitization, token caching, TypeScript types, and Svelte 5 runes.",
"keywords": [
"svelte",
"svelte5",
"sveltekit",
"markdown",
"renderer",
"parser",
"fast",
"performance",
"cache",
"caching",
"marked",
"component",
"typescript",
"runes",
"md",
"documentation",
"html",
"converter",
"formatting",
"customizable",
"extensible",
"ai",
"ai-agent",
"agent-output",
"llm",
"llm-streaming",
"streaming",
"chatgpt",
"claude",
"claude-code",
"anthropic",
"openai",
"xss",
"sanitization",
"secure"
],
"homepage": "https://markdown.svelte.page",
"bugs": {
"url": "https://github.com/humanspeak/svelte-markdown/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/humanspeak/svelte-markdown.git"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/humanspeak"
},
"license": "MIT",
"author": "Humanspeak, Inc.",
"sideEffects": [
"**/*.css"
],
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"svelte": "./dist/index.js"
},
"./extensions": {
"types": "./dist/extensions/index.d.ts",
"svelte": "./dist/extensions/index.js"
}
},
"svelte": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist",
"!dist/**/*.test.*",
"!dist/**/*.spec.*",
"!dist/test/**/*"
],
"overrides": {
"@sveltejs/kit": {
"cookie": "^0.7.0"
}
},
"dependencies": {
"@humanspeak/memory-cache": "^1.0.6",
"github-slugger": "^2.0.0",
"htmlparser2": "^12.0.0",
"marked": "^18.0.4"
},
"devDependencies": {
"@eslint/compat": "^2.1.0",
"@eslint/js": "^10.0.1",
"@playwright/cli": "^0.1.13",
"@playwright/test": "^1.60.0",
"@sveltejs/adapter-auto": "^7.0.1",
"@sveltejs/kit": "^2.60.1",
"@sveltejs/package": "^2.5.7",
"@sveltejs/vite-plugin-svelte": "^7.1.2",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/svelte": "^5.3.1",
"@testing-library/user-event": "^14.6.1",
"@types/katex": "^0.16.8",
"@types/node": "^25.9.1",
"@typescript-eslint/eslint-plugin": "^8.59.4",
"@typescript-eslint/parser": "^8.59.4",
"@vitest/coverage-v8": "^4.1.6",
"eslint": "^10.4.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-svelte": "^3.17.1",
"eslint-plugin-unused-imports": "^4.4.1",
"globals": "^17.6.0",
"husky": "^9.1.7",
"jsdom": "^29.1.1",
"katex": "^0.16.47",
"mermaid": "^11.15.0",
"mprocs": "^0.9.2",
"prettier": "^3.8.3",
"prettier-plugin-organize-imports": "^4.3.0",
"prettier-plugin-svelte": "^3.5.2",
"prettier-plugin-tailwindcss": "^0.8.0",
"publint": "^0.3.21",
"svelte": "^5.55.8",
"svelte-check": "^4.4.8",
"typescript": "^6.0.3",
"typescript-eslint": "^8.59.4",
"vite": "^8.0.13",
"vitest": "^4.1.6"
},
"peerDependencies": {
"katex": ">=0.16.0",
"mermaid": ">=10.0.0",
"svelte": "^5.0.0"
},
"peerDependenciesMeta": {
"katex": {
"optional": true
},
"mermaid": {
"optional": true
}
},
"volta": {
"node": "24.15.0"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "vite build && npm run package",
"cf-typegen": "pnpm --filter docs cf-typegen",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"dev": "vite dev",
"dev:all": "mprocs",
"dev:pkg": "svelte-kit sync && svelte-package --watch",
"format": "prettier --write .",
"lint": "prettier --check . && eslint .",
"lint:fix": "npm run format && eslint . --fix",
"package": "svelte-kit sync && svelte-package && publint",
"perf:bench": "node scripts/perf-bench.mjs",
"preview": "vite preview",
"test": "vitest run --coverage",
"test:all": "npm run test && npm run test:e2e",
"test:e2e": "playwright test",
"test:e2e:debug": "playwright test --debug",
"test:e2e:report": "playwright show-report",
"test:e2e:ui": "playwright test --ui",
"test:only": "vitest run",
"test:watch": "vitest"
}
}