# fabiopalacio/recipes architecture

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

- Interactive diagram: https://gitdiagram.com/fabiopalacio/recipes
- Repository: https://github.com/fabiopalacio/recipes

## Overview

This is a Django recipe-sharing application. Visitors browse, search, filter, and view published recipes; authors register or sign in, then create and manage unpublished recipes. Recipes and tags are the central domain data, exposed through both server-rendered pages and a REST API. The graph also includes form validation, pagination, and signal registration as supporting layers. The README is empty, so capabilities and links are based on the sampled source and SOURCE INDEX; unsampled routes and integrations are not inferred.

Main entry points: [`recipes/models.py`](https://github.com/fabiopalacio/recipes/blob/main/recipes/models.py) (Recipe catalog), [`recipes/views/api.py`](https://github.com/fabiopalacio/recipes/blob/main/recipes/views/api.py) (Recipe API), [`authors/views/user_forms.py`](https://github.com/fabiopalacio/recipes/blob/main/authors/views/user_forms.py) (Account views), [`recipes/views/site.py`](https://github.com/fabiopalacio/recipes/blob/main/recipes/views/site.py) (Recipe pages)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_authoring["Authoring and accounts"]
  node_author_forms["Account forms<br/>[register_form.py]"]
  node_author_views["Account views<br/>[user_forms.py]"]
  node_profile["Author profile<br/>[profile.py]"]
  node_dashboard["Recipe dashboard"]
  node_recipe_form["Recipe form<br/>[recipe_form.py]"]
  node_author_data[("Author data<br/>[models.py]")]
  node_author_signals["Author signals<br/>[signals.py]"]
  node_author_routes["Author routes<br/>[urls.py]"]
end

subgraph group_catalog["Recipe catalog"]
  node_recipe_data[("Recipe catalog<br/>[models.py]")]
  node_tag_data[("Tag data<br/>[models.py]")]
  node_recipe_signals["Recipe signals<br/>[signals.py]"]
end

subgraph group_interfaces["Web and API interfaces"]
  node_recipe_site["Recipe pages<br/>[site.py]"]
  node_recipe_api["Recipe API<br/>[api.py]"]
  node_recipe_serializer["Recipe serializer<br/>[serializers.py]"]
  node_tag_serializer["Tag serializer<br/>[serializers.py]"]
  node_site_routes["Recipe routes<br/>[urls.py]"]
end

subgraph group_support["Shared support"]
  node_pagination["Pagination<br/>[pagination.py]"]
  node_form_helpers["Form helpers<br/>[django_forms.py]"]
  node_language["Language helper<br/>[i18n.py]"]
end

node_visitor(("Visitor"))
node_author(("Author"))

node_visitor -.->|"browses"| node_recipe_site
node_author -.->|"registers or signs in"| node_author_views
node_author -.->|"manages recipes"| node_dashboard
node_author_routes -->|"routes to"| node_author_views
node_author_views -->|"uses"| node_author_forms
node_author_views -->|"gets language"| node_language
node_author_views -->|"reads profile"| node_author_data
node_dashboard -->|"validates input"| node_recipe_form
node_dashboard -->|"reads and saves"| node_recipe_data
node_dashboard -->|"gets language"| node_language
node_recipe_form -->|"models fields"| node_recipe_data
node_author_forms -->|"uses"| node_form_helpers
node_recipe_form -->|"uses"| node_form_helpers
node_recipe_site -->|"queries recipes"| node_recipe_data
node_recipe_site -->|"filters tags"| node_tag_data
node_recipe_site -->|"paginates results"| node_pagination
node_recipe_api -->|"queries recipes"| node_recipe_data
node_recipe_api -->|"serializes recipes"| node_recipe_serializer
node_recipe_api -->|"loads tag"| node_tag_data
node_recipe_api -->|"serializes tag"| node_tag_serializer
node_recipe_serializer -->|"serializes model"| node_recipe_data
node_recipe_serializer -->|"uses"| node_tag_serializer
node_recipe_data -->|"relates tags"| node_tag_data
node_site_routes -->|"routes to"| node_recipe_site
node_site_routes -->|"routes to"| node_recipe_api
node_recipe_signals -.->|"observes changes"| node_recipe_data
node_author_signals -->|"observes changes"| node_author_data

click node_author_forms "https://github.com/fabiopalacio/recipes/blob/main/authors/forms/register_form.py"
click node_author_views "https://github.com/fabiopalacio/recipes/blob/main/authors/views/user_forms.py"
click node_profile "https://github.com/fabiopalacio/recipes/blob/main/authors/views/profile.py"
click node_dashboard "https://github.com/fabiopalacio/recipes/blob/main/authors/views/dashboard_recipe.py"
click node_recipe_form "https://github.com/fabiopalacio/recipes/blob/main/authors/forms/recipe_form.py"
click node_author_data "https://github.com/fabiopalacio/recipes/blob/main/authors/models.py"
click node_recipe_site "https://github.com/fabiopalacio/recipes/blob/main/recipes/views/site.py"
click node_recipe_api "https://github.com/fabiopalacio/recipes/blob/main/recipes/views/api.py"
click node_recipe_serializer "https://github.com/fabiopalacio/recipes/blob/main/recipes/serializers.py"
click node_tag_serializer "https://github.com/fabiopalacio/recipes/blob/main/tag/serializers.py"
click node_recipe_data "https://github.com/fabiopalacio/recipes/blob/main/recipes/models.py"
click node_tag_data "https://github.com/fabiopalacio/recipes/blob/main/tag/models.py"
click node_recipe_signals "https://github.com/fabiopalacio/recipes/blob/main/recipes/signals.py"
click node_author_signals "https://github.com/fabiopalacio/recipes/blob/main/authors/signals.py"
click node_pagination "https://github.com/fabiopalacio/recipes/blob/main/utils/pagination.py"
click node_form_helpers "https://github.com/fabiopalacio/recipes/blob/main/utils/django_forms.py"
click node_language "https://github.com/fabiopalacio/recipes/blob/main/utils/i18n.py"
click node_site_routes "https://github.com/fabiopalacio/recipes/blob/main/recipes/urls.py"
click node_author_routes "https://github.com/fabiopalacio/recipes/blob/main/authors/urls.py"

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_author_forms,node_author_views,node_profile,node_dashboard,node_recipe_form,node_author_data,node_author_signals,node_author_routes toneBlue
class node_recipe_data,node_tag_data,node_recipe_signals toneAmber
class node_recipe_site,node_recipe_api,node_recipe_serializer,node_tag_serializer,node_site_routes toneMint
class node_pagination,node_form_helpers,node_language toneRose
class node_visitor,node_author toneIndigo
```

## Components

### Authoring and accounts

- [Account forms](https://github.com/fabiopalacio/recipes/blob/main/authors/forms/register_form.py): `authors/forms/register_form.py`
- [Account views](https://github.com/fabiopalacio/recipes/blob/main/authors/views/user_forms.py): `authors/views/user_forms.py`
- [Author profile](https://github.com/fabiopalacio/recipes/blob/main/authors/views/profile.py): `authors/views/profile.py`
- [Recipe dashboard](https://github.com/fabiopalacio/recipes/blob/main/authors/views/dashboard_recipe.py): `authors/views/dashboard_recipe.py`
- [Recipe form](https://github.com/fabiopalacio/recipes/blob/main/authors/forms/recipe_form.py): `authors/forms/recipe_form.py`
- [Author data](https://github.com/fabiopalacio/recipes/blob/main/authors/models.py): `authors/models.py`
- [Author signals](https://github.com/fabiopalacio/recipes/blob/main/authors/signals.py): `authors/signals.py`
- [Author routes](https://github.com/fabiopalacio/recipes/blob/main/authors/urls.py): `authors/urls.py`

### Recipe catalog

- [Recipe catalog](https://github.com/fabiopalacio/recipes/blob/main/recipes/models.py): `recipes/models.py`
- [Tag data](https://github.com/fabiopalacio/recipes/blob/main/tag/models.py): `tag/models.py`
- [Recipe signals](https://github.com/fabiopalacio/recipes/blob/main/recipes/signals.py): `recipes/signals.py`

### Web and API interfaces

- [Recipe pages](https://github.com/fabiopalacio/recipes/blob/main/recipes/views/site.py): `recipes/views/site.py`
- [Recipe API](https://github.com/fabiopalacio/recipes/blob/main/recipes/views/api.py): `recipes/views/api.py`
- [Recipe serializer](https://github.com/fabiopalacio/recipes/blob/main/recipes/serializers.py): `recipes/serializers.py`
- [Tag serializer](https://github.com/fabiopalacio/recipes/blob/main/tag/serializers.py): `tag/serializers.py`
- [Recipe routes](https://github.com/fabiopalacio/recipes/blob/main/recipes/urls.py): `recipes/urls.py`

### Shared support

- [Pagination](https://github.com/fabiopalacio/recipes/blob/main/utils/pagination.py): `utils/pagination.py`
- [Form helpers](https://github.com/fabiopalacio/recipes/blob/main/utils/django_forms.py): `utils/django_forms.py`
- [Language helper](https://github.com/fabiopalacio/recipes/blob/main/utils/i18n.py): `utils/i18n.py`

### Other components

- **Visitor**
- **Author**

## Connections

- Visitor → Recipe pages: browses
- Author → Account views: registers or signs in
- Author → Recipe dashboard: manages recipes
- Author routes → Account views: routes to (evidence: `authors/urls.py`)
- Account views → Account forms: uses (evidence: `authors/views/user_forms.py`)
- Account views → Language helper: gets language (evidence: `authors/views/user_forms.py`)
- Account views → Author data: reads profile
- Recipe dashboard → Recipe form: validates input (evidence: `authors/views/dashboard_recipe.py`)
- Recipe dashboard → Recipe catalog: reads and saves (evidence: `authors/views/dashboard_recipe.py`)
- Recipe dashboard → Language helper: gets language (evidence: `authors/views/dashboard_recipe.py`)
- Recipe form → Recipe catalog: models fields (evidence: `authors/forms/recipe_form.py`)
- Account forms → Form helpers: uses (evidence: `authors/forms/register_form.py`)
- Recipe form → Form helpers: uses (evidence: `authors/forms/recipe_form.py`)
- Recipe pages → Recipe catalog: queries recipes (evidence: `recipes/views/site.py`)
- Recipe pages → Tag data: filters tags (evidence: `recipes/views/site.py`)
- Recipe pages → Pagination: paginates results (evidence: `recipes/views/site.py`)
- Recipe API → Recipe catalog: queries recipes (evidence: `recipes/views/api.py`)
- Recipe API → Recipe serializer: serializes recipes (evidence: `recipes/views/api.py`)
- Recipe API → Tag data: loads tag (evidence: `recipes/views/api.py`)
- Recipe API → Tag serializer: serializes tag (evidence: `recipes/views/api.py`)
- Recipe serializer → Recipe catalog: serializes model (evidence: `recipes/serializers.py`)
- Recipe serializer → Tag serializer: uses (evidence: `recipes/serializers.py`)
- Recipe catalog → Tag data: relates tags (evidence: `recipes/models.py`)
- Recipe routes → Recipe pages: routes to (evidence: `recipes/urls.py`)
- Recipe routes → Recipe API: routes to (evidence: `recipes/urls.py`)
- Recipe signals → Recipe catalog: observes changes (evidence: `recipes/signals.py`)
- Author signals → Author data: observes changes (evidence: `authors/signals.py`)
