Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
= One True Repo
== One feed to rule them all, and in the mashup bind them.
Created by {Stephen McDonald}[http://twitter.com/stephen_mcd]
One True Repo merges both the {GitHub}[http://github.com] and {Bitbucket}[http://bitbucket.org] APIs into a single JSON feed, for the purpose of combining numbers of watchers and forks across duplicate repositories. It comes as both a {Sinatra}[http://sinatrarb.com] app and command-line gem.
=== Sinatra
The Sinatra app is hosted on Heroku at {otr.jupo.org}[http://otr.jupo.org]. Add your username to the path to get your feed. For example my GitHub and Bitbucket username is +stephenmcd+ so my feed is available at {otr.jupo.org/stephenmcd}[http://otr.jupo.org/stephenmcd]. If you have different usernames between GitHub and Bitbucket, you can use the URL {otr.jupo.org/github_username/bitbucket_username}[http://otr.jupo.org/github_username/bitbucket_username] to provide them separately. Note that feeds are cached for about 24 hours.
=== JSON
Here's a sample of the JSON provided:
[ { "name": "mezzanine", "urls": [ "https://github.com/stephenmcd/mezzanine", "https://bitbucket.org/stephenmcd/mezzanine" ], "watchers": 316, "forks": 102, "fork": false }, { "name": "django-socketio", "urls": [ "https://github.com/stephenmcd/django-socketio", "https://bitbucket.org/stephenmcd/django-socketio" ], "watchers": 112, "forks": 11, "fork": false } ]
=== JSONP
You can also append a +callback+ parameter to the Sinatra app's URLs, specifying the name of a JavaScript function to call:
=== Ruby Gem
One True Repo is also an installable gem named +otr+. Install the +otr+ gem with the following command:
$ gem install otr
Once installed, +otr+ can be called from the command-line and will output its JSON feed:
Usage: otr [options]
-u, --username NAME Combined GitHub / Bitbucket username
-g, --github-username NAME GitHub username if different from
Bitbucket username (required without -u)
-b, --bitbucket-username NAME Bitbucket username if different from
GitHub username (required without -u)
-h, --help Show this message
-v, --version Show version
You can also use +otr+ in your own Ruby code:
require 'rubygems' require 'otr'
options = {:username => "stephenmcd"}
options = {:github_username => "alice", :bitbucket_username => "bob"}
json = OTR.get(options).to_json
FAQs
Unknown package
We found that otr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.