SelfscribeDownloadOpen the app

Contacts

A contact list you can search, sort and group, kept as plain lines of text.

Interactive · Simple · uses board, table, form, lock

Edit it in the playgroundRead the file

What it shows

Keep your contacts in a table you can search, sort and add to.

What you learn

Link columns for email and phone, cards on a board by stage, a table that sorts and pages, a form that adds a line, notes locked with a passphrase.

Try this

  • Drag Maya Lund's card from lead to trial, and her line in the text says trial.
  • Fill in the form under "Add a contact" and press Add, and a new card joins the board.
  • Unlock the private notes with copper kettle, change a word and lock them again.
examples/contacts.self · 97 lines
~~~ selfscribe
# Lesson: Keep your contacts in a table you can search, sort and add to.
# You learn: link columns for email and phone, cards on a board by stage, a table that sorts and pages, a form that adds a line, notes locked with a passphrase.
# Try this: drag Maya Lund's card from lead to trial, and her line in the text says trial.
# Try this: fill in the form under "Add a contact" and press Add, and a new card joins the board.
# Try this: unlock the private notes with `copper kettle`, change a word and lock them again.
# summary: A contact list you can search, sort and group, kept as plain lines of text.
# category: forms
# tags: interactive, simple, work
# uses: board, table, form, lock
#
# ---- "```data NAME" ... "```": a table of rows, and "view: NAME ..." to show it again -------
# `use data` brings the Markdown rules plus data blocks and `view:` lines. A `url` column is
# a link: write `mailto:` for an email and `tel:` for a phone number.
use data
set title Contacts
set style sans wide compact

# ---- Colours, each with its shade for dark pages ----------------------------------------
palette
  brand  #6741d9  dark #b197fc
  line   color-mix(in srgb, currentColor 13%, transparent)

# ---- The top of the page: "kicker left | right" in a strip, "note ..." under the title ----
line   kicker _              -> div.kicker    split "|" span  { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3em 1em; padding-bottom: 0.8em; border-bottom: 1px solid var(--line); font: 700 0.72em/1.3 var(--doc-font-ui); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand) }  as co-kicker
line   note _                -> p.note        { margin: -0.4em 0 1em; opacity: 0.75 }  as co-note

# ---- "```secret" ... "```": a block locked with a passphrase ------------------------------
# The text in the file is scrambled. Selfscribe asks for the passphrase and shows the notes.
block  ``` secret ... ```  -> secret  verbatim
~~~
kicker Tabletop · bookings for small businesses | Updated 26 November 2026
# Contacts

note Everyone we talk to about Tabletop, by where they are with us. Drag a card when that changes.

view: contacts as board by stage columns name, company, next, last plain

## Everyone

The newest conversation first. Click a column's name to sort by it, or search for a name, a town or a company.

```data contacts as table columns name, company, town, stage, last, email, phone sort last desc page 20
name, company, role, town, stage:choice(lead|trial|customer|past), last:date, next, email:url, phone:url
Priya Shah, Greenway Bakery, Owner, Todmorden, customer, 2026-11-18, Renewal call in January, mailto:priya@greenway.example, tel:+441632960101
Tom Reid, Kestrel Physio, Practice manager, Halifax, trial, 2026-11-20, Trial ends on 4 December, mailto:tom@kestrel.example, tel:+441632960245
Maya Lund, Northfield Dental, Dentist and partner, Ilkley, lead, 2026-11-09, Send the price list, mailto:maya@northfield.example,
Sam Okoro, Bluebell Florist, Owner, Hebden Bridge, customer, 2026-10-14, Show her the Mother's Day rota, mailto:sam@bluebell.example, tel:+441632960377
Lena Novak, Ridge Cycles, Workshop lead, Keighley, past, 2025-12-02, Moved to another app, mailto:lena@ridgecycles.example,
Daniel Costa, Millbrook Library, Librarian, Skipton, trial, 2026-11-24, Logins for six librarians, mailto:daniel@millbrook.example, tel:+441632960412
Aiko Tanaka, Lantern Yoga, Founder, Otley, lead, 2026-11-25, Demo on Tuesday at 10:00, mailto:aiko@lanternyoga.example, tel:+441632960518
Rafael Mendes, Casa Mendes, Manager, Leeds, customer, 2026-11-02, Second restaurant opens in March, mailto:rafael@casamendes.example, tel:+441632960633
Hannah Weiss, Little Acorns Nursery, Office manager, Harrogate, lead, 2026-10-30, Wants to see parent bookings, mailto:office@littleacorns.example,
Kwame Asante, Asante Barbers, Owner, Bradford, customer, 2026-09-21, Invoices by email from December, mailto:kwame@asantebarbers.example, tel:+441632960749
Sofia Russo, Russo Tutoring, Tutor, York, trial, 2026-11-22, Asked about group lessons, mailto:sofia@russotutoring.example,
```

## Add a contact

The same columns as fields. Press Add, and the form writes a new line into the block above.

view: contacts as form plain title "A new contact" layout Who: name | role, Where: company | town, Stage: stage | last, next, "Reach them": email | phone

## Private notes

Discounts we agreed and a few personal details, so they stay locked. Unlock with the passphrase, which is `copper kettle` in this example, and Lock again when you are done.

```secret
selfscribe-secret v1 aes-256-gcm pbkdf2-sha256 600000
salt: E0r0VDGkngM21DNhIGu6LQ==
iv: qqZVKqKPEZd19Km6
duSgSz57ztvrW/lGh3ghwCK9HcoVh35TiAYtxXxILhw//qUi+EZkdPf4bWJCOrrnacKA+Th8GrhJ
Ci+xvhGeJqRwQI3JOv12KNtf1XypDdB5tAz/+uo5fXkXhDPoVMGFoi/8Gm84zGR1aI78k05jmHIC
SK0TKBHTEXcCRQK0Tkel40JYhrH84QMjuyTtZRBroh/UEOaT5qLoBTLpdu+Ia3uZ4USiIkR75ec+
+FNAdWDQvBclUWU9Vdg4l59/ELiR+LMMwEd8/mUlvYGX3V3n73uSSFWmsldfONJDC17BvYUpiUju
GmuiRJVPtmydzhEbiB0E9Mj3JiN68Am0fhWeZybxgtzomuGLf4d/xLUygGKXZ/KhW/aw2C5zN9RC
fgokOW+DLk/RF+2n91LmVUF275zDD038geWTBe51WMn9xnhPpAZC9WZIx0zMbxem9IL9vW5ilmuP
ZPEdsZkKYPqgIt6yXx3sItD+lYQH4+wyxJyG3AHdydOq/m/IJBsO+DRc8P7U+/5yyh3RBcqFqBDT
87VAO+nTc64pBVJz45YpZht07TiJJoo+3QMl2Jndelmw4mTONtx1LpkFMB6zNOjMxKolzllzAf06
/1PLejKjjSViTZkkdg4WGI54zsZS3BSQgZ0o8oWL5x7JU36Ts1kEsf+aG1pg6GUVl6dTxga8
```

## How it's made

- Each contact is one line of the `contacts` data block, under "Everyone". Its first line names the columns: `stage:choice(lead|trial|customer|past)` gives four stages, `last:date` sorts by date, and `email:url` with `mailto:` makes a link.
- The board at the top is `view: contacts as board by stage plain`: a lane for each stage, a card for each contact. Dragging a card changes the stage in that contact's line.
- The form is `view: contacts as form` with a `layout` of fields side by side. A cell can stay empty: Maya Lund has no phone number yet, so her line ends with a comma.
- The private notes are a `secret` block. In the file they are scrambled text, and in any other editor they read as gibberish.

## Try it yourself

1. Drag Maya Lund's card from lead to trial. Her line in the text now says trial.
2. Fill in the form under "Add a contact" and press Add. A new line appears in the block, in the table and on the board.
3. Change `sort last desc` to `sort company`. The table lists the companies from A to Z.
4. Unlock the private notes with `copper kettle`, change a word and lock them again. The scrambled lines in the text are new.

Next: *Invoices* picks clients from a table like this. *Letter to a list* writes one letter per person.