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

doxy.me

v1.0.0

Published

Embeddable SDK for easily iframing doxy.me into your application

Readme

Doxy.me Embeddable SDK

Easily embed doxy.me into your application using iframes with this simple npm package.

Installation

npm install doxy.me

Usage

Basic Usage

Embed any doxy.me URL:

import { embedDoxyMe } from 'doxy.me';

// Embed into a container element
const container = document.getElementById('doxy-container');
const { iframe, destroy } = embedDoxyMe(container, {
  url: 'https://doxy.me/sign-in',
  width: '100%',
  height: '600px'
});

// Clean up when done
// destroy();

Provider Sign-In

Embed the provider sign-in page:

import { embedProviderSignIn } from 'doxy.me';

const container = document.getElementById('doxy-container');
const { iframe } = embedProviderSignIn(container, {
  width: '100%',
  height: '700px'
});

Patient Room

Embed a patient room using a room slug:

import { embedPatientRoom } from 'doxy.me';

const container = document.getElementById('doxy-container');
const roomSlug = 'patient-room-123';
const { iframe } = embedPatientRoom(container, roomSlug, {
  width: '100%',
  height: '800px'
});

Using CSS Selector

You can also use a CSS selector string instead of an element:

import { embedDoxyMe } from 'doxy.me';

embedDoxyMe('#doxy-container', {
  url: 'https://doxy.me/sign-in',
  width: '100%',
  height: '600px'
});

Advanced Options

import { embedDoxyMe } from 'doxy.me';

embedDoxyMe('#doxy-container', {
  url: 'https://doxy.me/sign-in',
  width: '100%',
  height: '600px',
  allow: 'camera; microphone; fullscreen',
  className: 'doxy-iframe',
  id: 'doxy-iframe-1',
  style: {
    borderRadius: '8px',
    boxShadow: '0 2px 8px rgba(0,0,0,0.1)'
  },
  onLoad: () => {
    console.log('Doxy.me iframe loaded');
  },
  onError: (error) => {
    console.error('Error loading doxy.me:', error);
  }
});

API Reference

embedDoxyMe(container, options)

Embeds a doxy.me iframe into the specified container.

Parameters:

  • container (HTMLElement | string): The DOM element or CSS selector where the iframe should be embedded
  • options (DoxyMeOptions): Configuration options
    • url (string, required): The doxy.me URL to embed
    • width (string | number, optional): Iframe width (default: '100%')
    • height (string | number, optional): Iframe height (default: '600px')
    • allow (string, optional): Iframe allow attribute (default: 'camera; microphone; fullscreen')
    • sandbox (string, optional): Iframe sandbox attribute
    • className (string, optional): CSS class name for the iframe
    • id (string, optional): ID attribute for the iframe
    • style (object, optional): Custom CSS styles
    • onLoad (function, optional): Callback when iframe loads
    • onError (function, optional): Callback when iframe errors

Returns:

  • Object with iframe (HTMLIFrameElement) and destroy() method

embedProviderSignIn(container, options?)

Embeds the provider sign-in page.

Parameters:

  • container (HTMLElement | string): The DOM element or CSS selector
  • options (optional): Same as embedDoxyMe options (excluding url)

Returns:

  • Object with iframe and destroy() method

embedPatientRoom(container, roomSlug, options?)

Embeds a patient room.

Parameters:

  • container (HTMLElement | string): The DOM element or CSS selector
  • roomSlug (string, required): The room slug for the patient room
  • options (optional): Same as embedDoxyMe options (excluding url)

Returns:

  • Object with iframe and destroy() method

Examples

React Example

import React, { useEffect, useRef } from 'react';
import { embedDoxyMe } from 'doxy.me';

function DoxyMeEmbed({ url }) {
  const containerRef = useRef(null);

  useEffect(() => {
    if (containerRef.current) {
      const { destroy } = embedDoxyMe(containerRef.current, {
        url,
        width: '100%',
        height: '600px'
      });

      return () => {
        destroy();
      };
    }
  }, [url]);

  return <div ref={containerRef} />;
}

Vanilla JavaScript Example

<!DOCTYPE html>
<html>
<head>
  <title>Doxy.me Embed</title>
</head>
<body>
  <div id="doxy-container"></div>

  <script type="module">
    import { embedPatientRoom } from 'doxy.me';

    embedPatientRoom('#doxy-container', 'patient-room-123', {
      width: '100%',
      height: '800px'
    });
  </script>
</body>
</html>

License

MIT