Examples
Two complete applications built on the SDK, small enough to read in one sitting and structured so you can lift pieces out of them.
The guides take one job at a time. These are whole programs: every call in context, including the parts a guide leaves out because they are not the point of the guide.
Password manager
A command-line store that submits encrypted records, lists a project's history and reads a value back.
Notary Express
An Express service that records a document digest and finds it again on a second submission.
What each one shows
| Password manager | Notary Express | |
|---|---|---|
| Size | About sixty lines | About seventy lines |
| Shape | Command-line program | HTTP service with a form |
| SDK calls | createTransaction, listTransactions, getTransaction | createTransaction, listTransactions, getTransaction, utils.sha256s |
| Publishes | An encrypted data output per entry | A digest as a data output |
| The idea it carries | Records you write are records only you can read | A record whose value is a fingerprint, not the document |
Read the password manager first if you want to see the read and write path in the smallest possible program. Read the notary if you want to see the SDK inside a service that answers requests.
Before you run either
Both need the same three things as every guide: an SDK access token, a project id, and the package installed.
npm install @mintblue/sdkBoth read those two values from the environment rather than from a literal, so a copy of the file cannot carry a live credential anywhere.
export MINTBLUE_SDK_TOKEN=...
export MINTBLUE_PROJECT_ID=...Neither example needs anything else from mintBlue. Anything else they install is a plain npm dependency named on the page.