Docs›Reference

tik.yaml

The file that describes your tik as a published thing: title, category, tags, visibility, permissions and options.

tik.yaml sits at the root of the tik and never ships with it: it describes the tik as a published thing, while package.json travels with the source. The CLI writes the fields it owns (id, category, grants) into the file without losing your comments, so use codetik set and codetik permissions rather than editing those by hand.

tik.yamlYAML
id: 0093acd2-2e05-4cef-b702-ca756931e4a9 # written by the CLI; never change ittitle: Snakedescription: The classic snake. Swipe to steer, and it gets faster with every bite.category:  - games  - arcadetags:  - snake  - arcadevisibility: publicpermissions: {}options: {}

Fields

FieldWhat it is
idThe tik's id on Codetik. Written by new, dev or the first publish.
titleRequired. Up to 40 characters.
descriptionUp to 300 characters. Generated at the first release when left out.
categoryA slug, or a [parent, child] pair. Required to go live.
tagsUp to 6, lowercase and hyphenated. Generated when left out.
visibilityWhat publish --live releases at: public, unlisted or private. Default public.
permissionsWhat the tik may reach. See Permissions.
optionsBackend switch, fork and favourite toggles, app colours. See below.
summaryThe brief someone forking the tik starts from. Generated when left out.
suggestionsUp to 3 fork ideas. Generated when left out.
suggestionsRegenfalse keeps your summary and suggestions as written, with up to 40 suggestions.
slidesPer-slide options for a multi-screen tik.
modelA note on which model wrote the tik. Not sent.

Anything else is refused, so a typo fails early. There is no author: the API key decides whose account the tik lands in.

category and tags

category must exist; codetik manifest lists the tree. A pair names the parent too, and the parent is checked against the real tree:

YAML
category: arcade          # the child slugcategory: [games, arcade] # the same, with its parent

A release needs a category, from tik.yaml or one the tik already has. The CLI asks at the first publish --live, or pass --category. Unknown tags are created, but prefer the ones codetik manifest lists.

visibility

ValueWho sees a released tik
publicEveryone, in the feed. Cannot be republished from the CLI afterwards.
unlistedOn your profile and by link, never in the feed
privateOnly you

The file never chooses a draft: before the first release, a draft is what codetik publish pushes without --live.

summary and suggestions

The fork brief, and the chips offered to someone forking your tik. Leave them out and Codetik writes them from your source at the first release. Write them yourself when you know the code better than a single read would.

YAML
summary: |-  ### IDEA  What the tik is and how it behaves.   ### TECH  Stack, loop, storage.   ### STYLE  The look worth keeping.   ### LAYOUT  What each file owns, where the tuning knobs are.   ### GOTCHAS  What would cause a wrong edit.suggestions:  - title: Wrap-around walls    subtitle: Exit one edge, appear on the other    instructions: Change the collision rules so the snake wraps around the edges.

summary has those five ### sections, in that order. A suggestion has a title (up to 40 characters), a subtitle (up to 60) and instructions.

options

OptionWhat it does
spacetimedb.enabledThe backend switch. Set by codetik backend.
disableForkstrue hides the fork action.
disableFavouritestrue hides the save action.
publicUserstrue lets every viewer call tik.users.search, not only you. Needs auth.
appStyleOverwriteRecolours the app's bars around the tik.

appStyleOverwrite takes bottomNavbar, infoBar and statusBar, each with colors: auto or a background and foreground pair. Pairs below a 3:1 contrast are refused.

YAML
options:  appStyleOverwrite:    bottomNavbar:      colors:        background: '#0b1026'        foreground: '#e8eaf2'

slides

A multi-screen tik declares its screens in tik.config.json, which ships with the source. slides in tik.yaml holds one entry per screen, to recolour the app's bars per slide:

YAML
slides:  - {}  - options:      appStyleOverwrite:        infoBar:          colors:            background: '#ffffff'            foreground: '#111111'

The list must match the slide count in tik.config.json.