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

@scrypted/nanit

v0.0.10

Published

- Install Node and npm -> https://docs.npmjs.com/downloading-and-installing-node-js-and-npm - Install https://www.scrypted.app/ and follow instructions on the website. - Once you have Scrypted running and can access it...continue

Readme

Nanit Camera

How to install:

  • Install Node and npm -> https://docs.npmjs.com/downloading-and-installing-node-js-and-npm

  • Install https://www.scrypted.app/ and follow instructions on the website.

  • Once you have Scrypted running and can access it...continue

  • Open this plugin directory in VS Code

  • In a terminal cd into this project directory

  • run npm install

  • run npm run build

  • run npm run scrypted-deploy 127.0.0.1 NOTE: you can replace 127.0.0.1 with the ip address of the server you installed scrypted on

The Terminal area may show an authentication failure and prompt you to log in to the Scrypted Management Console with npx scrypted login. You will only need to do this once. You can then relaunch afterwards. The command if your scrypted instance is remote is npx scrypted login ip:port

  • Launch Scrypted, go to "Devices"
  • You should see a device named Nanit Camera Plugin, click it
  • Enter your email and password on the right, then click save.
  • You'll receive the mfa token enter that in the "Two Factor Code" and click save again
  • Wait a few seconds then reload the page: Refresh Token, Access Token and Expiration should all have values
  • Now go back to devices and you should see a new device that is named the same as your Nanit Device. Click it and then click the video and it should be streaming!

Troubleshooting

If you aren't seeing the video load, first try clearing the Expiration value in the Nanit Camera Plugin and click save. This will force the plugin to get a new token.

If you are still having issues then clear the access_token and refresh_token values and click save.

Finally, Login again with your username and password + two factor auth by following instructions in above section

Other Notes

It is currently setup as a Battery camera in Scrypted. The only reason this is done is so that Scrypted doesn't pre-buffer. When the camera is not battery Scrypted will stay connected to the stream 24/7, instead of on demand when the rtsp/homekit stream is requested. I suspect if we stay connected to the Nanit stream 24/7 they would take notice eventually.

If you want to disable this. Remove the ScryptedInterface.Battery from line main.ts.

const interfaces = [
                ScryptedInterface.Camera,
                ScryptedInterface.VideoCamera,
                ScryptedInterface.MotionSensor,
                ScryptedInterface.Battery //REMOVE THIS
            ];

The Snapshot Photos are not working right now. You may see a "Failed Snapshot" screen until I can get that working.

Importing into Home Assistant

Method 1

  • Under the camera, make sure the rebroadcast plugin is enabled.
  • In the Camera settings go to the Stream and there should be a "RTSP Rebroadcast URL" box. Copy that value
  • In HomeAssistant add a camera entity -> https://www.home-assistant.io/integrations/generic/
    • The copied value is your "stream source"

Method 2

  • https://github.com/koush/scrypted/wiki/Installation:-Home-Assistant-OS