Giter Site home page Giter Site logo

NPM Notification about ideas HOT 10 CLOSED

open-source-ideas avatar open-source-ideas commented on May 19, 2024 2
NPM Notification

from ideas.

Comments (10)

phun-ky avatar phun-ky commented on May 19, 2024 2

Have you tried https://doppins.com/ ? It does what you want, sort of. I understand from your spec that you want something smaller. https://gemnasium.com/ is something else, not that obtrusive, but works.

from ideas.

bsonntag avatar bsonntag commented on May 19, 2024 1

As promised, here's the code: https://github.com/bsonntag/npm-notifier

from ideas.

Haroenv avatar Haroenv commented on May 19, 2024 1

https://twitter.com/holman/status/793561589290979328 Libraries.io might have a similar feature now

from ideas.

styfle avatar styfle commented on May 19, 2024 1

A scenario I can envision: I get an update that Jest has a new major version released. I know this means an API breakage, so I can see the changelog and see what's changed.

For anyone else running into this problem, I have been using https://dependabot.com and it works great for notifying any changes to a package.

Any time a new version is released, it creates a PR with the following:

  • Release notes from github
  • CHANGELOG.md (since previous release)
  • Commits (since previous release)
  • Compatibility (how many others updated from previous version and tests still pass)

See an example here: styfle/packagephobia#94

from ideas.

FredrikAugust avatar FredrikAugust commented on May 19, 2024 1

Closing as it is fixed by @bsonntag, and any further discussion should be moved there.

from ideas.

mikaelbr avatar mikaelbr commented on May 19, 2024

Thanks for the update! Yeah, I've seen both greenkeeper.io and doppins.com. But that's not really the same problem as this though. This is more for a person to keep updated on package/module progress, and not as much for a project to get updated to the latest version. You can call this "bigger picture stuff" in a sense.

A scenario I can envision: I get an update that Jest has a new major version released. I know this means an API breakage, so I can see the changelog and see what's changed. If there are any new features I really want I know I can update in some projects.

So it's more an immediate notification when something major happens. If that makes sense?

from ideas.

brankol avatar brankol commented on May 19, 2024

I'd be interested to work on this but I'm not sure how to go about it.
You mentioned npm hooks as a way of subscribing to changes but unless I'm missing something, there are a couple of issues there:

  1. npm hooks are only available to paid users
  2. there is a limit of 100 hooks per user account which might or might not be an issue depending on how many projects a user would like to track
  3. you need to give a callback URI when setting up a hook and given that most people are behind dynamic IPs, one would need a dynamic dns just for this
  4. if this is implemented as a hosted service, there would be a problem of running a long lived process on your computer which would listen for updates and trigger a notification

from ideas.

mikaelbr avatar mikaelbr commented on May 19, 2024

Great! I haven't dived any deep into the new hooks API, so this might not even be possible using that. I thought that hooks would be for paid users only as a beta, but maybe I figured wrong.

If hooks aren't the way to go, maybe you could investigate doing some polling with caching. Have to confer with the licensing for NPM here, but doing something like npm show <package-name> version periodically (not too often) could be a fallback.

from ideas.

bsonntag avatar bsonntag commented on May 19, 2024

I've been playing around with this idea by following this guide: https://github.com/npm/registry-follower-tutorial

I have two working examples, one using node-notifier and another using Electron. I'll share the code soon.

from ideas.

mikaelbr avatar mikaelbr commented on May 19, 2024

Cool! I get that it's probably still for experimenting and good idea to make an electron app from it. Didn't think of that 👍 I would suggest (and you are probably thinking this already) to split up the different user interfaces (electron and CLI) to two different packages both using a library for getting the data. Users interested in the CLI shouldn't have to install electron etc. But as I said, you are probably thinking this already.

from ideas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.