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

git-remote-encrypted

v0.4.3

Published

WARNING: This is an experimental library, consider it bug infested, insecure, and downright DANGEROUS. If it eats your kitten, no warranty is expressed or implied.

Downloads

18

Readme

git-remote-encrypted

WARNING: This is an experimental library, consider it bug infested, insecure, and downright DANGEROUS. If it eats your kitten, no warranty is expressed or implied.

Usage

Firstly, install the package:

npm -g install git-remote-encrypted

Experiment

Then, to experiment with this proof-of-concept, you can first push to an encrypted repository, and then pull from it into another location.

To push to a new repository:

  • Create a new empty repository on your favourite host (GitHub is fine)
  • Create a local repo
    • mkdir testing-encrypted-git
    • cd testing-encrypted-git
    • git init .
    • git remote add enc encrypted::[email protected]:user/repo.git
      • Or swap this for your any other git url prefixed with encrypted::
    • Add some files, commit
      • echo testing > testing && git add testing && git commit -m 'it works!!'
  • Push as normal
    • git push -u enc master
  • Now check the repo on GitHub
    • Behold encrypted content

NOTE: Your encryption keys have been saved in plain text inside .git at: testing-encrypted-git/.git/encrypted-keys/keys.json. They're in plain text, this is a proof-of-concept.

Then to pull from your encrypted repository:

  • Create a new local repo
    • mkdir testing-decrypted-git
    • cd testing-decrypted-git
    • git init .
    • git remote add enc encrypted::[email protected]:user/repo.git
      • Or swap this for your any other git url prefixed with encrypted::
  • Restore your keys
    • mkdir .git/encrypted-keys
    • Copy the JSON keys into .git/encrypted-keys/keys.json
  • Pull as normal
    • git pull enc master
    • git branch -u enc/master
  • Behold decrypted content

Notes

  • Your remote backup is useless without the keys. You are reponsible for saving them somewhere.
  • This software is extremely experimental, do not rely on it for anything important. There are probably gaping holes in the crypto. Issues or PRs welcome.

Development

To develop this locally, you can do the following:

  • yarn workspaces run build
  • ln -s ~/bin/git-remote-encrypted $(pwd)/cli/index.js
    • Or equivalent. Essentially you need a symlink in your PATH that is called git-remote-encrypted and that targets the cli/index.js file in this folder.
  • You need to rerun the build command after each change, or run the appropriate watch command for both this package and the dependent git-remote-helper and git-encrypted packages.