npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@ogbologbo/roomkit-react

v0.0.7

Published

![Banner](https://github.com/100mslive/web-sdks/blob/06c65259912db6ccd8617f2ecb6fef51429251ec/prebuilt-banner.png) # Room Kit React Library

Downloads

29

Readme

Banner

Room Kit React Library

100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.

Installation

// npm
npm install @ogbologbo/roomkit-react@latest --save

// yarn
yarn add @ogbologbo/roomkit-react@latest

Usage

Using room code

import { HMSPrebuilt } from '@ogbologbo/roomkit-react'

export default App() {
    return (
        <HMSPrebuilt roomCode={<room-code>} />
    );
}

Using authToken

import { HMSPrebuilt } from '@ogbologbo/roomkit-react'

export default App() {
    return (
        <HMSPrebuilt authToken={<auth-token>} />
    );
}

For additional props, refer the docs

Cutomization

While we offer a no-code way to customize Prebuilt, you can fork your copy of the Prebuilt component and make changes to the code to allow for more fine-tuning.

Prebuilt customisations are available on 100ms dashboard

Understanding the Structure

The src folder contains all the components, Button, Accordion etc. The Prebuilt folder contains the full Prebuilt implementation. App.tsx is the entry point for the Prebuilt which contains the HMSPrebuilt component.

Major Components in Prebuilt

| Component | Description | |--|--| | RoomLayoutProvider | This is a context that contains the configuration from the dashboard customiser. Whatever changes are made in the dashboard customiser are available the next time you join.| |AppStateContext | Contains the logic to switch between different screens, for example, Preview to Meeting, Meeting to Leave. These transitions are based on the roomState that is available from the reactive store (useHMSStore(selectHMSRoomState)). | | PreviewScreen | Contains the Preview implementation. Contains the Video tile, video, audio toggles and Virtual background and settings along with the name input.| | ConferenceScreen | This contains the screen once you finish Preview and enter the meeting. This contains the header and footer and the main content.| | VideoStreamingSection |This is the component that contains the main video rendering components and a sidebar (Interactive features like Chat and Polls are displayed here) | | LeaveScreen |This is the screen that is shown when you leave the meeting |

Customising the Styles

Base Config has all the variables that you can use. Any changes you want for the theme can be made here. Most likely no additional changes will be required unless you want to introduce new variables.

When HMSThemeProvider is used at the top level, all the variables will be available for all the children under this component tree.

For components created using the base components like Box, Flex, Button etc, css Prop is available to modify the styles. Within the css prop, you can access the variables from the base config.

Contributing

  • Make sure whatever new Component/file you create is in Typescript.

  • Don't forget to add data-testid for actionables like buttons, menus etc.

  • Setup proper tooling (ESLint and Prettier) in your editor.

  • yarn lint will be run before you push the changes, so whenever a push fails, check if there are any lint errors.

Read this doc for the coding guidelines.

Community & Support

  • GitHub Issues - Submit any bugs or errors you encounter using the Web SDKs.
  • Discord - Hang out with the community members, share your projects or ask questions to get help from the 100ms team.
  • Contact - Reach out to 100ms team to get pricing information, understand how we can help you go live, or to learn more about the platform.