New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

p2pic

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

p2pic

Peer-to-peer picture sharing

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

P2Pic

Share pictures with family and friends, directly from your computer to their computer or digital photo frame, no servers in between.

Install

npm -g i p2pic

Usage

Sharing local folders

Add local folders to make available for sharing:

p2pic-config add-local /full/path/to/a/directory

Check the configuration:

p2pic-config show

Each folder you added has its own corresponding key. Share those keys with the people who should mirror the folders.

Note: other people can only see the content of the folders for which they have the keys.

Start sharing:

p2pic

Pipe the output into pino-pretty for human-readable logs (p2pic | pino-pretty).

Any changes you make to the local folders while p2pic is running will be reflected on all machines mirroring them.

Note: Hyperdrive keeps track of history, so double check which files you add to these folders before adding them.

Viewing remote folders

CLI-support is coming. For now, manually edit the config file at ~/.p2pic/config.json, adding entries to the remoteFolders key:

"remoteFolders": {
    "<drivekey>": { "targetPath": "/full/path/to/p2pic-remotes/remoteCopy" }
 }

The target path must include 'p2pic' somewhere in its name. This somewhat protects users from accidentally deleting important files (syncronising from a remote directory includes deleting all files in the target directory that are not present on the remote. So you would not want to sync to your home directory...)

Keywords

peer-to-peer

FAQs

Package last updated on 13 Feb 2026

Did you know?

Socket

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.

Install

Related posts