MCPcopy
hub / github.com/dnote/dnote

github.com/dnote/dnote @cli-v0.16.0 sqlite

repository ↗ · DeepWiki ↗ · release cli-v0.16.0 ↗
1,097 symbols 6,089 edges 183 files 543 documented · 49%
README

Dnote

Build Status

Dnote is a simple command line notebook. Single binary, no dependencies. Since 2017.

Your notes are stored in one SQLite file - portable, searchable, and completely under your control. Optional sync between devices via a self-hosted server with REST API access.

# Add a note (or omit -c to launch your editor)
dnote add linux -c "Check disk usage with df -h"

# View notes in a book
dnote view linux

# Full-text search
dnote find "disk usage"

# Sync notes
dnote sync

Installation

# Linux, macOS, FreeBSD, Windows
curl -s https://www.getdnote.com/install | sh

# macOS with Homebrew
brew install dnote

Or download binary.

Server (Optional)

Server is a binary with SQLite embedded. No database setup is required.

If using docker, create a compose.yml:

services:
  dnote:
    image: dnote/dnote:latest
    container_name: dnote
    ports:
      - 3001:3001
    volumes:
      - ./dnote_data:/data
    restart: unless-stopped

Then run:

docker-compose up -d

Or see the guide for binary installation.

Documentation

See the Dnote doc.

Extension points exported contracts — how you extend this code

Backend (Interface)
Backend is an interface for sending emails. [3 implementers]
pkg/server/mailer/backend.go
Clock (Interface)
Clock is an interface to the standard library time. It is used to implement a real or a mock clock. The latter is used i [2 …
pkg/clock/clock.go
SQLCommon (Interface)
SQLCommon is the minimal interface required by a db connection [1 implementers]
pkg/cli/database/sql.go
EmailDialer (Interface)
EmailDialer is an interface for sending email messages [1 implementers]
pkg/server/mailer/backend.go
RunEFunc (FuncType)
RunEFunc is a function type of dnote commands
pkg/cli/infra/init.go
Middleware (FuncType)
Middleware is a middleware for request handlers
pkg/server/middleware/middleware.go
PublicError (Interface)
PublicError is an error meant to be displayed to the public
pkg/server/views/data.go

Core symbols most depended-on inside this repo

Equal
called by 1823
pkg/assert/assert.go
QueryRow
called by 551
pkg/cli/database/sql.go
NotEqual
called by 333
pkg/assert/assert.go
MustScan
called by 293
pkg/cli/database/testutils.go
MustExec
called by 258
pkg/cli/database/testutils.go
MustExec
called by 252
pkg/server/testutils/main.go
Error
called by 186
pkg/cli/client/client.go
Rollback
called by 138
pkg/cli/database/sql.go

Shape

Function 748
Struct 164
Method 156
TypeAlias 15
Interface 9
FuncType 5

Languages

Go100%
TypeScript1%

Modules by API surface

pkg/cli/migrate/legacy.go56 symbols
pkg/cli/client/client.go49 symbols
pkg/cli/cmd/sync/sync.go37 symbols
pkg/server/controllers/users.go27 symbols
pkg/server/controllers/notes.go25 symbols
pkg/cli/cmd/sync/sync_test.go24 symbols
pkg/server/testutils/main.go23 symbols
pkg/cli/migrate/migrate_test.go23 symbols
pkg/cli/testutils/main.go22 symbols
pkg/cli/database/sql.go22 symbols
pkg/e2e/sync/testutils.go21 symbols
pkg/server/controllers/helpers.go19 symbols

Dependencies from manifests, versioned

github.com/dnote/actionsv0.2.0 · 1×
github.com/google/go-githubv17.0.0+incompatible · 1×
github.com/google/go-querystringv1.1.0 · 1×
github.com/gorilla/csrfv1.7.3 · 1×
github.com/gorilla/schemav1.4.1 · 1×
github.com/gorilla/securecookiev1.1.2 · 1×
github.com/inconshreveable/mousetrapv1.1.0 · 1×
github.com/jinzhu/inflectionv1.0.0 · 1×

For agents

$ claude mcp add dnote \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact