Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
open-chat-ui
Advanced tools
A React-based chat interface component library with support for threaded conversations, file attachments, and AI model integration.
A React-based chat interface component library with support for threaded conversations, file attachments, and AI model integration.
npm install open-chat-ui
import { ChatApp, ChatProvider } from 'open-chat-ui';
import { apiClient } from './chat-api';
import 'open-chat-ui/style.css';
function App() {
return (
<ChatProvider>
<ChatApp apiClient={apiClient} />
</ChatProvider>
);
}
This repository contains both the component library and a Next.js development environment for testing.
git clone <repository-url>
npm install
npm run dev
npm run build-lib
You can use the included Next.js app to test the component library:
npm run dev
Visit http://localhost:3000 to see the chat interface in action.
Main component that renders the chat interface.
interface ChatAppProps {
apiClient?: ChatApiInterface;
}
Context provider for chat functionality.
Theme context provider for styling.
Supported AI models:
enum BedrockModelNames {
CLAUDE_V3_5_SONNET_V2
CLAUDE_V3_5_SONNET
CLAUDE_V3_5_HAIKU
CLAUDE_V3_OPUS
CLAUDE_V3_SONNET
CLAUDE_V3_HAIKU
}
To publish a new version:
package.json
npm run build-lib
npm publish
This project is licensed under the MIT License.
Welcome all contributions!
FAQs
A React-based chat interface component library with support for threaded conversations, file attachments, and AI model integration.
We found that open-chat-ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.