How it works
When you upload a file on the Protect page, Truthlocks sends the file name, type, size, and a preview (for text-based files) or EXIF data (for images) to an AI model. The file itself stays in your browser — only metadata is sent for analysis.Metadata extracted
Truthlocks reads basic file properties (name, MIME type, size) and, where
applicable, extracts EXIF data from images or a text preview from code and
document files.
AI analysis
The extracted metadata is sent to the AI model, which returns a structured
response with category, content type, description, suggested title, tags,
and more.
AI metadata extraction is automatic and runs in the background as soon as you
select a file. You always have the final say — edit or override any
suggestion before protecting.
Supported categories
The AI classifies your content into one of the following categories based on file type and content analysis:| Category | File types |
|---|---|
| Photography | JPEG, PNG, WebP, TIFF, RAW formats |
| Digital art | PSD, AI, SVG, Procreate, HEIC |
| Source code | JS, TS, Python, Go, Rust, Java, C/C++, and 30+ other languages |
| Document | PDF, DOCX, TXT, Markdown, LaTeX |
| Music | MP3, WAV, FLAC, AAC, MIDI |
| Video | MP4, MOV, AVI, WebM, MKV |
| Design | Figma, Sketch, XD files |
| Data | CSV, JSON, XML, SQL, Parquet |
Generated metadata fields
The AI produces the following fields for each file:| Field | Description |
|---|---|
category | Content category (see table above) |
content_type | Specific content type within the category (e.g., “landscape photography”) |
suggested_title | A human-readable title based on file name and content |
description | A short description of what the file contains |
tags | Relevant keywords for search and discovery |
language | Programming language (for source code files) |
framework | Detected framework or library (for source code files) |
license_hint | Detected or suggested license (if identifiable) |
subject_matter | The primary subject or topic of the content |
Similarity detection
Before minting a protection, Truthlocks checks whether a similar file hash already exists. This prevents duplicate protections and alerts you if the content was previously registered — either by you or by another user. If a match is found, you see a warning with details about the existing protection before proceeding.Using AI metadata with the API
When calling the mint endpoint, you can include AI-extracted fields to enrich your protection record:Privacy
AI metadata extraction follows the same privacy model as the rest of Truthlocks:- Your file never leaves your browser. Only the file name, MIME type, size, and a small preview or EXIF data are sent for analysis.
- No file content is stored by the AI service. Metadata is generated in real time and returned to your browser.
- You control what ships. Review and edit all AI-generated fields before confirming your protection.
Next steps
Content protection
Full guide to protecting your content with cryptographic attestations.
Embeddable badges
Add verification badges to your website or README.
