Don Stephenson Don Stephenson

PIM: your own information, on a drive you hold

PIM is a personal information manager that runs in the browser on your own PC and keeps everything it knows on a USB drive. Plug the drive in and your contacts, organizations, notes, calendar, projects, sites, log-ins, cards and accounts are there. Take the drive out and the PC holds none of it. The log-ins, cards and accounts are encrypted under a master password that is never stored. There is no account to sign up for, and PIM sends nothing about you to anyone.
It is also a worked example of prompt programming. The code was written by an AI coding assistant (Anthropic's Claude) from my prompts, held together by a plan we both edit and by a review page where I approve what a person will read on the screen. The first proof of concept ran on November 13, 2026, under the name NCP (Notes, Contacts, Passwords). Four days later I was using it daily.

Take the tour Download PIM 0.9.0

PIM's Contacts tab: a list of made-up people with one contact open beside it
CONTACTS · MADE-UP DATA
What it does

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.

PIM's Sites tab: a list of sites, with a made-up bank's site open and its two log-ins listed
SITES
PIM's Accounts tab with a made-up credit card account open
ACCOUNTS
How it is built

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.

How it was made

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.

Built with LightStruc
PIM is made with LightStruc: its pages are drawn by lightStruc.js and served from your PC by LsServer, our Rust web server. LsServer is free software under the GNU Affero General Public License, version 3. If you write software, the source code for both and the tools to build with them are at lightstruc.com.