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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@tinyweb_dev/oe-meeting-react

v0.6.0

Published

React SDK to embed OE Meeting rooms via iframe and postMessage

Readme

@tinyweb_dev/oe-meeting-react

React SDK để nhúng phòng OE Meeting vào OE.School hoặc hệ thống LMS khác.

Tài liệu tích hợp

Ví dụ nhanh

'use client';

import { useRef } from 'react';
import {
  OeMeeting,
  type OeMeetingHandle,
} from '@tinyweb_dev/oe-meeting-react';

export function OnlineLesson({
  roomSlug,
  joinToken,
}: {
  roomSlug: string;
  joinToken: string;
}) {
  const meetingRef = useRef<OeMeetingHandle>(null);

  return (
    <OeMeeting
      ref={meetingRef}
      roomSlug={roomSlug}
      joinToken={joinToken}
      height="100vh"
      hideLeave
      autoTranscribe
      autoRecord
      onJoined={(event) => console.info('joined', event.payload)}
      onLeft={(event) => console.info('left', event.payload)}
      onEnded={(event) => {
        // Backend OE.School lấy transcript + recordings bằng roomSlug.
        console.info('ended', event.payload.roomSlug)
      }}
    />
  );
}

Transcript

autoTranscribe bật transcript ngay khi embed kết nối. Transcript là tài sản cấp phòng: người đầu tiên vào bật lên, mọi người sau nhận outcome: "already_running", và nó vẫn chạy khi người bật rời sớm. Kết quả đến qua onTranscriptStarted.

Sau buổi học, backend OE.School lấy transcript bằng GET /external-api/v1.0/rooms/:idOrSlug/transcript (scope transcripts:retrieve). Thời điểm gọi là event ENDED (onEnded), không phải LEFT.

Recording

autoRecord tự ghi toàn bộ phòng khi embed kết nối và báo kết quả qua onRecordingStarted. Chủ phòng (role: "owner") có nút tắt ghi trên thanh điều khiển; bấm thì file được lưu dù còn người trong phòng. Token không có role không thấy nút. Backend tích hợp lấy danh sách cùng URL tải tạm thời bằng GET /external-api/v1.0/rooms/:idOrSlug/recordings (scope recordings:retrieve). Thời hạn tải do RECORDING_EXPIRATION_DAYS cấu hình; bucket S3/MinIO phải có lifecycle rule cùng số ngày để xóa file thật.

Bảo mật

  • joinToken phải được backend OE.School lấy server-to-server từ external API.
  • Không đưa X-Client-Secret vào browser.
  • Backend OE.School chỉ mint token sau khi kiểm tra user thuộc roster buổi học.
  • Tạo phòng buổi học với access level restricted.
  • Muốn giới hạn share màn hình thì gửi role và permissions lúc cấp token. Không gửi thì ai cũng share được.

Imperative API

OeMeetingHandle cung cấp leave(), toggleMic(), toggleCamera(), openStage(), closeStage() và getIframe(). Host giữ nội dung tool (trang PDF, nét vẽ); Meeting chỉ sync URL Stage. Host stamp attributes.stage (open | follow) nếu cần hạn chế origin OPEN/CLOSE.