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

@directus-labs/whereby-embedded-interface

v1.0.0

Published

Embed Whereby video calls inside Directus

Downloads

42

Readme

Whereby Embedded Interface for Directus

Whereby Interface Preview

The Whereby Embedded Interface allows you to seamlessly integrate Whereby's video meeting capabilities directly into your Directus project.

You’ll need a Whereby Embedded account to use this interface. Learn more and sign up on their website at whereby.com

Features

  • Manage Whereby video meetings from within Directus
  • Display meeting room information
  • Join meetings with a single click
  • Support for host and viewer roles
  • Expiration date handling
  • Copy meeting URLs to clipboard
  • Open meeting URLs in new tabs

Use Cases

  • Virtual Team Meetings: Host team meetings directly from your Directus project management interface.
  • Customer Support: Provide face-to-face support sessions integrated with your customer data.
  • Online Interviews: Conduct job interviews with candidates, with all relevant information at your fingertips.
  • Remote Consultations: Ideal for healthcare, legal, or other professional services requiring secure video meetings.
  • Educational Sessions: Host classes or tutoring sessions linked to student records in Directus.

Installation & Setup

To install the extension, take a look at the Official Guide.

To enable the Whereby interface to work, you’ll need to update your CSP directives within your Directus Config as follows:

CONTENT_SECURITY_POLICY_DIRECTIVES__FRAME_SRC="https://*.whereby.com"
CONTENT_SECURITY_POLICY_DIRECTIVES__SCRIPT_SRC="array:'self', https://*.whereby.com 'unsafe-eval' 'unsafe-inline'"
CONTENT_SECURITY_POLICY_DIRECTIVES__CONNECT_SRC="'self' https://*.whereby.com https://api.whereby.dev wss://*.whereby.com"
CONTENT_SECURITY_POLICY_DIRECTIVES__IMG_SRC="'self' data: blob: https://*.whereby.com"

Whereby Interface Setup

  1. Install the Whereby Embedded Interface extension in your Directus project.
  2. Create a field in your desired collection with the type "JSON".
  3. Set the interface for this field to "Whereby Embedded".
  4. Ensure the Whereby room data is populated in the JSON field (see Whereby Room Data Structure below).

Whereby Room Data Structure

The interface expects the following JSON structure for the Whereby room data:

{
  "startDate": "2024-08-29T14:00:00.000Z",
  "endDate": "2024-08-29T15:00:00.000Z",
  "roomName": "Your Meeting Room",
  "roomUrl": "https://whereby.com/your-room-url",
  "meetingId": "meeting-id-123",
  "hostRoomUrl": "https://whereby.com/your-host-room-url",
  "viewerRoomUrl": "https://whereby.com/your-viewer-room-url"
}

Populating Whereby Room Data

There are multiple ways to populate the Whereby room data in your Directus instance. One recommended approach is to use Directus flows:

  1. Create a flow that triggers when an item is created or updated.

  2. Use the Webhook / Request URL operation to call the Whereby API and create a room.

    That operation may look something like this.

    Sample Directus Flow that demonstrates how to populate Whereby Room Data

  3. Update the item data with the Whereby room information.

This is just one possible method. You can also use custom API endpoints, hooks, or other integration methods depending on your specific needs and infrastructure.

Review the Whereby REST API Reference for more information

Customizing Rooms

Whereby has a lot of customization available.

You can customize the default backgrounds, logos, and primary colors from within the Whereby Dashboard:

  • Log into your Whereby account and navigate to the room settings.
  • Look for the "Customize room" or "Theme" section.
  • Choose from the available default themes provided by Whereby.
  • Apply the selected theme to see immediate changes in your room's appearance.

Or you can also use the Whereby API to programmatically update room themes.

Security Considerations

  • Keep your Whereby API key secure.
  • Use Directus roles and permissions to control access to the Whereby interface and associated data.
  • Ensure that your Whereby room settings align with your organization's security policies.