PIM: your own information, on a drive you hold
Contacts
People, with any number of phones, emails, addresses and websites, tags, a category, and birthdays that appear on the calendar.
Organizations
Companies, groups and government bodies, kept once. A person belongs to as many as you like, and each organization lists its people, its sites and its log-ins.
Notes
Plain notes with search across everything written, a way to bring back what was deleted, and categories.
Calendar
A month view with events, repeats and reminders. Project due dates and birthdays show up on it without being entered twice.
Projects
Projects with their tasks, due dates and reminders, plus a general to-do list for everything that isn't a project.
Sites
Bookmarks that live with the rest of your data instead of in one browser, each with its own icon. A site lists its log-ins: copy the user name, copy the password, open the page.
Log-ins
Passwords, PINs, API keys and recovery codes, kept encrypted. A log-in you choose to hide shows nothing at all, not even its name, until you unlock.
Accounts
Bank, credit card, loan and online accounts with their numbers, their holders, the cards on them and the log-ins that open them, with payment and expiration reminders.
Safety net
Dated backup copies on the drive, an export to a second drive kept offline, a recovery key, and a way back from a damaged file or a forgotten master password.
The page
Plain HTML, CSS and JavaScript on the LightStruc framework: its panels, tabs and data grid, and no other library. About 6,300 lines.
The server
LsServer, our Rust web server, serves the page and passes each of PIM's 115 functions to a separate program. A fault in PIM can't take the server down with it.
The worker
That separate program is about 13,600 lines of Rust with 122 tests. SQLite is compiled into it, so there is nothing else to install: one file for the server, one for PIM.
The drive
The database is a single file on a USB drive. PIM works from a copy in memory, writes each change to the drive at once, and finds the drive again whatever letter Windows gives it.
The encryption
A random 256-bit key encrypts each log-in, card and account (AES-256-GCM). The master password unlocks that key through PBKDF2 with 600,000 rounds. No cipher is written by hand; it is all calls into a vetted library.
The session
One person, one browser tab. The sensitive tabs lock again by themselves after a quiet spell, and the rest stays open until you log out.
The plan is the program
Everything starts in one document: the brief, the constraints, the decisions and their reasons, and a table of phases. Each prompt changes the plan first and the code second, so the plan always says what the program is.
Small phases, each one usable
From a throwaway proof that two programs could talk, through Contacts, Notes and Passwords, to Organizations, Sites and Accounts. Each phase ended with something I could use that day and a written account of what was built and what was tried.
Decisions put as questions
When a choice was mine to make, it came to me as a short form on a review page: the options, what each would cost, and a recommendation. My answers went into the plan beside the reason.
Words reviewed like code
Every label and message is written for an everyday user, not a developer. Changes to wording are shown as old and new, side by side, and approved before they are made.
Tested before it is shown
Each phase is tried in a real browser against a scratch copy with made-up data, and against the worker's own tests, before it reaches the copy I use.
What the person still does
Decide what is worth building, notice when an answer is wrong for how the thing will be used, and say no.
