metacore Start a pilot

Product · Built in

Files on records, with renditions and a CDN.

Images and documents on records, stored by the digest of their bytes. The engine renders each image at the widths its field declares, removes its metadata, and serves public files through a CDN.

Files

Images and documents on records, stored by the digest of their bytes. The engine renders each image at the widths its field declares, removes its metadata, and serves public files through a CDN.

Fields

A file is a value, as any other.

A field of files belongs to a released layer. So a new image is validated, approved, published and rolled back with the rest of its record.

A field of filesWhat the engine does
AcceptsImages in JPEG, PNG or WebP, and documents in PDF, as the field names them.
ChecksThe largest size of a file, and the least width and height of an image.
StoresEach file by the SHA-256 digest of its bytes. Each record gives it a name.
ResolvesAs any value does: a file set at the global root shows at every level, and one set at a level replaces it there.
Shows your codeThe digest, name, size, media type, width and height of a file. Never its bytes.

What a field declares

The engine reads the media type from the bytes of a file, never from what its caller says.

A file isWhat happens
UploadedWhoever may change the layer uploads it to the domain, in one HTTP request.
ProcessedA file is processing, ready or failed. A failed file says why.
NamedA change names a ready file by its digest. Otherwise its run fails, and names the file.
KeptWhile the live state, a kept release or a run that waits names it.
DroppedA day after nothing names it, it goes with its renditions.

From upload to release

You read where a file is named: each record, field and level of the live state, of a kept release and of a run that waits.

Renditions

An image is served only as the engine rendered it.

Never as its bytes came. So no image that the engine serves runs as a program, and none tells where a photo was taken.

banner.jpg

Public: the field banner of template in the live state names it, so its addresses answer to anyone who holds them.

Digest
9f2c41d7a8e05b63c1f4d92e7ab830c5d6e1f07b4a29c8d35e60f1b7a4c2d9e8
Type
JPEG
Size
1.84 MiB
Width and height
2,400 × 1,200 pixels
State
Ready
Goes
Not while something names it
Renditions
WidthHeightFormats
256128AVIF WebP JPEG
800400AVIF WebP JPEG
1,600800AVIF WebP JPEG
2,4001,200AVIF WebP JPEG

One file, in the back office

The detail of a file says whether it is public and why, then lists its renditions by width, with a link to each format.

A renditionWhat the engine does
WidthsThe size of the image itself, and each width that a field naming it declares.
FormatsAVIF, WebP, and JPEG, or PNG for an image with transparency.
ProportionsThose of its image. A rendition is never wider than it.
MetadataTurned upright, with its color profile and none of its other metadata, such as a place or a camera.
DocumentsServed as they came, to be downloaded, never shown as a page.
The rendererIt holds no credential. It reaches no database, no file store and nothing outside.

What the engine renders

A deployment that changes the widths of a field renders its files again, in the background.

Delivery

Public files through a CDN. Private files by a signed address.

The schema says whether a field of files is public or private. What an address serves never changes, so a browser or a CDN keeps a file as long as it likes.

Two ways out

A managed CDN is one that we run. Any CDN that reads from an https origin can take its place, as one that you run. No CDN keeps a private file.

RuleWhat it means
A public fileIt answers to anyone who has its address.
A private fileIt answers at an address that a read signs for its caller, for 5 to 10 minutes.
Hosts of their ownFiles never answer at a host where a call answers. So a file never runs as a page of your org, and never reads its cookies.
One address, one fileAnother file has another digest, and another address.
No way aroundWith a CDN, the origin answers public files only to a request that carries its secret.

How a file is served

A restricted field is never public.

Back office

Where an environment serves its files, on one page.

An admin gives an environment a CDN of its own, or chooses one that the org keeps for several environments. Without one, it serves from the file origin.

The distribution of an environment

What serves the public files of production: here a managed CDN of the org, at a hostname of the org. The audit trail records each change of a distribution.

See also

Build your domain.

Declare its schema, and take it to production, self-hosted or in a managed region.

Briefing