Tesserav1.0.1
GitHub

Configuration

Tessera reads one file, tessera.toml. uv run tessera init writes a commented starting point; the same file is in the repository as tessera.example.toml. Every setting has a sensible default except the organization profile.

Tessera checks the whole file when it starts and reports every problem at once, with the setting's name, so a typo never fails silently. Unknown sections and settings are errors too.

Where the file is#

Commands look for the configuration in this order:

  1. --config PATH (or -c PATH) on the command line;
  2. the TESSERA_CONFIG environment variable;
  3. tessera.toml in the current folder.

Relative paths inside the file (the data home, logo files) are relative to the file's own folder.

Environment variables#

A simple setting can be overridden by an environment variable named TESSERA_<SECTION>_<SETTING>, which is handy for containers and services:

TESSERA_SERVER_PORT=9000 uv run tessera serve
TESSERA_DATA_HOME=/srv/tessera/data uv run tessera sync
TESSERA_LEDGER_URL="postgresql+psycopg://tessera@db/tessera" uv run tessera serve

Secrets never go in the file. The only secret Tessera uses, an optional NCBI API key, is read from the environment variable named by [sources.pubmed] api_key_env.

[organization]#

How the organization appears in public records. See Describing your organization for how to choose values.

SettingTypeDefaultMeaning
nametext(required)Full name, shown in the app and used as an alias
short_nametext""Short form for the sidebar
aliaseslist[]Names as written in affiliations, sponsor and site names
affiliation_patternslist[]Affiliation patterns; * matches any run of characters in a word
reporter_org_nameslist[]Organization names exactly as NIH RePORTER writes them
ctgov_org_nameslist[]Sponsor, collaborator, and site names in ClinicalTrials.gov (falls back to aliases)
email_domainslist[]Domains whose addresses count as evidence of membership
exclusionslist[]Look-alike organizations that contain one of the aliases
applicant_typeslist[]Who the organization is when it applies for funding, in Grants.gov's applicant type codes, so that Opportunities can say whether it may apply. Leave empty to have every opportunity's applicant types checked by hand

name and at least one of aliases, affiliation_patterns, or reporter_org_names are required, so Tessera can recognize the organization.

Grants.gov's applicant type codes, for applicant_types:

CodeApplicant
00, 01, 02, 04State, county, city or township, and special district governments
05Independent school districts
06Public and state-controlled institutions of higher education
07, 11Federally recognized Native American tribal governments; other Native American tribal organizations
08Public and Indian housing authorities
12Nonprofits with 501(c)(3) status, other than institutions of higher education
13Nonprofits without 501(c)(3) status, other than institutions of higher education
20Private institutions of higher education
21Individuals
22, 23For-profit organizations other than small businesses; small businesses
25, 99Others named in the eligibility notes; unrestricted

A private university is usually ["20"]; an independent nonprofit research institute, ["12"].

[branding]#

Admins can set all of this in the app, with a live preview and contrast checks, under Admin → Branding; see Look and words, which also has guidance for logos.

SettingTypeDefaultMeaning
product_nametext"Tessera"The product's name in the sidebar and page titles
themetext"tessera"The default color palette: tessera, harbor, or cassette
accent_colorcolor(none)Replaces the palette's accent: a hex value, a color name, or rgb(), hsl(), or oklch()
logo_lightpath(none)Your logo, shown in the sidebar in place of the Tessera mark and name (SVG, PNG, JPEG, or WebP)
logo_darkpath(none)The logo for dark mode; the light one is used if absent
show_powered_bytrue/falsetrueThe small "Powered by Tessera" line in the sidebar
faviconpath(none)The icon in browser tabs, for the app and the public site (SVG, PNG, or ICO)
social_imagepath(none)The picture shown when someone shares a link to the public site (PNG or JPEG, 1200 by 630 pixels)
footer_linkslist(none)Links for the foot of the app's sidebar and of every public page, such as privacy and accessibility statements

Palettes. Each palette has a light and a dark version, and every viewer can switch palettes and modes for themselves under Appearance in the top bar; theme sets what everyone sees first.

PaletteBy dayAfter dark
tesseraCalm cool neutrals with an indigo accentNeutral graphite with a soft indigo accent
harborWhite and light grey, dark navy text, teal actions, a navy-to-gold ruleDeep navy, bright blue actions, gold and purple accents
cassetteCream label paper, a red-orange accent, a thin sunset stripeBlack labels, an orange accent, the same sunset stripe

A configured accent_color is used as given by day and lightened for dark mode. It also colors links and labels, so choose one that reads on white at a contrast of at least 4.5:1, such as a deep blue or teal rather than a yellow. Write it as a hex value so that text on accent-colored buttons can be chosen for contrast; with other forms that text is white. Tessera and Harbor suit public and leadership views best; Cassette is playful by design. Logos look best at about 190 by 30 pixels.

Your own colors. [branding.palette.day] and [branding.palette.night] set the organization's colors, by name, as hex values. Any you leave out keep Tessera's. They apply over the default (tessera) theme in the app, and to the whole public site.

ColorUsed for
bg, surfaceThe page, and cards and panels on it
text, mutedText, and secondary text
borderLines between things
accent, on_accentLinks, buttons, and highlights, and text on them
stripeThe thin band at the top of the app and under the public site's header
person, publication, grant, studyEach kind of record, as text and icons
[branding]
favicon = "brand/favicon.svg"
social_image = "brand/social.png"
footer_links = [
  { label = "Privacy", url = "https://www.example.edu/privacy" },
  { label = "Accessibility", url = "https://www.example.edu/accessibility" },
]

[branding.palette.day]
accent = "#0b6e4f"
stripe = "#1d3557"

[branding.palette.night]
accent = "#7fd6b4"

Every pair of colors that carries text must meet WCAG 2.2 level AA: 4.5:1 for text, links, and record colors on the page and on cards, and for text on the accent; 3:1 for the stripe against the page. tessera doctor checks each pair by day and by night and fails any below it, and tessera publish will not publish a site whose colors fail.

[data]#

SettingTypeDefaultMeaning
homepath"var"The data home: raw downloads, the Parquet lake, the ledger (with SQLite), the search index, and logs. See Running Tessera

[server]#

SettingTypeDefaultMeaning
hosttext"127.0.0.1"Address to listen on. Anything other than this machine needs accounts = true
portnumber8000Port to listen on
operatortext"Operator"Without accounts, the name recorded on every curation decision
accountstrue/falsefalseRequire sign-in with local accounts and roles; see Accounts and sign-in
session_idle_hoursnumber12A session ends this long after it was last used (1 to 720)
session_max_daysnumber7A session never lasts longer than this from sign-in (1 to 90)
workersnumber1Server processes (1 to 64). One suits a laptop; on a server others use, run about four, so one slow request never holds up the rest. Each process takes its own memory; see Running Tessera. tessera serve --workers overrides it

[ledger]#

The ledger holds people, links, and decisions.

SettingTypeDefaultMeaning
urltext""Empty means SQLite at <data home>/ledger.db. For PostgreSQL: postgresql+psycopg://user@host/dbname

PostgreSQL support needs the postgres extra: uv sync --extra postgres. See Running Tessera.

[sources]#

SettingTypeDefaultMeaning
contact_emailtext""Sent with requests to the public APIs, as their usage policies ask. Set it to an address that can be reached

Each source has its own table, [sources.pubmed], [sources.icite], [sources.reporter], [sources.ctgov], [sources.orcid], [sources.mesh] (NLM's MeSH vocabulary, one 17 MB download a year), and [sources.grants_gov] (federal funding opportunities):

SettingTypeDefaultMeaning
enabledtrue/falsetrueWhether sync and ingest all use the source
api_key_envtext"NCBI_API_KEY" for PubMed, else ""The environment variable holding an optional API key

An NCBI API key (created under API Key Management in your NCBI account settings) raises PubMed's request limit from three to ten per second, which shortens the first sync of a large organization considerably.

[sources.grants_gov] can narrow the opportunities Tessera keeps. Both lists are empty by default, which keeps every forecast and posted federal opportunity (about 1,500):

SettingTypeDefaultMeaning
categorieslist of text[]Grants.gov funding categories, such as "HL" (health) and "ST" (science and technology)
agencieslist of text[]Agency codes, or their beginnings: "HHS-NIH" keeps every NIH institute's, "NSF" the National Science Foundation's

The first sync reads every opportunity's details, about one a second; later syncs read only those that are new or changed, or were last read two weeks ago.

[sync]#

SettingTypeDefaultMeaning
window_yearsnumber5How many years of history the first sync collects. Later syncs fetch only what changed

[evidence]#

Thresholds for authorship suggestions. See Curating.

SettingTypeDefaultMeaning
strong_threshold0 to 10.95Suggestions at or above this likelihood are strong
review_threshold0 to 10.60Suggestions below this are unlikely and hidden by default
store_threshold0 to 10.05Candidates below this are not recorded at all
discover_min_papersnumber2Affiliated papers needed before a person is proposed under Discovered people, or a grant co-investigator is promoted

Changing a threshold takes effect at the next tessera resolve or sync; decisions already made are not affected.

[discovery]#

Concept profiles and similar people. See Finding experts.

SettingTypeDefaultMeaning
half_life_years0.5 to 505.0A paper's weight in a profile halves every this many years
likely_weight0 to 10.5How much a strong suggestion not yet confirmed counts, relative to a confirmed paper. 0 builds profiles from confirmed papers only
similarity_floor0 to below 10.10Pairs of people less similar than this are not listed as similar
similar_per_person1 to 20025At most this many similar people are kept for each person

Changes take effect at the next tessera sync or tessera build discovery.

[vocabulary]#

What the app calls groups, the kinds of group it offers, and the roles people hold in them (see Groups). Groups and memberships store the keys, so you can rename a label at any time; keep its key.

SettingTypeDefaultMeaning
presettext(none)Start from the words of a kind of organization: academic_medical_center, university, or research_institute; settings given beside it replace the preset's. See Look and words
group, groupstextGroup, GroupsWhat the app calls one group and several
leader_roleslist of role keys["lead", "co_lead"]Roles listed as a group's leaders
default_rolerole keymemberThe role of a membership that names none
attributable_kindslist of kind keys["program", "center", "core", "lab", "team"]Kinds of group whose members' papers are suggested as the group's own; see Which papers are the group's

[vocabulary.kinds] lists the kinds of group, as key = "Label", in the order the app offers them. The defaults are division (Division), department (Department), program (Program), center (Center), institute (Institute), core (Shared resource), lab (Lab), and team (Team). Roster rows that name no kind are departments, or the first kind when you have no department.

[vocabulary.roles] lists the membership roles the same way. The defaults are lead (Lead), co_lead (Co-lead), member (Member), staff (Staff), trainee (Trainee), and affiliate (Affiliate).

Keys are lowercase letters, digits, and underscores. Replacing a table replaces the defaults entirely, and leader_roles and default_role must name roles in it.

[mail]#

A mail server for the weekly digest of pending work (tessera digest send). Without a host, nothing is sent and digests stay in the app's Inbox.

SettingTypeDefaultMeaning
hosttextemptyThe SMTP server
portnumber587Its port
usernametextemptyThe user to sign in as, if the server needs one
password_envtextemptyThe name of the environment variable that holds the password; the password itself never goes in the file
senderaddressemptyThe From address, such as Tessera <tessera@example.edu>; required with a host
starttlstrue or falsetrueUpgrade the connection with STARTTLS
ssltrue or falsefalseConnect with TLS from the start (usually port 465) instead of STARTTLS
base_urladdressemptyThe app's address, such as https://tessera.example.edu, for links in messages
[mail]
host = "smtp.example.edu"
username = "tessera"
password_env = "TESSERA_SMTP_PASSWORD"
sender = "Tessera <tessera@example.edu>"
base_url = "https://tessera.example.edu"

[publish]#

The static public site (tessera publish); see The public site.

SettingTypeDefaultMeaning
outpath<data home>/publicWhere the site is written
base_urladdressemptyWhere it is served, such as https://research.example.edu; needed for the sitemap and canonical links
titletextthe organization's nameThe site's title
introtextemptyA sentence or two for the home page (at most 1,000 characters)

[alerts]#

Who hears when something goes wrong; see Running Tessera. Alerts are emailed through [mail].

SettingTypeDefaultMeaning
emaillist of addressesemptyWho is emailed when a sync has failures, a source goes stale, or backups lapse. Empty: problems show in Admin → Operations only
backup_daysnumber7Warn when the last tessera backup is older than this many days (0 to 365; 0 never warns)

[ai]#

The optional assistant; see The assistant. Without this section, or with enabled = false, nothing of it exists in the app, the API, or the public site. The example configuration ends with this section commented out, ready to turn on.

SettingTypeDefaultMeaning
enabledtrue/falsefalseTurns the assistant on
providertext(required)The protocol: openai (Chat Completions), anthropic (Messages), or bedrock (Amazon Bedrock's Converse API)
modeltext(required)The model's name, or Bedrock's model or inference profile ID
base_urltextthe official serviceThe endpoint's root, such as http://127.0.0.1:11434/v1 (openai) or http://127.0.0.1:11434 (anthropic)
api_key_envtextOPENAI_API_KEY, ANTHROPIC_API_KEY, or AWS_BEARER_TOKEN_BEDROCKThe environment variable holding the key; with no key set, none is sent (fine for local servers)
regiontext""Bedrock: the AWS region (required for Bedrock)
headerslist[]Extra "Name: value" headers for a gateway; never a key
max_tokensnumber16000 for anthropic and bedrock, 1500 for openaiThe longest reply, in tokens, the model's thinking included (1 to 64000)
temperaturenumbernot sent0 to 2; lower is steadier. Set it only for a model that takes one (see below)
timeout_secondsnumber120How long to wait for the provider
daily_limitnumber100Requests to the model per person per day (questions, and summary and biosketch drafts); 0 for no limit
roleslist[]The roles that may use it (admin, curator, manager, researcher, viewer); empty for everyone who may read. Admins always may
log_daysnumber365How long exchanges stay in the log

A setting named like a key (api_key, secret, token, password) is refused, and so is an Authorization header: keys belong in the environment.

Temperature and the longest reply. Current Claude models (Claude Opus 4.7 and later, Claude Sonnet 5 and later, Claude Haiku 5.5, and the Fable models) refuse a temperature other than their own default, and so do OpenAI's reasoning models, so Tessera sends none unless you set one. Set it for a model that takes one, such as a local model served by Ollama, where temperature = 0.2 keeps answers steady. The same models always think before they answer, and the thinking counts toward max_tokens, so its default with anthropic and bedrock leaves room for it. An answer that reaches the limit is never kept as if it were whole: the asker is told it was cut off, and the log says to raise max_tokens. TESSERA_AI_TEMPERATURE or TESSERA_AI_MAX_TOKENS set to nothing leaves the setting unset.

[auth.oidc]#

Single sign-on with an OpenID Connect provider, beside local accounts; it needs [server] accounts = true. See Single sign-on for setting it up with Microsoft Entra ID, Okta, Google, or Keycloak.

SettingTypeDefaultMeaning
issuertext""The provider's issuer address; setting it turns single sign-on on. https:// (or http:// on this machine, for testing)
client_idtext(required)The application's client ID at the provider
client_secret_envtextTESSERA_OIDC_CLIENT_SECRETThe environment variable holding the client secret; a client_secret in the file is refused
labeltextSign in with single sign-onThe button on the sign-in page
redirect_urltext""The callback address registered with the provider; empty: this site's /api/v1/auth/sso/callback, from the request (and a reverse proxy's X-Forwarded-Host and X-Forwarded-Proto)
scopeslist["openid", "profile", "email"]Must include openid
username_claimtextpreferred_usernameNames a new account (the part before any @)
name_claimtextnameThe account's display name, kept up to date at each sign-in
email_claimtextemailMatches existing accounts and directory people
roles_claimtext""The claim holding app roles or groups to map (roles for Entra ID, groups for Okta); empty: no mapping
default_roletextviewerThe role of someone with no mapped role; "" refuses them
researcherstrue/falsetrueAn account linked to a person also gets the researcher role
create_accountstrue/falsetrueCreate an account at first sign-in; false admits only accounts an admin added
link_peopletrue/falsetrueLink an account to the directory person with the same email address
trust_emailtrue/falsefalseUse the email claim even when the provider does not mark it verified (Entra ID)

[auth.oidc.roles] maps each value of the roles_claim to a role, written as for tessera users add --role: "Tessera.Curator" = "curator", "Lab managers" = "manager=group:okafor-lab". Mapped roles are replaced at every sign-in; roles given in the app are kept.

[insight]#

Portfolio figures; see Insight.

SettingTypeDefaultMeaning
small_numbernumber5Counts above zero and below this are marked as small numbers, and trends are not claimed from them (1 to 100)
Describes Tessera 1.0.1. Apache License 2.0. Screenshots show an invented organization; every person and record in them is fictional.