{"_rev":"24-7e880a0877d34730e89f0e1e8ce98057","time":{"created":"2025-10-13T03:30:15.077Z","modified":"2025-10-13T03:30:15.747Z","0.0.1-beta.42d6977":"2025-06-14T07:53:28.592Z","0.0.1":"2025-06-14T08:00:36.322Z","0.0.2-beta.a625300":"2025-06-14T19:48:26.897Z","0.0.3-beta.cd8afed":"2025-06-14T19:53:38.779Z","0.0.3":"2025-06-14T20:15:11.896Z","0.0.4":"2025-06-15T02:07:31.808Z","0.0.5-beta-01":"2025-06-15T02:41:39.226Z","0.0.5":"2025-06-15T13:12:05.546Z","0.0.6":"2025-06-16T16:57:12.740Z","0.0.7":"2025-06-17T02:35:35.030Z","0.0.8":"2025-06-21T11:13:08.722Z","0.0.9":"2025-06-22T04:36:19.956Z","0.0.10":"2025-06-27T17:30:38.182Z","0.0.11":"2025-06-27T18:23:03.390Z","0.0.12":"2025-06-27T18:44:07.440Z","0.0.13":"2025-06-27T18:57:09.867Z","0.0.14":"2025-06-28T04:33:37.328Z","0.0.15":"2025-06-28T11:07:05.610Z","0.0.16":"2025-06-29T15:42:33.092Z","0.0.17":"2025-10-13T02:58:27.561Z","0.0.18":"2025-10-13T03:09:46.155Z","0.0.2":"2025-10-13T03:30:15.502Z"},"_id":"@alpha.xone/langchat","name":"@alpha.xone/langchat","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.2":{"name":"@alpha.xone/langchat","version":"0.0.2","description":"Intuitive chat component for your AI apps","main":"./lib/module/index.js","types":"./lib/typescript/src/index.d.ts","exports":{".":{"source":"./src/index.tsx","types":"./lib/typescript/src/index.d.ts","default":"./lib/module/index.js"},"./package.json":"./package.json"},"scripts":{"example":"yarn workspace langchat-example","test":"jest","typecheck":"tsc","lint":"eslint \"**/*.{js,ts,tsx}\"","clean":"del-cli lib","prepare":"bob build","release":"release-it --only-version"},"keywords":["react-native","ios","android"],"repository":{"type":"git","url":"git+https://github.com/alpha-xone/langchat.git"},"author":{"name":"alpha-xone","email":"alpha.xone@outlook.com","url":"https://github.com/alpha-xone"},"license":"MIT","bugs":{"url":"https://github.com/alpha-xone/langchat/issues"},"homepage":"https://github.com/alpha-xone/langchat#readme","publishConfig":{"registry":"https://registry.npmjs.org/"},"devDependencies":{"@commitlint/config-conventional":"^19.8.1","@eslint/compat":"^1.3.2","@eslint/eslintrc":"^3.3.1","@eslint/js":"^9.35.0","@evilmartians/lefthook":"^1.12.3","@react-native/babel-preset":"0.81.1","@react-native/eslint-config":"^0.81.1","@release-it/conventional-changelog":"^10.0.1","@types/jest":"^29.5.14","@types/react":"^19.1.12","commitlint":"^19.8.1","del-cli":"^6.0.0","eslint":"^9.35.0","eslint-config-prettier":"^10.1.8","eslint-plugin-prettier":"^5.5.4","jest":"^29.7.0","prettier":"^3.6.2","react":"19.1.0","react-native":"0.81.4","react-native-builder-bob":"^0.40.13","release-it":"^19.0.4","typescript":"^5.9.2"},"peerDependencies":{"react":"*","react-native":"*"},"workspaces":["example"],"packageManager":"yarn@3.6.1","jest":{"preset":"react-native","modulePathIgnorePatterns":["<rootDir>/example/node_modules","<rootDir>/lib/"]},"commitlint":{"extends":["@commitlint/config-conventional"]},"release-it":{"git":{"commitMessage":"chore: release ${version}","tagName":"v${version}"},"npm":{"publish":true},"github":{"release":true},"plugins":{"@release-it/conventional-changelog":{"preset":{"name":"angular"}}}},"prettier":{"quoteProps":"consistent","singleQuote":true,"tabWidth":2,"trailingComma":"es5","useTabs":false},"react-native-builder-bob":{"source":"src","output":"lib","targets":[["module",{"esm":true}],["typescript",{"project":"tsconfig.build.json"}]]},"create-react-native-library":{"languages":"js","type":"library","version":"0.54.5"},"dependencies":{"@expo/ngrok":"^4.1.3","@supabase/supabase-js":"^2.74.0","expo-clipboard":"^8.0.7","lucide-react-native":"^0.545.0","react-native-markdown-display":"^7.0.2","react-native-svg":"^15.14.0","react-native-url-polyfill":"^3.0.0"},"gitHead":"db9cba443af11b9cbd3436377bc8a2ff46773178","_id":"@alpha.xone/langchat@0.0.2","_nodeVersion":"22.17.0","_npmVersion":"11.6.1","dist":{"integrity":"sha512-KvVWzX37pqax1BNpk+/48r5wQPfm2qWJQCA2Jp8CsHAK2aXk9ovG4OBTMUMNrVbsdJSGuocwyYTVpWldKCEAsQ==","shasum":"d6fd737ec7a6d4e0861060a254b41fee8df001b5","tarball":"https://registry.npmjs.org/@alpha.xone/langchat/-/langchat-0.0.2.tgz","fileCount":263,"unpackedSize":1665155,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIG2Ili4fYx5kGnDUSTt30VIxuE8gRToELVEYvJJYNzM5AiB1IBh5hMSJfLjmvNx3h+Pm69xcgrxLjWipOO7kYIm4+A=="}]},"_npmUser":{"name":"alpha.xone","email":"alpha.xone@outlook.com"},"directories":{},"maintainers":[{"name":"alpha.xone","email":"alpha.xone@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/langchat_0.0.2_1760326215172_0.837219852768647"},"_hasShrinkwrap":false}},"maintainers":[{"name":"alpha.xone","email":"alpha.xone@outlook.com"}],"description":"Intuitive chat component for your AI apps","homepage":"https://github.com/alpha-xone/langchat#readme","keywords":["react-native","ios","android"],"repository":{"type":"git","url":"git+https://github.com/alpha-xone/langchat.git"},"author":{"name":"alpha-xone","email":"alpha.xone@outlook.com","url":"https://github.com/alpha-xone"},"bugs":{"url":"https://github.com/alpha-xone/langchat/issues"},"license":"MIT","readme":"# langchat\n\nLightweight React Native chat UI with streaming SSE support for AI assistants.\n\nThis library provides a composable `Chat` component, streaming utilities, and\nhelpers to integrate server-sent events (SSE) based assistant responses with\ncollapsible tool-call sections and threaded history.\n\n![LangChat](https://cdn.jsdelivr.net/npm/@alpha.xone/langchat/docs/images/LangChat.png)\n\n## Installation\n\nInstall from npm (scoped package):\n\n```sh\nnpm install @alpha.xone/langchat\n```\n\nOr use yarn:\n\n```sh\nyarn add @alpha.xone/langchat\n```\n\nPackage on npm: https://www.npmjs.com/package/@alpha.xone/langchat\n\nRepository: https://github.com/alpha-xone/langchat\n\n## Quick usage\n\nImport and render the `Chat` component in your React Native app. The example\nbelow shows a minimal usage with basic props. See the `example/` folder for a\nfull demo app that includes authentication and an SSE backend.\n\n```tsx\nimport React from 'react';\nimport { SafeAreaView } from 'react-native';\nimport { Chat } from 'langchat';\n\nexport default function App() {\n\treturn (\n\t\t<SafeAreaView style={{ flex: 1 }}>\n\t\t\t<Chat\n\t\t\t\tassistantId=\"simple\"\n\t\t\t\tconfig={{ maxMessageLength: 2000 }}\n\t\t\t\t// auth, theme, and callbacks can be provided as needed\n\t\t\t/>\n\t\t</SafeAreaView>\n\t);\n}\n```\n\n## Example app\n\nSee `example/` for a complete demo showing authentication, server config, and\nhow to run the example locally with Expo.\n","readmeFilename":"README.md"}