This directory contains example applications built with acorde.
A minimal command-line notes app demonstrating acorde as an embedded Go library.
cd notes-cli
go build
./notes-cli add "My first note"
./notes-cli list
./notes-cli search "first"A simple web UI that uses the REST API to manage notes.
# Terminal 1: Start acorde daemon + REST API
cd ../..
acorde daemon --api-port 7331
# Terminal 2: Open the web app
cd notes-web
# Open index.html in browserimport "github.com/amaydixit11/acorde/pkg/engine"
e, _ := engine.New(engine.Config{DataDir: "./data"})
defer e.Close()
entry, _ := e.AddEntry(engine.AddEntryInput{
Type: engine.Note,
Content: []byte("Hello World"),
Tags: []string{"example"},
})# Start daemon + API
acorde daemon --api-port 7331
# Create entry
curl -X POST http://localhost:7331/entries \
-H "Content-Type: application/json" \
-d '{"type":"note","content":"Hello World","tags":["example"]}'
# List entries
curl http://localhost:7331/entries
# Subscribe to events (SSE)
curl http://localhost:7331/events