@notes-sync/service
v1.1.17
Published
Background service for AI-powered note synchronization
Maintainers
Readme
@notes-sync/service
Background service for Notes Sync - AI-powered note synchronization with Git backup.
Overview
This package provides a background service that:
- Watches your notes directory for changes
- Automatically commits and pushes to Git
- Provides an HTTP API for the CLI to interact with
- Creates daily note sections with AI-generated quotes
- Handles file formatting and organization
Installation
# Install globally
npm install -g @notes-sync/service
# Install as background service
notes-sync installUsage
Start Service
# Start manually (foreground)
notes-sync-service
# Start as background service
notes-sync-service startCommand Line
The service is designed to be used with the CLI package:
npm install -g @notes-sync/cli
notes-sync statusConfiguration
Create a config file at ~/.config/notes-sync/config.json:
{
"notesDir": "/path/to/your/notes",
"notesFile": "Daily.md",
"server": {
"host": "127.0.0.1",
"port": 3127
},
"autoCreateDaily": true
}Interactive Setup: The easiest way to configure is through the CLI:
notes-sync installThis will detect existing markdown files and ask if you want to use them.
API Endpoints
The service exposes HTTP endpoints on port 3127:
GET /status- Service health and infoPOST /sync- Trigger manual syncPOST /add-note- Add note to today's sectionPOST /add-todo- Add todo to today's focus- And many more...
Documentation
For full documentation, visit the Notes Sync GitHub repository.
License
MIT
