callback

module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2026 License: MIT

README

callback — job application tracker

Track job applications from a web app, a CLI and an MCP server for AI agents. Single user, one SQLite file.

  • callback-server: the HTTP API (Go, SQLite), the web app it serves, and the MCP over HTTP with its OAuth sign-in.
  • callback: the CLI and the stdio MCP server, a client of the API only.
  • web/: Nuxt 4 + Nuxt UI: a dashboard with a sortable, filterable table or a kanban by status, the add/edit form, API tokens, four themes and dark mode.

Each application has a company, an address (location is the city, plus an optional street, postal code and country), a website, a source (spontaneous, job post with its URL, recruiter with their e-mail, or any name you give), a status (applied → responded → interview → offer / rejected), a rating out of 5, a comment, the day it was sent, and optionally the interview's date and time and a contact (name, e-mail). Every write is a batch: one request adds, changes or deletes many applications in one transaction.

The previous Vue/Express/Mongo app is at the deprecated tag.

Deploy on your server (Docker)

The image is ghcr.io/cyril-fl/callback: one static binary on scratch, the web app included, the base in the /data volume. Pushing a v* tag builds and publishes it (:<version> and :latest, amd64 and arm64).

  1. On the server, copy compose.prod.yaml and .env.example (as .env) into a folder, and fill .env:
    • CALLBACK_PASSWORD: the password, 8 characters or more. It is read only on the first start, when the base is empty; change it later with docker compose -f compose.prod.yaml exec callback /callback-server --db /data/callback.db reset-password.
    • CALLBACK_ORIGIN: the address you open in the browser, e.g. https://callback.<tailnet>.ts.net.
  2. If the GitHub package is private: docker login ghcr.io with a token that can read packages.
  3. docker compose -f compose.prod.yaml up -d. Update: docker compose -f compose.prod.yaml pull && docker compose -f compose.prod.yaml up -d.

Both ports listen on 127.0.0.1 only (CALLBACK_LISTEN, CALLBACK_MCP_LISTEN change them):

  • 8080, the API and the web app: keep it private, e.g. tailscale serve --bg --https=443 http://127.0.0.1:8080.
  • 8081, the MCP and its OAuth: the only port to open to the Internet, for AI apps that call it from their own servers: tailscale funnel --bg --https=8443 http://127.0.0.1:8081, or a Cloudflare tunnel to 127.0.0.1:8081. Wrong passwords on its sign-in page make the caller wait, per address and across all addresses.

Backup (the image has no sqlite3; VACUUM INTO copies the base while it runs):

docker compose -f compose.prod.yaml exec callback /callback-server --db /data/callback.db backup /data/backup-$(date +%F).db
docker cp callback:/data/backup-$(date +%F).db .

A new job search: Settings → Danger zone deletes every application and its history (type supprimer to confirm), after a backup. The password, the settings and the tokens stay. Only a logged-in session can, never an API token or an agent.

The CLI

go install github.com/cyril-fl/callback/cmd/callback@latest
callback login https://callback.<tailnet>.ts.net        # asks the password (or CALLBACK_PASSWORD)
callback add --company Acme --location Paris --country France --source job_post --source-detail https://jobs.acme.example/42
callback add --file applications.json             # a JSON array, or - for stdin
callback ls --status interview,offer -q acme      # --json for scripts
callback edit <id> --status interview             # or by filters: --where-status applied --untouched-since 2026-01-01 --dry-run
callback rm <id>...
callback stats
callback token add claude --read-only --expires 90d

The session is kept in ~/.config/callback/session.json; CALLBACK_URL and CALLBACK_SESSION override it.

AI agents (MCP)

Seven tools, all batch: list_applications, read_applications, application_stats, status_history, add_applications, update_applications, delete_applications. A read-only token gets the read tools only.

  • Local: claude mcp add callback -- callback mcp (uses the CLI's session).
  • Remote: claude mcp add --transport http callback https://<your MCP address>/mcp, signed in through OAuth, or with --header "Authorization: Bearer callback_…" and a token from the settings or callback token add.

Details, in French: MCP.md.

Develop

make setup                                    # git hooks (gofmt, prettier, conventional commits)
CALLBACK_PASSWORD=change-me go run ./cmd/callback-server serve --db ./data/callback.db --origin http://localhost:3000 --mcp-addr :8081
make web                                      # Nuxt on http://localhost:3000
make test                                     # go vet + go test, each test on an in-memory SQLite
make openapi                                  # after an API change, then `bun run types` in web/
make up / make down                           # the Docker stack, built locally

Layout and rules for contributors and agents: CLAUDE.md.

License

See LICENSE.

Directories

Path Synopsis
cli
cmd-account
Package cmdaccount is the session and the tokens: callback login, logout, whoami and token.
Package cmdaccount is the session and the tokens: callback login, logout, whoami and token.
cmd-applications
Package cmdapplications is the commands on the applications: callback add, ls, show, edit, rm and stats.
Package cmdapplications is the commands on the applications: callback add, ls, show, edit, rm and stats.
cmd-mcp
Package cmdmcp serves the applications to an agent over MCP, a client of the API like the rest of the CLI: the rules (statuses, dates, batches) are those of the server.
Package cmdmcp serves the applications to an agent over MCP, a client of the API like the rest of the CLI: the rules (statuses, dates, batches) are those of the server.
services/apiclient
Package apiclient provides primitives to interact with the openapi HTTP API.
Package apiclient provides primitives to interact with the openapi HTTP API.
services/apiclient/apitest
Package apitest serves the real API to the tests of the CLI commands and the MCP, which are clients of it.
Package apitest serves the real API to the tests of the CLI commands and the MCP, which are clients of it.
services/output
Package output prints the answers of the commands: JSON for scripts, aligned tables for people.
Package output prints the answers of the commands: JSON for scripts, aligned tables for people.
cmd
callback command
callback is the CLI of the job application tracker, a client of the API of callback-server: it never opens the base.
callback is the CLI of the job application tracker, a client of the API of callback-server: it never opens the base.
callback-server command
callback-server is the only binary on the base: the API, the web app, the MCP over HTTP, and the admin's commands.
callback-server is the only binary on the base: the API, the web app, the MCP over HTTP, and the admin's commands.
Package config is the CLI's commands, their help and flags (config.yaml, built in), and the app's name.
Package config is the CLI's commands, their help and flags (config.yaml, built in), and the app's name.
core
api
Package api is the HTTP API: one folder per route, each running a process of core/services/process.
Package api is the HTTP API: one folder per route, each running a process of core/services/process.
api/create-applications
Package createapplications creates applications: POST /api/applications.
Package createapplications creates applications: POST /api/applications.
api/delete-applications
Package deleteapplications deletes applications: DELETE /api/applications.
Package deleteapplications deletes applications: DELETE /api/applications.
api/edit-applications
Package editapplications changes applications: PATCH /api/applications.
Package editapplications changes applications: PATCH /api/applications.
api/login
Package login is the session: log in, log out, and who is asking.
Package login is the session: log in, log out, and who is asking.
api/preferences
Package preferences reads and changes the preferences of the account: GET and PATCH /api/preferences.
Package preferences reads and changes the preferences of the account: GET and PATCH /api/preferences.
api/purge-applications
Package purgeapplications deletes every application, to start a new job search: DELETE /api/data.
Package purgeapplications deletes every application, to start a new job search: DELETE /api/data.
api/read-applications
Package readapplications lists applications: GET /api/applications.
Package readapplications lists applications: GET /api/applications.
api/read-sources
Package readsources lists the sources in use: GET /api/sources.
Package readsources lists the sources in use: GET /api/sources.
api/read-stats
Package readstats counts the applications: GET /api/stats.
Package readstats counts the applications: GET /api/stats.
api/read-status-changes
Package readstatuschanges gives the status history: GET /api/status-changes.
Package readstatuschanges gives the status history: GET /api/status-changes.
api/services/auth
Package auth lets through the requests with a valid token only, and tells the routes which one.
Package auth lets through the requests with a valid token only, and tells the routes which one.
api/services/guard
Package guard keeps the web pages of other sites away from the API: they could use the session cookie.
Package guard keeps the web pages of other sites away from the API: they could use the session cookie.
api/services/respond
Package respond is what every route shares: reading the request, writing JSON, turning process errors into statuses.
Package respond is what every route shares: reading the request, writing JSON, turning process errors into statuses.
api/services/throttle
Package throttle makes an address wait longer after each wrong password in a row, at the login and on the OAuth consent page.
Package throttle makes an address wait longer after each wrong password in a row, at the login and on the OAuth consent page.
api/tokens
Package tokens manages the API tokens and OAuth connections: refused to a token, a login only.
Package tokens manages the API tokens and OAuth connections: refused to a token, a login only.
domain
Package domain holds the models: their bun tags are the schema, their json tags the API's JSON and the web app's types.
Package domain holds the models: their bun tags are the schema, their json tags the API's JSON and the web app's types.
server/cmd-admin
Package cmdadmin is the admin's commands of callback-server: they run on the base, on the server's machine.
Package cmdadmin is the admin's commands of callback-server: they run on the base, on the server's machine.
server/cmd-serve
Package cmdserve is callback-server serve: the API, the web app next to it, and the MCP over HTTP on its own address.
Package cmdserve is callback-server serve: the API, the web app next to it, and the MCP over HTTP on its own address.
server/mcphttp
Package mcphttp serves the MCP tools of callback mcp over streamable HTTP, for an agent that cannot run callback where it runs (the Claude app calls from Anthropic's cloud).
Package mcphttp serves the MCP tools of callback mcp over streamable HTTP, for an agent that cannot run callback where it runs (the Claude app calls from Anthropic's cloud).
server/oauth
Package oauth makes the MCP address an OAuth 2.1 authorization server, as the MCP specification describes: the metadata, an open dynamic client registration, the consent page and the token endpoint.
Package oauth makes the MCP address an OAuth 2.1 authorization server, as the MCP specification describes: the metadata, an open dynamic client registration, the consent page and the token endpoint.
services/appfilter
Package appfilter turns a domain.Filter into the WHERE of a query on applications: the list, the batch update and the batch delete pick the same rows for the same filter.
Package appfilter turns a domain.Filter into the WHERE of a query on applications: the list, the batch update and the batch delete pick the same rows for the same filter.
services/password
Package password hashes the passwords of the account with argon2id, and makes the session tokens.
Package password hashes the passwords of the account with argon2id, and makes the session tokens.
services/process/createapitoken
Package createapitoken makes an API token, for a script or an agent: shown once, the base keeps its hash.
Package createapitoken makes an API token, for a script or an agent: shown once, the base keeps its hash.
services/process/createapplications
Package createapplications creates a batch of applications in one transaction: the valid ones are written, the others listed with their error.
Package createapplications creates a batch of applications in one transaction: the valid ones are written, the others listed with their error.
services/process/createoauthcode
Package createoauthcode is the consent of the OAuth page: the password checked, an authorization code for the client.
Package createoauthcode is the consent of the OAuth page: the password checked, an authorization code for the client.
services/process/createoauthtoken
Package createoauthtoken exchanges an OAuth authorization code for a new connection: a token of kind oauth.
Package createoauthtoken exchanges an OAuth authorization code for a new connection: a token of kind oauth.
services/process/createschema
Package createschema creates what the base lacks, at every start: tables, indexes, the columns a model gained, then the one-time migrations.
Package createschema creates what the base lacks, at every start: tables, indexes, the columns a model gained, then the one-time migrations.
services/process/createsession
Package createsession logs in: the password checked, a session made for the device.
Package createsession logs in: the password checked, a session made for the device.
services/process/deleteapplications
Package deleteapplications deletes the applications of ids or filters, in one statement.
Package deleteapplications deletes the applications of ids or filters, in one statement.
services/process/deletesession
Package deletesession logs this device out: its session token is deleted.
Package deletesession logs this device out: its session token is deleted.
services/process/deletetoken
Package deletetoken revokes an API token or an OAuth connection.
Package deletetoken revokes an API token or an OAuth connection.
services/process/listapplications
Package listapplications reads applications: a filtered, sorted page, some columns only, comments cut.
Package listapplications reads applications: a filtered, sorted page, some columns only, comments cut.
services/process/listsources
Package listsources gives the sources the applications use, the most used first: the form offers them.
Package listsources gives the sources the applications use, the most used first: the form offers them.
services/process/liststatuschanges
Package liststatuschanges gives the status history of the applications, oldest first: the dashboard's funnel and response delays come from it, an agent reads it for some applications or since a day.
Package liststatuschanges gives the status history of the applications, oldest first: the dashboard's funnel and response delays come from it, an agent reads it for some applications or since a day.
services/process/listtokens
Package listtokens lists the API tokens and OAuth connections, newest first: not the sessions.
Package listtokens lists the API tokens and OAuth connections, newest first: not the sessions.
services/process/purgeapplications
Package purgeapplications deletes every application and its status history, to start a new job search: the password, the preferences, the sessions and the tokens stay.
Package purgeapplications deletes every application and its status history, to start a new job search: the password, the preferences, the sessions and the tokens stay.
services/process/purgetokens
Package purgetokens deletes what expired: sessions, tokens, OAuth connections and codes, login failures.
Package purgetokens deletes what expired: sessions, tokens, OAuth connections and codes, login failures.
services/process/readpreferences
Package readpreferences gives the preferences of the account, the defaults where none was saved.
Package readpreferences gives the preferences of the account, the defaults where none was saved.
services/process/readstats
Package readstats counts the applications by status and by source, without reading them.
Package readstats counts the applications by status and by source, without reading them.
services/process/readtoken
Package readtoken finds the token a client sent: a session, which starts its lifetime again, an API token, or the access token of an OAuth connection.
Package readtoken finds the token a client sent: a session, which starts its lifetime again, an API token, or the access token of an OAuth connection.
services/process/refreshoauthtoken
Package refreshoauthtoken gives an OAuth connection new tokens for its refresh token.
Package refreshoauthtoken gives an OAuth connection new tokens for its refresh token.
services/process/setpassword
Package setpassword sets the password of the one account, and logs out every session: a new password is how a lost device is shut out.
Package setpassword sets the password of the one account, and logs out every session: a new password is how a lost device is shut out.
services/process/updateapplications
Package updateapplications changes applications in one transaction: each op picks applications by ids or filters and sets fields.
Package updateapplications changes applications in one transaction: each op picks applications by ids or filters and sets fields.
services/process/updatepreferences
Package updatepreferences changes the preferences of the account: those left out keep their value.
Package updatepreferences changes the preferences of the account: those left out keep their value.
services/seed
Package seed creates applications for the tests.
Package seed creates applications for the tests.
services/sqlite
Package sqlite opens the base: one SQLite file, through the pure Go driver (no cgo, the image is scratch).
Package sqlite opens the base: one SQLite file, through the pure Go driver (no cgo, the image is scratch).
services/testdb
Package testdb gives each test a base of its own, in memory, with the schema.
Package testdb gives each test a base of its own, in memory, with the schema.
services/testserver
Package testserver serves the real API on a base of its own, for the tests of its clients (the routes, the CLI, the MCP, the OAuth).
Package testserver serves the real API on a base of its own, for the tests of its clients (the routes, the CLI, the MCP, the OAuth).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL