hpad

2.0.0 • Public • Published

hpad

Create and edit peer-to-peer documents with your favourite text editor, then sync them to peers from the command line!

A command line interface of hyperpad.

Usage

  1. run hpad init FILE on a new or existing document on your computer
  2. edit FILE whenever you want in your favourite text editor
  3. share the KEY outputted by hpad init with your friends
  4. hpad seed FILE to share your changes & pull others online and from the local network
  5. all changes pulled automatically update your local copy of FILE

Example

eliza$ hpad init foo.markdown
[8029129c219e9ff63901f4f9] created hyperpad for foo.markdown

eliza$ vim foo.markdown
(edit edit edit)

eliza$ cat foo.markdown
hello world

eliza$ hpad seed foo.markdown
[8029129c219e9ff63901f4f9] joining swarm for foo.markdown

Press CTRL+C to terminate synchronization..

jorge$ hpad clone 8029129c219e9ff63901f4f9
[8029129c219e9ff63901f4f9] joining swarm for 8029129c219e9ff63901f4f9
found peer 10.30.66.206|3497
replicating to peer 10.30.66.206|3497.. done!

jorge$ atom foo.markdown
(edit edit edit)

jorge$ cat foo.markdown
hello world!
wow p2p so fresh

jorge$ hpad seed foo.markdown
[8029129c219e9ff63901f4f9] joining swarm for foo.markdown
found peer ::ffff:10.30.66.206|3259
replicating to peer ::ffff:10.30.66.206|3259.. done!

Press CTRL+C to terminate synchronization..

eliza$ cat foo.markdown
hello world!
wow p2p so fresh

CLI Usage

USAGE:

  hpad init FILE

    Start backing FILE with hyperpad. Outputs the KEY for the new pad.

  hpad clone KEY

    Create a local copy of a hyperpad document from the swarm.

  hpad seed FILE

    Join the swarm for this document online & on the local network to
    share and exchange updates. Command runs until manually terminated.

  hpad ls

    List all hyperpad documents in the current directory, and their keys.

Values

  1. no lock-in: let everyone keep using the editors they like in plaintext
  2. peer-to-peer: no central servers or corporate ownership
  3. open source: hack and fork the world!

Install

With npm installed, run

$ npm install --global hpad

License

ISC

Readme

Keywords

none

Package Sidebar

Install

npm i hpad

Weekly Downloads

1

Version

2.0.0

License

ISC

Last publish

Collaborators

  • noffle