plank/format.md
2026-09-11 11:45:10 +02:00

1 KiB

plankdata files

post format ({username}/{id}.txt):

TIMESTAMP {id}
PARENT {parent | "none"}
TITLE {title}

{content}

account format ({username}/account.txt):

USERNAME {username}
PASSHASH {password > sha512 > sha512}
TIMESTAMP {creationunixms}
INVITECODE {invitecode}

config format (plank.txt):

webname {string}
require_login_to_see {"true"/"false"}
invite_churn {"true"/"false"}

lines starting with REM are ignored as comments


plankdata uses two blocks: the primary block functions as key-value storage, the secondary is an optional single multiline string.

plankdata's primary block stores keys and values in pairs where all possible keys must be present but unneeded keys are permitted. separator between key and value is the space; newlines in values or keys are not supported. when multiple values exist for a single key (e.g. the key is duplicated), the later ones are simply ignored.

the secondary block is isolated by \n\n (e.g. an empty line) and must only exist for certain data structures.