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

viewer-vivid-2d-demo

v0.3.0

Published

This repository contains all file and configs for npm `viewer-vivid-2D` package.

Downloads

21

Readme

viewer-vivid-2D

Description

This repository contains all file and configs for npm viewer-vivid-2D package.

Working

If need to and/delete/modify something in the npm viewer-vivid-2D package here is intruction how you can do it.

Base directory for the package is lib. Lib contains all files that will transpilet into npm package. Vite will transpile the code inside lib to the dist folder. So if you need to do some changes, you will work with this folder.

important don't delete/rename the main.ts file inside the lib folder. All configs in this App watch on this file and without this file customer won't be able to import the PlayerContainer component

important don't delete inside the lib folder vite-env.d.ts because you'll catch a lot of errors at the build time

How to use

If you need to do something, you need to work with the lib folder. But it's not enough just make some changes to add them to the package. After making changes you need to run the command npm run build in your terminal, after this you can see a new folder dist where you can find all your transplanted files.

Testing changes

Before publishing the npm package, I recommend you to test changes locally. In App.tsx you can find next code:

// Import file from the /dist directory for testing builded file
// import { PlayerContainer } from "../dist/components" 

// Import file from the /lib directory for testing changes
import { PlayerContainer } from "../lib/main"

function App() {
  return (
    <PlayerContainer  idProject="15" idProduct="31"/>
  )
}

export default App

As you can see here we have a few imports our main PlayerContainer component:

  • if want to check all your changes before build, you don't need to do anything just start npm run dev;
  • if want to check all your changes after build, you need to uncomment the first import and start npm run dev;

For using this player you need to import

PlayerContainer and put to required props:

  • idProject as default you can use 15;
  • idProduct as default you can use 31;