# fusionstrings/fullfrontal architecture

> Architecture diagram of the GitHub repository fusionstrings/fullfrontal, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/fusionstrings/fullfrontal
- Repository: https://github.com/fusionstrings/fullfrontal

## Overview

Fullfrontal is a small Deno web-app template that turns incoming Requests into server-rendered HTML Responses. The main workflow parses the URL, dispatches `/` to a promise-backed XState actor and Home view, and renders a 404 view for other paths; exceptions produce a 500 view. The separate `source/machine.tsx` defines a request state machine, but the sampled registration module does not import or invoke it, so it is shown as an unconnected prototype. The graph reflects only the sampled source and README.

Main entry points: [`source/register.tsx`](https://github.com/fusionstrings/fullfrontal/blob/creation/source/register.tsx) (Fetch handler), [`source/home.tsx`](https://github.com/fusionstrings/fullfrontal/blob/creation/source/home.tsx) (Home view), [`source/404.tsx`](https://github.com/fusionstrings/fullfrontal/blob/creation/source/404.tsx) (Not found view), [`source/500.tsx`](https://github.com/fusionstrings/fullfrontal/blob/creation/source/500.tsx) (Server error view)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_request["Request handling"]
  node_handler["Fetch handler<br/>[register.tsx]"]
  node_route["Path dispatch<br/>[register.tsx]"]
end

subgraph group_render["Page rendering"]
  node_home["Home view<br/>[home.tsx]"]
  node_not_found["Not found view<br/>[404.tsx]"]
  node_server_error["Server error view<br/>[500.tsx]"]
end

subgraph group_state["State logic"]
  node_page_actor["Page actor<br/>[register.tsx]"]
  node_machine["Request machine<br/>[machine.tsx]"]
end

node_client(("Request client"))
node_response["HTTP response"]

node_client -->|"sends request"| node_handler
node_handler -->|"dispatches path"| node_route
node_route -->|"starts actor"| node_page_actor
node_page_actor -->|"supplies greeting"| node_home
node_route -->|"renders fallback"| node_not_found
node_handler -->|"renders on error"| node_server_error
node_home -->|"renders HTML"| node_response
node_not_found -->|"renders HTML"| node_response
node_server_error -->|"renders HTML"| node_response
node_handler -->|"returns response"| node_response

click node_handler "https://github.com/fusionstrings/fullfrontal/blob/creation/source/register.tsx"
click node_route "https://github.com/fusionstrings/fullfrontal/blob/creation/source/register.tsx"
click node_page_actor "https://github.com/fusionstrings/fullfrontal/blob/creation/source/register.tsx"
click node_machine "https://github.com/fusionstrings/fullfrontal/blob/creation/source/machine.tsx"
click node_home "https://github.com/fusionstrings/fullfrontal/blob/creation/source/home.tsx"
click node_not_found "https://github.com/fusionstrings/fullfrontal/blob/creation/source/404.tsx"
click node_server_error "https://github.com/fusionstrings/fullfrontal/blob/creation/source/500.tsx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_handler,node_route,node_client toneBlue
class node_home,node_not_found,node_server_error toneAmber
class node_page_actor,node_machine toneMint
class node_response toneIndigo
```

## Components

### Request handling

- [Fetch handler](https://github.com/fusionstrings/fullfrontal/blob/creation/source/register.tsx): `source/register.tsx`
- [Path dispatch](https://github.com/fusionstrings/fullfrontal/blob/creation/source/register.tsx): `source/register.tsx`

### Page rendering

- [Home view](https://github.com/fusionstrings/fullfrontal/blob/creation/source/home.tsx): `source/home.tsx`
- [Not found view](https://github.com/fusionstrings/fullfrontal/blob/creation/source/404.tsx): `source/404.tsx`
- [Server error view](https://github.com/fusionstrings/fullfrontal/blob/creation/source/500.tsx): `source/500.tsx`

### State logic

- [Page actor](https://github.com/fusionstrings/fullfrontal/blob/creation/source/register.tsx): `source/register.tsx`
- [Request machine](https://github.com/fusionstrings/fullfrontal/blob/creation/source/machine.tsx): `source/machine.tsx`

### Other components

- **Request client**
- **HTTP response**

## Connections

- Request client → Fetch handler: sends request (evidence: `source/register.tsx`)
- Fetch handler → Path dispatch: dispatches path (evidence: `source/register.tsx`)
- Path dispatch → Page actor: starts actor (evidence: `source/register.tsx`)
- Page actor → Home view: supplies greeting (evidence: `source/register.tsx`)
- Path dispatch → Not found view: renders fallback (evidence: `source/register.tsx`)
- Fetch handler → Server error view: renders on error (evidence: `source/register.tsx`)
- Home view → HTTP response: renders HTML
- Not found view → HTTP response: renders HTML
- Server error view → HTTP response: renders HTML
- Fetch handler → HTTP response: returns response (evidence: `source/register.tsx`)
