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

copycast

v5.2.4

Published

Live remote copy-pasta explorer for training sessions

Downloads

24

Readme

npm version Dependency Status

copycast

Live remote copy-pasta explorer for code training sessions

Use case

workshop

Long code workshops (like a few days) can rapidly turn into hell for trainees.

The sessions rhythm is usually quite high and attendees often have a hard time to follow oral instructions and advices, watch demos on the main screen and keep coding their projects simultaneously.

After only a few hours, the frustration is quite painful: people tend to give up because their project gets broken and they can't follow anymore despite the repeated help of the teacher.

copycast was created to fix this situation.

What's inside?

copycast = file system watcher + websocket server + reactive webclient

What does it look like?

copycast

Here's how it works:

  • At the beginning of the session, the teacher starts copycast on its machine, watching a specific directory.
  • Attendees connect through their web browser to the provided local network address.
  • Their screen displays the directory tree on the left and the selected file on the right, like a readonly text-editor.
  • Each time the teacher edit and save a file, the change is broadcasted to every student who can freely copy-paste snippets to stay up to date.

Bonus

  • The code is highlighted with the theme of your choice
  • Timers indicate recent file modifications
  • Files can be downloaded
  • Files can be copied to clipboard
  • Markdown preview
  • Images, fonts, .git, and any file matched by your .gitignore are excluded
  • Integration with localtunnel
  • If a .git folder is found, you can git pull http://{HOST}:{PORT}/project.git

Install

npm i -g copycast

Usage

copycast -d YOUR_DIR -p YOUR_PORT

Open localhost:YOUR_PORT in a web browser

  • -d: default to .
  • -p: default to 42000
  • -l [subdomain]: to enable localtunnel if you need a public URL, default to false
  • -G: disable Git support

Note: if you open a localtunnel, the subdomain will be automatically stored in a local .copycast file and will be requested next time so that URL won't change between sessions.

Dev

To start the server and build the client:

npm i
npm run watch

To print debug logs:

DEBUG=watcher,socket npm run start

License

Made by the ByteClub

ISC