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

@originvault/ov-content-viewer

v0.0.10-alpha.4

Published

A Typescript, React-based UI library for fetching and viewing cheqd DIDs

Readme

@originvault/ov-content-viewer🪟

OVContentViewer is a React component designed to display content in a versatile viewer. It supports full-screen mode, hover effects, and customizable rendering of resources. This component is particularly useful for displaying images and other media types in a user-friendly interface.

Features

  • Full-screen toggle functionality
  • Hoverable icons for additional actions
  • Customizable rendering of content
  • Support for dark mode
  • Responsive design for mobile devices

Installation

To use the OVContentViewer component in your project, follow these steps:

  1. Install Dependencies: Make sure you have React and Material-UI installed in your project. If you haven't installed them yet, you can do so using npm or yarn:

    npm install @mui/material @mui/icons-material

    or

    yarn add @mui/material @mui/icons-material
  2. Add the Component: Import the OVContentViewer component into your desired file:

    import { OVContentViewer } from '@originvault/ov-content-viewer';

Usage

Here’s a basic example of how to use the OVContentViewer component:

import React from 'react';
import { OVContentViewer } from '@originvault/ov-content-viewer';

const App = () => {
  return (
    <OVContentViewer
      did="your-did-here"
      src="your-image-url-here"
      title="Your Title"
      isDarkMode={false}
      hideOriginInfoIcon={false}
      type="image/png"
      alt="Description of the content"
      isFullScreen={false}
      setIsFullScreen={(isFullScreen) => console.log(isFullScreen)}
    />
  );
};

export default App;

Props

The OVContentViewer component accepts the following props:

| Prop | Type | Description | |--------------------------|-------------------------------|-----------------------------------------------------------------------------| | did | string | The decentralized identifier for the content. | | size | "sm" | "md" | "lg" | The size of the content viewer. Default is "md". | | title | string | The title of the content viewer. | | render | (data: any) => React.ReactNode | Custom render function for the content. | | renderProps | { title?: string; onClose: () => void; validatedAt: Date | null; } | Props for the custom render function. | | resourceTypes | string[] | Array of resource types to be rendered. | | resourceRenderer | (resource: any) => React.ReactNode | Custom renderer for resources. | | isFullScreen | boolean | Indicates if the viewer is in full-screen mode. | | setIsFullScreen | (isFullScreen: boolean) => void | Function to toggle full-screen mode. | | isEmbedded | boolean | Indicates if the viewer is embedded. | | isHoverable | boolean | Indicates if hover effects are enabled. | | hideOriginInfoIcon | boolean | Hides the origin info icon if true. | | src | string | The source URL of the content to be displayed. | | type | string | The MIME type of the content. Default is "image/png". | | alt | string | Alternative text for the content. | | isDarkMode | boolean | Indicates if dark mode is enabled. | | embeddedBackgroundColor | string | Background color for embedded mode. | | isMobile | boolean | Indicates if the viewer is being used on a mobile device. |

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.

Acknowledgments