The Mercury Unix Domain Socket project is designed to manage notes using a Unix Domain Socket (UDS) communication protocol. It consists of three main components:
- mercury-core is responsible for managign storage, network communication, and peer-to-peer operations for sync notes.
- mercury-usd is the communication protocol that allows others processes on the same machine to have access to the notes.
- mercury-cli privides a command-line interface to interact with the mercury-core server through Unix Domain Socket.
This is a Unix Domain Socket for managing notes using the Mercury framework, enable to syncronize P2P notes. It provides IPC commands to create, retrieve, and manage documents and repositories.
- Create, read, update, and delete notes, and tags
- Manage repositories ( sync with other devices )
- Unix socket communication
This application is designed for GNU/Linux only.
- Download:
git clone https://github.com/nexhero/mercury-socket.git cd mercury-socket npm install
node index.js
- -s, –socket <string>: Path for the Unix socket (default: /tmp/mercury.socket)
- -d, –dir <string>: Directory to save database (default: ~/.config/mercury/)
- -b, –database <string>: Database name (default: mercury_db.db)
- -o, –verbose Display information in the console.
- -h, –help, It’s just a normal help.
node mercury-cli.js --help
node mercury-cli.js -s '/tmp/mercury.socket' create --title 'My Game project --content 'I need ideas...'
The commands are in index.js
- `create-note` - Create a new note
- `all-documents` - List all documents
- `document-id` - Get document by ID
- `remove-document` - Remove document by ID
- `get-local-repository` - Get the local repository key
- `get-all-repository` - List all appended repositories
- `append-repository` - Add remote repository
- `remove-repository` - Remove repository by ID
- Default socket path: /tmp/mercury.socket
- Default storage directory: ~/.config/mercury/
MIT License