
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
stream-chat-react
Advanced tools
React components to create chat conversations or livestream style chat
The official React components for Stream Chat, a service for building chat applications.
Quick Links
With our component library, you can build a variety of chat use cases, including:
The best way to get started is to follow the React Chat Tutorial. It shows you how to use this SDK to build a fully functional chat application and includes common customizations.
Stream is free for most side and hobby projects. To qualify, your project/company must have no more than 5 team members and earn less than $10k in monthly revenue. For complete pricing and details visit our Chat Pricing Page.
npm install stream-chat stream-chat-react
yarn add stream-chat stream-chat-react
We have built five demo applications showcasing a variety of chat use cases, including social messaging, team collaboration, customer support, livestream gaming, and virtual event. You can preview these demos on our website. Also, the code is open source.
We use a doc generator to build our component documentation. We provide a brief description of each chat component and define all of the props it accepts.
The React components are created using the stream-chat library. If you're customizing the components, it's likely you'll need to make additional calls to our Chat API using our JavaScript client, which has documentation on our website.
For components that implement significant logic, it's helpful to split the component into two parts: a top-level component which handles functionality and a lower level component which renders the UI. This way you can swap UI without altering the logic that gives the component its functionality. We use this provider/consumer pattern frequently in the library, and the below example shows how to swap out the Message
UI component with CustomMessageUI
(using WithComponents
), without affecting any logic in the application.
<Channel>
<Window>
<ChannelHeader />
<WithComponents overrides={{ Message: CustomMessageUI }}>
<MessageList />
</WithComponents>
<MessageInput />
</Window>
<Thread />
</Channel>
The preferred method for overriding the pre-defined styles in the library is to two-step process. First, import our bundled CSS into your main CSS file (or CSS file loaded with your chat application). Second, locate any Stream styles you want to override using either the browser inspector or by viewing the library code. You can then add selectors to your local CSS file to override our defaults (ideally within the stream-overrides layer). Layers (when ordered correctly, see example) ensure that your overrides take precedence even if your overriding selectors are less specific. For example:
@layer stream, stream-overrides;
@import 'stream-chat-react/css/v2/index.css' layer(stream);
/* or */
@import 'stream-chat-react/dist/css/v2/index.css' layer(stream);
@layer stream-overrides {
/* your overrides */
}
Our library supports auto-translation for various user languages. Please read our internationalization documentation for further details and setup guidance.
We welcome code changes that improve this library or fix a problem. Please make sure to follow all best practices and add tests, if applicable, before submitting a pull request on GitHub. We are pleased to merge your code into the official repository if it meets a need. Make sure to sign our Contributor License Agreement (CLA) first. See our license file for more details.
We recently closed a $38 million Series B funding round and are actively growing. Our APIs are used by more than a billion end-users, and by working at Stream, you have the chance to make a huge impact on a team of very strong engineers.
Check out our current openings and apply via Stream's website.
This project uses lamejs
library under the LGPL license to convert the recorded audio to mp3 format.
The library source code is dynamically imported and used only if audio recording is enabled.
You can obtain the source code for lamejs
from the lamejs repository that is a fork of the original JS library.
You can find the source code for LAME at https://lame.sourceforge.net and its license at: https://lame.sourceforge.net/license.txt
FAQs
React components to create chat conversations or livestream style chat
The npm package stream-chat-react receives a total of 88,978 weekly downloads. As such, stream-chat-react popularity was classified as popular.
We found that stream-chat-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 9 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
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.