# Personal taste card > **Experimental.** A working reference exists with two illustrative examples built from invented picks. It has no qualification and no human design review, so it is not Supported. ## Purpose and inputs A compact card of the things a person chooses to show: books, films, sounds, places, tools, hobbies. You supply a catalogue of up to 24 picks, which of them are on the card to start with (at most 12, in the order you want), an optional one-line reason for each, a heading, a style and any images you own or have approved. Nothing is inferred: if you leave `selected` out, the card starts empty. A pick that is not selected is only an option, not a claim about the person. Everything lives in one `content.json` (`schema_version` 1): - `title` (1–120 characters), `lang` (`en` or `pt-BR`), `style` (`editorial`: a type-led poster grid; `field-notes`: a notebook list with labels), `heading` (1–120), optional `illustrative: true` for a notice that the content is invented. - `items`: 1–24 of `{id, label, reason?, image?}`. `id` is a stable ASCII name (letters, digits, `_`, `-`, up to 64, not a name like `constructor`). `label` is 1–100 characters, `reason` at most 160, both plain text on one line: no control or direction-override characters. Lengths count Unicode characters. - `selected`: the ids on the card, in order. Optional. - `assets`: the images you approve, each `{path, alt}` with a path like `images/name.png` (png, jpg, jpeg or webp) and a description of 1–160 characters. An item's `image` must be one of them, and every approved image must be used. ## Images and where they come from Put each approved image under `images/` next to `content.json`. The build refuses a missing file, a symbolic link, a file over 2 MiB, more than 20 MiB in all, more than 4096 pixels on a side, bytes that are not really that image type, and any path that is not exactly `images/.`. No remote, data or credential-bearing address is accepted anywhere. Use only images you made or have the right to use; the recipe fetches nothing from the internet and adds no covers, logos or profile pictures. The seven icons in the examples are flat shapes drawn by `reference/make-icons.mjs` from nothing. They are original to this recipe, have no third-party source, and may be reused or replaced. Visitors can add text-only picks; they cannot upload images. ## What the visitor can do - Tick or untick catalogue picks (up to 12), edit their wording and reasons, add text-only picks of their own, remove picks, and move picks earlier or later with labelled buttons. The order is just the order on the card, not a ranking. - Change the heading and choose either style. Neither change touches the picks. - Give an optional name, shown only when its box is ticked, and write a private note that never reaches the card, the text, the JSON or the image. - See a live card that is exactly what the exports contain, then download a PNG, download or copy the text, or download the JSON. Nothing leaves until they choose one; nothing is posted or uploaded. - An empty card shows a blank state and offers no download. An invalid edit (an empty or too long field) names the field and blocks export instead of exporting an old value. ## Starting your own, and resetting - **Start my own card** empties the picks, the name, wording edits, added picks, the private note and the name box, and keeps the author's catalogue, images, heading and style as an unselected template. It asks first if there is a draft to lose. - **Reset to the author's card** brings back the author's own picks and wording, and asks first too. - Both also remove this card's saved copy on the device, and only this card's: another card on the same origin keeps its own. ## Saving and backups Saving on the device is a checkbox, off by default, and says what it holds: the draft with the name and private note, in this browser only. The key is `rapadura.taste-card.v1.`, where the digest is the SHA-256 of the card's canonical JSON (fixed key order, UTF-8: `v`, `lang`, `style`, `title`, `heading`, items `id, label, reason, image`, `selected`, assets `path, alt, sha256` of the file's bytes). Change the card, even one picture, and it is a different card with a different key. If the browser blocks or fills its storage, the page says so, says it did not save, and everything else keeps working. If removing the copy fails, the page says it may come back. A backup is a versioned JSON file tied to the same digest. It holds the name and private note and warns about it. Importing reads at most 256 KiB, refuses another card's file, an unknown version, an image, an unknown pick, an out-of-range selection or arrays posing as objects, and changes nothing when it refuses. A successful import asks before replacing the card. A file that finishes reading after a newer edit, reset or import is ignored. ## PNG export The PNG is drawn in the browser from the same payload as the preview: 1080 px wide, at most 8192 px tall, using the fonts on that device. Text wraps in full; a card too tall for the limit is refused rather than clipped. Every selected image is fetched from the page's own files, decoded and checked before drawing. A missing, corrupt or wrongly typed image, an unavailable font or a canvas failure is shown as an error and no image is offered; the text and JSON still work. ## Build ```sh node reference/build.mjs examples/music-picks/content.json /path/to/empty-folder ``` The result is `public/` in that folder: `index.html`, `style.css`, `app.mjs`, `model.mjs`, `draft.mjs`, `export.mjs`, `text.mjs`, `view.mjs` and the approved `images/`. Nothing else is copied. Bad input stops the build with every problem named and writes nothing; the output folder may not overlap your inputs, may not be a link and must be empty. The scripts are ES modules: serve the folder over http (`file://` shows the picks and a note instead of the editor). ## Completion checks - Every pick, reason and image is yours or approved, and the heading says whose card it is. - Open the page: the card shows exactly your picks in your order. Try an empty edit, a very long word, a backup import and Start my own card. - Download the PNG and look at it. ## Limits and optional additions Without JavaScript the page shows the author's picks and says editing and export need it. There is no hosted share link, no posting and no sync; publish the folder as an ordinary public page if you want one. Optional addition: `tier-list`, for a ranked version of the same kind of picks.