Previews
Hyperfile renders rich previews for many file types directly in the browser.
Markdown files are full GitHub Flavored Markdown, plus Hyperfile's own extensions such as charts and signature fields. Markdown in Hyperfile lists every extension with its syntax and examples; this page goes deeper into charts and signatures.
Supported Formats
Images
JPEG, PNG, GIF, WebP, SVG, TIFF, and BMP.
Documents
PDF, DOCX, and plain text / Markdown. Markdown files can draw charts from your data files — see Charts in Markdown. Callouts and tooltips are drawn too — see callouts and tooltips in Markdown in Hyperfile. PDFs can be marked up and signed in the browser — see Marking up PDFs and Signing.
Code
Syntax-highlighted previews for JavaScript, TypeScript, Python, Go, Rust, Java, C/C++, PHP, HTML, CSS, SQL, JSON, XML, Markdown, and more.
Tabular Data
CSV, TSV, XLSX, and XLS files render as interactive data tables with sorting and filtering.
Audio & Video
MP3, WAV, FLAC, OGG, MP4, WebM, and MOV with native playback controls and waveform visualization for audio.
Preview Panel
Click any file to open the preview panel on the right side of the screen. The panel adapts to the file type and provides download, version history, and metadata controls.
Marking up PDFs
Choose Edit PDF in a PDF's toolbar to mark it up. You can highlight, underline, strike out or squiggly-underline text, draw with a pen or highlighter, add rectangles, ellipses, lines and arrows, and add text boxes, each in the colour you pick. Drawings, rectangles, ellipses, lines and arrows also take a stroke width, rectangles and ellipses a fill, and text boxes a text size. Undo and redo cover every change.
Saving writes the marked-up PDF as a new version of the file, so the version you started from stays in its version history for as long as the filesystem keeps version history. Markup you delete before saving is removed from the file, not just hidden.
Editing a PDF needs update permission on the file. A PDF can be edited up to 50 MB. A signed PDF still opens and can be read, but it can't be edited, since any change would break its signatures, and neither can an encrypted one.
Signing
A PDF can say where its signatures go in two ways: export it from a Markdown file that places signature fields, or prepare a form on any PDF in the viewer. Each signer then signs that PDF in Hyperfile.
Signature fields in Markdown
Place a field inline with :sign[...], :initials[...], :date[...] or :name[...], naming the signer in the brackets:
Agreed by :sign[ada@example.com] on :date[ada@example.com].
Or place a whole signature block, with an optional caption and date and printed-name boxes beside the signature:
signer: ada@example.com
label: Authorised signatory
date: true
name: true
The signer has to be the email address the person signs in with. A field naming a role such as Client still shows in the PDF, but nobody can sign it in Hyperfile, and the linter warns about it.
The whole block format is in Markdown in Hyperfile, and as a JSON Schema at signature.schema.json.
Exporting a signable PDF
Choose Export as PDF in a Markdown file's preview. The PDF is saved as a new file beside the Markdown, never over an existing one, with a signature field wherever the Markdown placed one.
Preparing a form
Most PDFs can become a form for people to fill in and sign; when one can't, the form bar says why. Choose Prepare a form in a PDF's toolbar; it's there for members who can update the file.
Pick a field type and click a page to place it: signature, initials, stamp, date, checkbox, text, name, email, company, title, radio, dropdown, note or attachment. To place a field without a mouse, pick its type from the keyboard and use Place with keyboard: the arrow keys move the field, Shift with an arrow resizes it, Page Up and Page Down change page, Enter places it and Escape stops.
A signature field must belong to a signer; any other field but a note can belong to one or be left for No one yet. Choose Add signer and give them a name and, if you like, an email address, and pick under New fields go to who the next field you place is for. Signers an earlier form save made are listed for you, and their email addresses can't be changed; one the document already names keeps its name, and one it left unnamed can be given a name. The signature blocks of a Markdown export are drawn, but their signers are not offered here yet; that comes once exported fields are locked like a form's. A signer with an email address can only be signed for by the person who signs in with it; a signer without one is open to whoever signs first, and is theirs from then on.
Select a placed field to change it: its label, who it's Assigned to (any field but a note), and whether it's Required (any field but a signature or a note). A signature field can also take a Signing order: lower numbers sign first, fields with the same number can be signed at the same time, and a field with no number can be signed whenever. Radio buttons and dropdowns take the options to choose from. An attachment field embeds a file from the same filesystem in the PDF; choose it with Find a file.
Save form saves the fields as a new, unsigned version of the file, so the version you started from stays in its version history for as long as the filesystem keeps versions. If an unsigned PDF is damaged, the form says so and Hyperfile repairs it when you save; a signed one that is damaged can't be changed. Once it's saved, each signer signs it as below, and a signature locks every one of that signer's boxes, filled in or left blank.
Signing in the viewer
Open the PDF and choose Sign. It shows the fields that are yours: the ones for your email address, and any left open to anyone. Draw, type or upload your signature, add your initials where the document asks for them, and fill in the printed name; date boxes are filled in with the day you sign, in UTC. Hyperfile then seals the document with a digital signature, so a PDF reader can check it hasn't changed since, and saves the signed PDF as a new version of the file. If yours is the first signature on the document, it also certifies it, and the sign bar says "Signing certifies this document" before you finish; from then on the PDF only takes form filling and more signatures. If the file changed while you were signing, nothing is saved, and you can sign the current version instead.
The last signature you placed is kept in this browser for you, and is there on the pad, ready to place, the next time you sign; the last initials you typed or drew yourself are kept too, and offered with a Use saved initials button; Forget in the signing window removes them and clears the signature pad, and drawn initials with it (typed initials stay), so your next signature is new ink. They're kept for you alone, never on Hyperfile's servers, and removed when you sign out. If someone else signs in, the saved signature is removed.
Signing a form
On a form, the other boxes that are yours are filled in on the page as you sign: text, email, company and title boxes, checkboxes, radio buttons, dropdowns, and a stamp from an image you upload. Required boxes are marked. Next takes you through the required boxes still open, the required initials boxes not yet stamped and your signature box, in page order, and the sign bar counts the required boxes left, leaving out your signature; you can fill an optional box by clicking it. Once your signature is placed, boxes belonging to other signers are greyed until you finish or clear it. You can finish once you've placed your signature: if a required box is still empty, or is a list box or a box whose type the document doesn't give, which can't be filled in here yet, the signing is refused with the reason, and nothing is saved. Date boxes are dated as you sign, and notes are there to read; neither can be changed.
Your signature locks every one of your boxes, filled in or left blank, so nobody can change what you entered, or fill in what you left out, afterwards.
Who has signed
Choose Signatures in a PDF's toolbar to see where its signing stands; it's there for anyone signed in who can view a PDF with signature fields or signatures, signing or not, but not on a shared site. It lists each signer: Signed, Next, Waiting for their turn, or Cannot sign here, with the reason. A signer left open to anyone shows as open until someone signs for them, and a signature field that names no signer is listed under its own row. Each signature is listed with when it was made and what Hyperfile checked: that it's intact, that it covers the whole document, and that Hyperfile sealed it, with a warning when it uses a weak algorithm; signatures that belong to no signer row follow in a second list of other signatures, document timestamps among them. Hyperfile doesn't check who issued a signature's certificate yet, so the panel never calls a signature valid or trusted.
Charts in Markdown
A code block that opens with ```chart in a Markdown file draws a chart from a CSV, TSV, XLSX, XLS, JSON or JSONL file in the same filesystem, or from data written into the block itself (see Data in the chart). CSV, TSV and JSONL files can be any size, since they are read as they download. JSON, XLSX and XLS files are read whole in your browser, so a very large one can be slow to draw. Charts draw in the file preview and in the editor's preview pane, and they print.
The whole chart format is also published as a JSON Schema, chart.schema.json. Point an editor at it to check a chart file as you write it.
Quick form
type: bar
sources:
sales: ../data/sales.csv
x: sales.Month
y:
- sales.Revenue
- sales.Cost
title: Sales by month
description: Monthly revenue and cost, side by side.
sources names each file once. x and y always start with a source name, like sales.Month, and y can be one column or a list of them. type is line (the default), bar, scatter, pie, doughnut or area, which is a filled line.
Paths are relative to the Markdown file (./, ../) or from the top of the filesystem (/data/sales.csv). Unlike an image link, a source path is a plain file path rather than a URL: %, # and ? are ordinary characters, so ./50%.csv and ./Q1#2.csv name exactly those files, and %20 stays %20 rather than becoming a space.
Full form
For more control, write a Chart.js config and put references where the data goes:
type: line
sources:
sales: ../data/sales.csv
forecast:
path: ../data/forecast.xlsx
sheet: FY26
data:
labels: sales.Month
datasets:
- label: Revenue
data: sales.Revenue
- label: Forecast
data: forecast[C2:C13]
options:
plugins:
legend:
position: bottom
References are read at data.labels and at each dataset's data. A value there that is not a reference, like sales report, stays as written. A source name followed by . or [ is always read as a reference, so a label like sales.Q1 (est) is reported as a bad reference rather than drawn as text. Everything else goes to Chart.js as written, so any Chart.js option works, with two additions: a dataset that sets no colours gets the theme's, and a long line chart of sorted number points on a linear x axis is thinned out (Chart.js decimation) so it draws quickly. Setting your own parsing or decimation option, or parsing on any dataset, turns the thinning off. The config is YAML or JSON, so options that need a function (callbacks) are not possible.
A chart in its own file
Put either form in a .yaml or .json file and point the block at it:
../charts/sales.chart.yaml
Paths inside that file are relative to the file itself, not to the Markdown file. A chart file can be up to 1 MB.
Size
A chart is 600 pixels wide and half as tall, centred in the column. A pie or doughnut chart (and, in the full form, polarArea or radar) is 400 pixels square. A chart is never wider than the text column, so it shrinks on a narrow screen.
width and height change that, in either form:
type: pie
sources:
sales: ../data/sales.csv
x: sales.Month
y: sales.Revenue
width: 20rem
- Each is a number of pixels, like
480, or a length inpx,remorem, like480pxor30rem. Awidthcan also be a percentage of the column, like80%. Nothing else is accepted, and the chart check reports any other value. - Give one and the other follows the chart's shape: half as tall as it is wide, or square for a pie or doughnut. In the full form,
options.aspectRatiosets that shape instead. - Give both and the chart takes exactly that box, still no wider than the column.
- In the full form,
widthandheightsize the chart and are not passed to Chart.js.
The chart is the same size in the preview, in the editor and in a printed copy or PDF, and a chart that cannot be drawn holds the same space.
Alt text
description, in either form, will be the chart's alt text in an exported PDF — what it shows, in a sentence or two; the preview does not read it yet. Without it, the alt text is built from the title, the chart type and the series names.
References
| By name | Means |
|---|---|
sales |
The whole table |
sales.Revenue |
The column headed "Revenue" |
sales["Unit Price"] |
A heading with spaces, dots or brackets |
forecast.FY26.Revenue |
Sheet FY26, then its column "Revenue" |
stats.monthly.visits |
JSON: into monthly, then the column "visits" |
| Spreadsheet ranges | Means |
|---|---|
sales[B] |
Column B |
sales[A2:A13] |
Cells A2 to A13 |
sales[2:2] |
Row 2 |
sales[A1:C13] |
Columns A to C, rows 1 to 13, without the header row |
forecast.FY26[C2:C13] |
A range on sheet FY26 |
| Index slices | Means |
|---|---|
sales[:,0] |
The first column |
sales[0,:] |
The first data row |
sales[1:,0] |
The first column, from the second data row on |
sales[:,0:2] |
The first two columns |
sales[-12:,1] |
The last twelve rows of the second column |
- The header row is never data. It is the first row that is not empty, usually row 1. It names the columns, so
sales[B]andsales.Revenueboth start on the row after it. - A comma inside the brackets means
[rows, columns]. These count from 0 over the data rows, like Python, and a negative number counts from the end. When the header is on row 1,sales[A2:A13]andsales[0:12,0]are the same cells. - Inside brackets, a letter is a column.
sales[B]is always column B, whilesales.Bis the column headed "B".
Source options
A source can be a map instead of a path:
sources:
forecast:
path: ../data/forecast.xlsx
sheet: FY26
raw:
path: ./readings.csv
header: false
sheetpicks a workbook sheet by name, or by number counting from 1. Without it, write the sheet in the reference (forecast.FY26.Revenue), or leave it out to read the first sheet.header: falseis for a file with no header row. Every row is then data, and the columns are named A, B, C and so on.
Data in the chart
A source can hold its data instead of a path, for a small table with no file of its own; the shapes it may take, and the limit on how many values a chart writes in, are under chart in Markdown in Hyperfile.
The full form needs no sources at all when every value is written in place:
type: bar
data:
labels: [Jan, Feb, Mar]
datasets:
- label: Total
data: [1500, 1900, 1700]
Without sources, a single reference at data.labels or at a dataset's data, like data: sales.Revenue, is reported, since there is nothing for it to read.
JSON and JSONL
- An array of objects is a table, with the keys as its columns.
- Reach nested data by its keys:
stats.monthly.visitsis thevisitscolumn of themonthlyarray. - With a source named
myDatapointing at a file that holds{"x": [1, 2, 3]},myData.xis that list, read as one column. - A JSONL file is one object per line, and reads like an array of objects. It is already a list, so there are no keys to descend: a JSONL reference takes at most one column name after the source, like
events.visits.
Shapes
- One column (or one row) is a series of values, or the labels along the axis.
- On a
scatterorbubblechart, two columns, or a list of two references, become points (x, y). On atype: bubblechart, which needs the full form, a third column sets each bubble's size. On any other chart a data position takes one column. - Blank cells are gaps in the line.
- Numbers stored as text become numbers. A number written with a thousands comma, like
1,000, stays text.
Lists of references
Write a list of references in block form, one - item per line. Inside a short [a, b] list, the [ and , in a reference confuse YAML.
type: scatter
sources:
stats: /data/stats.json
data:
datasets:
- label: Signups per visit
data:
- stats.monthly.visits
- stats.monthly.signups
If a chart does not render
The block shows its source, with the reason underneath. The usual causes are:
- A path that names no file — "no file at …".
- A column name that is not in the file. The message lists the columns the file does have.
- An
xorythat does not start with a source name, likex: Monthinstead ofx: sales.Month.
Checking a chart
Agents connected to Hyperfile over MCP have a lint_file tool. It checks the format of each chart block in a file and its first values, along with the file's frontmatter, code blocks and links, and names the line of each problem. The preview checks the rest of a chart when it draws it. If either reports a YAML error on a short [a, b] list of references, an item in it holds [, ], {, } or " — like [sales[B], sales[C]]. Quote that item, or write the list in block form instead — see Lists of references.