{"_id":"@blocknote/xl-ai-server","name":"@blocknote/xl-ai-server","dist-tags":{"latest":"0.31.0"},"versions":{"0.31.0":{"name":"@blocknote/xl-ai-server","homepage":"https://github.com/TypeCellOS/BlockNote","private":false,"license":"AGPL-3.0 OR PROPRIETARY","version":"0.31.0","keywords":["react","javascript","editor","typescript","prosemirror","wysiwyg","rich-text-editor","notion","yjs","block-based","tiptap"],"description":"A \"Notion-style\" block-based extensible text editor built on top of Prosemirror and Tiptap.","type":"module","source":"src/index.ts","types":"./types/src/index.d.ts","main":"./dist/blocknote-xl-ai-server.umd.cjs","module":"./dist/blocknote-xl-ai-server.js","exports":{".":{"types":"./types/src/index.d.ts","import":"./dist/blocknote-xl-ai-server.js","require":"./dist/blocknote-xl-ai-server.umd.cjs"}},"dependencies":{"@hono/node-server":"^1.13.7","hono":"^4.6.12"},"devDependencies":{"eslint":"^8.10.0","rimraf":"^5.0.5","rollup-plugin-webpack-stats":"^0.2.2","typescript":"^5.3.3","vite":"^5.3.4","vite-node":"^2.1.6","vite-plugin-eslint":"^1.8.1","vite-plugin-externalize-deps":"^0.8.0","vitest":"^2.0.3","undici":"^6"},"peerDependencies":{},"eslintConfig":{"extends":["../../.eslintrc.js"]},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"scripts":{"dev":"vite-node src/index.ts","build":"tsc && vite build","start":"node dist/blocknote-xl-ai-server.js","lint":"eslint src --max-warnings 0","clean":"rimraf dist && rimraf types"},"_id":"@blocknote/xl-ai-server@0.31.0","_integrity":"sha512-AcKmuS/eB2o/qSczUIvru9dZC8AWi4quMKSHrP9aDkQmXyPnvOvMIbqqgMBksx1HAvS3/+FBj1Dz4tbJIdpX9g==","_resolved":"/private/var/folders/gd/8f7xsgb10fv5bsmpdlzx4wkh0000gn/T/235e9d7ec5623dc16204dee9da3190ca/blocknote-xl-ai-server-0.31.0.tgz","_from":"file:blocknote-xl-ai-server-0.31.0.tgz","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-AcKmuS/eB2o/qSczUIvru9dZC8AWi4quMKSHrP9aDkQmXyPnvOvMIbqqgMBksx1HAvS3/+FBj1Dz4tbJIdpX9g==","shasum":"e61b91b64c0f7eb0c68c1174ea4ad7ab3b8fa574","tarball":"https://registry.npmjs.org/@blocknote/xl-ai-server/-/xl-ai-server-0.31.0.tgz","fileCount":10,"unpackedSize":77158,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDGuHks5DKLM8+qwhQ/uz9BMrypvA0WoyrGEr+fZzc+rAiEA8sxbNMvHl0/JGwciBh3aJFzm9K2az6jiohH7cNs2Tsk="}]},"_npmUser":{"name":"nperez0111","email":"computers@nickthesick.com"},"directories":{},"maintainers":[{"name":"yousefed","email":"yousefdardiry@gmail.com"},{"name":"matthewlipski","email":"matthewlipski@gmail.com"},{"name":"nperez0111","email":"computers@nickthesick.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/xl-ai-server_0.31.0_1747757888708_0.2398333002079065"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-20T16:18:08.606Z","0.31.0":"2025-05-20T16:18:08.946Z","modified":"2025-05-20T16:18:09.307Z"},"maintainers":[{"name":"yousefed","email":"yousefdardiry@gmail.com"},{"name":"matthewlipski","email":"matthewlipski@gmail.com"},{"name":"nperez0111","email":"computers@nickthesick.com"}],"description":"A \"Notion-style\" block-based extensible text editor built on top of Prosemirror and Tiptap.","homepage":"https://github.com/TypeCellOS/BlockNote","keywords":["react","javascript","editor","typescript","prosemirror","wysiwyg","rich-text-editor","notion","yjs","block-based","tiptap"],"license":"AGPL-3.0 OR PROPRIETARY","readme":"# BlockNote AI Server\n\nThe BlockNote AI Server is a simple demo node.js ([Hono](http://hono.dev/)) Proxy server you can use to pass requests to third party LLM provider without exposing your LLM API keys on the client.\n\nThe server exposes the endpoint `/ai?url=<URL-TO-FETCH>&provider=<PROVIDERNAME>` which can handle LLM requests (e.g.: created with the [AI SDK](https://ai-sdk.dev/)). These are forwarded to `URL-TO-FETCH` with API keys loaded from environment variables.\n\n## Requirements\n\nRequirements:\n\n- `mkcert` for local testing over https ([instructions](https://web.dev/articles/how-to-use-local-https))\n\n## Configuration\n\nConfigure your environment variables according to `.env.example`.\n\n## Running (dev mode):\n\n    mkcert localhost\n    pnpm run dev\n\n## Client Usage\n\nuse `createBlockNoteAIClient` from `@blocknote/xl-ai` to create an API client to connect to the BlockNote AI Server / proxy.\n","readmeFilename":"README.md","_rev":"1-755dd56a630e58a33c1d1dc110f0934d"}