{"_id":"@actus-ag/llm-ui","name":"@actus-ag/llm-ui","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"@actus-ag/llm-ui","version":"0.2.0","type":"module","license":"MIT","exports":{"./package.json":"./package.json",".":{"types":"./dist/index.d.ts","svelte":"./dist/index.js","default":"./dist/index.js"}},"svelte":"./dist/index.js","types":"./dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/actus-ag/llm-ui.git","directory":"packages/core"},"homepage":"https://github.com/actus-ag/llm-ui#readme","bugs":{"url":"https://github.com/actus-ag/llm-ui/issues"},"publishConfig":{"access":"public"},"peerDependencies":{"svelte":"^4.0.0 || ^5.0.0"},"devDependencies":{"@sveltejs/vite-plugin-svelte":"^3.0.0","@tsconfig/svelte":"^5.0.2","@types/node":"^20","svelte":"^4.2.8","tsup":"^8.0.2","typescript":"^5.4.3","vite":"^5.0.0","@actus-ag/llm-ui-tsconfig":"0.0.5"},"dependencies":{"remeda":"^1.57.0"},"scripts":{"build":"vite build && tsc --emitDeclarationOnly","build-watch":"vite build --watch","typecheck":"tsc --noEmit","test":"vitest"},"_id":"@actus-ag/llm-ui@0.2.0","description":"Display language model outputs in your Svelte project.","_integrity":"sha512-oqZYu3CPXqQ7D+qspBXC7OCJ6I2eTMhmp5ZSrfyXZKrsaIYPziB86bqsdGCHDITI0kS3VE+PYtoznkNT8hDh/A==","_resolved":"/tmp/49922cd4c515d86071d791ab80251dd8/actus-ag-llm-ui-0.2.0.tgz","_from":"file:actus-ag-llm-ui-0.2.0.tgz","_nodeVersion":"20.19.5","_npmVersion":"10.8.2","dist":{"integrity":"sha512-oqZYu3CPXqQ7D+qspBXC7OCJ6I2eTMhmp5ZSrfyXZKrsaIYPziB86bqsdGCHDITI0kS3VE+PYtoznkNT8hDh/A==","shasum":"dd906f98dbcc8103a4e49aa6c83673b221c14ab8","tarball":"https://registry.npmjs.org/@actus-ag/llm-ui/-/llm-ui-0.2.0.tgz","fileCount":31,"unpackedSize":38722,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD5WdSL8+R+EjfG4Y2RsxcytF4+EAKGI8qZSCIohTnnPgIgIoC16JL1FInsy8hp4bEXLlNAlyZF8856L8lMWFkIA9E="}]},"_npmUser":{"name":"actus-ag","email":"it@actus-tax.com"},"directories":{},"maintainers":[{"name":"actus-ag","email":"it@actus-tax.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/llm-ui_0.2.0_1762266274577_0.46968154639738313"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-04T14:24:34.466Z","0.2.0":"2025-11-04T14:24:34.764Z","modified":"2025-11-04T14:24:35.007Z"},"maintainers":[{"name":"actus-ag","email":"it@actus-tax.com"}],"description":"Display language model outputs in your Svelte project.","homepage":"https://github.com/actus-ag/llm-ui#readme","repository":{"type":"git","url":"git+https://github.com/actus-ag/llm-ui.git","directory":"packages/core"},"bugs":{"url":"https://github.com/actus-ag/llm-ui/issues"},"license":"MIT","readme":"# @actus-ag/llm-ui\n\nDisplay language model outputs in your Svelte project.\n\nA Svelte port of [llm-ui](https://github.com/llm-ui-kit/llm-ui), maintained by Actus AG.\n\nMore examples: https://llm-ui.com.\n\nVisit http://llm-ui.com/docs to view the documentation.\n\n## Installation\n\n```bash\nnpm install @actus-ag/llm-ui\n# or\npnpm add @actus-ag/llm-ui\n# or\nyarn add @actus-ag/llm-ui\n```\n\n## Usage\n\n```svelte\n<script lang=\"ts\">\n  import { createLLMOutput } from '@actus-ag/llm-ui';\n  \n  const llmOutput = createLLMOutput({\n    llmOutput: \"Your LLM output here\",\n    isStreamFinished: false,\n    fallbackBlock: {\n      component: TextBlock,\n      lookBack: (params) => ({\n        output: params.output,\n        visibleText: params.output.slice(0, params.visibleTextLengthTarget)\n      })\n    }\n  });\n</script>\n\n<div>\n  {#each $llmOutput.blockMatches as match}\n    <svelte:component this={match.block.component} blockMatch={match} />\n  {/each}\n</div>\n```\n\n## Features\n\n- Removes broken markdown syntax\n- Add your own custom components to LLM output\n- Throttling smooths out pauses in the LLM's streamed output\n- Renders output at native frame rate\n- Code blocks for every language with [Shiki](https://shiki.style)\n- Headless: Bring your own styles\n\n## License\n\n[MIT](/LICENSE)\n","readmeFilename":"README.md","_rev":"1-dd6e5010c8b5d46d68a7468abb9a3881"}