Glossary
This is a list of the words used in this guide. If you find a word you do not understand while you read, check it here.
| Term | Meaning |
|---|---|
| Gate | The Worker's public entry point. It receives the requests that reach the Worker, checks login and so on, and then passes them on to the code for pages, forms and so on. |
| Renderer | A part of the Worker that only the Gate calls. It renders the shared HTML. When the response cannot come from the cache, the page's code runs here. No outside URL can call it directly. |
| hermet-patch | About 1 KB of JavaScript that runs in the browser. It puts the Server Island HTML that arrives later into the placeholders on the page. |
| SSR | Short for server-side rendering. When a request comes in, the server renders the HTML and sends it. |
| Server Island | A component that shows per-user content. The Gate renders it and sends it in the same response, after the shared HTML. |
| Client Island | A component that runs in the browser. You write it as Custom Elements (HTML tags of your own). |
| manifest | The list of pages, forms and APIs, written in src/manifest.rs. It sets how each URL is handled and when it is cached. |
| Load | A function that prepares the data for a page. It receives values from the URL path. Depending on the kind of page, it can also use shared data and the member type. |
| Shared | A type for reading data that is the same for all users, such as the product list. |
| PageBody | A type that groups the code that makes a page's content, such as Load and Server Islands. |
| Template | An HTML file with places like {name} where you can put values. hermet::template! connects it to a Rust type. |
| Component | HTML other than pages, placed in src/components/. There are plain components, Server Islands and Client Islands. |
| Placeholder | A marker in the HTML that shows where a Server Island goes. It is an element with data-island="name". When the Island arrives, the element's content is replaced. |
| Workers Cache | The cache in each Cloudflare data center. It stores the shared HTML that can be cached. |
| Shared HTML | The HTML that is the same for everyone who views the same page. On a statute page, it includes the outer frame, the table of contents and the articles. |
| Static generation | A way to make HTML files in the build before you deploy, and serve them from Static Assets. |
| HIT / MISS | If the cache has a response that can be reused, it is a HIT. If not, it is a MISS. |
| Static Assets | The Cloudflare feature that serves public files directly. |
| Worker | A program that runs on Cloudflare Workers. In a Hermet site, one Worker defines both the Gate and the Renderer. |
| workers.dev | The public URL for Workers that Cloudflare provides. If you enable it in a Worker's settings, you can open that Worker at a URL on this domain. |
| D1 / KV / R2 | Cloudflare's storage services. D1 is for data you work with in SQL. KV is for pairs of a name and a value. R2 is for storing files. |
| Binding | The name that a Worker uses to reach storage. For example, the name SESSIONS connects the Worker to the KV for sessions. |
| CSP | Short for Content Security Policy. It tells the browser what the page may run, such as which scripts. Hermet creates it automatically. |
| Wrangler | Cloudflare's official command-line tool. You can create a Hermet site, check it locally and deploy it without Wrangler. You need it, together with Node.js, only when you want to run the site locally with wrangler dev. |
| workerd | The runtime that Cloudflare runs Workers on. It is one executable, and hermet dev runs your Worker locally with it alone. |
| worker-build | A tool that turns Rust code into WebAssembly (Wasm) that runs in a Worker. |
| hermet CLI | The hermet command that you use in a terminal. With new, check, check-public, build, dev, deploy, secret put and d1 migrate, it covers everything from creating a site to checking it locally, deploying it and preparing D1 tables. |
| cloudflare.rs | The configuration file where you set, in Rust, the Worker's name, storage, environment variables, scheduled jobs and so on. |
| mode | A set of settings that you can switch to (production, development and so on). You write one function per mode in cloudflare.rs and choose one with --mode <name>. If you leave it out when you build or deploy, default is used. |