# anasalsmele/noshi architecture

> Architecture diagram of the GitHub repository anasalsmele/noshi, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/anasalsmele/noshi
- Repository: https://github.com/anasalsmele/noshi

## Overview

##### Main Components
- Core Toolkit Assets: These include the primary files (noshi.css and noshi.js) along with the additional styling components found in the “style” directory. This is the heart of the toolkit that users include in their projects.
- Documentation Module: The “docs” folder is rich with resources – it holds not only general documentation (HTML docs, CSS styles, JavaScript for demos) but also specific pages (with the .noshipage extension) that explain how different components work.
- Language Support: Both the “lang” directory at the root and the “docs/lang” folder indicate that there is multi-language support (in this case, English) for the documentation or possibly for component internationalization.

##### Out the Relationships and Interactions
- The “Core Toolkit” is what users will directly include in their projects (via <link> and <script> tags in the HTML header as described in the README).
- The “Language Support” modules are tied into the documentation, ensuring that any text or instructions can be localized if needed.
- The additional style directories (both in “docs” and in the root “style”) represent extended examples and component variations. They can be shown feeding into or supporting the overall Developer Experience.

##### Architectural Patterns and Design Principles
- Separation of Concerns: The project is clearly split into asset distribution (core noshi.css & noshi.js), component definitions (in “style/components” and “docs/noshi/style/components”), and documentation (the “docs” folder).
- Modularity and Reusability: Each UI component (buttons, inputs, navs, tables, etc.) is maintained individually. This supports plug-and-play usage and customization.
- Progressive Enhancement: By providing both base styles and extended documentation styles, Noshi emphasizes ease of use and gradual adoption.

##### Including Relevant Technologies
- HTML, CSS, and JavaScript are at the core.
- The structure of the docs (with its own CSS, JS, language files) hints at a static-site approach for documentation.
- Any specific framework or build tool isn’t mentioned, which indicates it might be a pure front-end toolkit without heavy dependency on a particular framework, but it does mention trying out Typescript and enhancing JavaScript skills.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Documentation Module
    subgraph "Documentation Module"
        di("Docs Index (docs/index.html)"):::docs
        dcss("Docs CSS (docs/css)"):::docs
        djs("Docs JS (docs/js)"):::docs
        dpages("Docs Pages (docs/pages)"):::docs
        dnsicss("Docs Noshi CSS (docs/noshi/noshi.css)"):::docs
        dnsijs("Docs Noshi JS (docs/noshi/noshi.js)"):::docs
        dnsistyle("Docs Noshi Style (docs/noshi/style)"):::docs
        dlang("Docs Lang (docs/lang/en.js)"):::docs
    end

    %% Core Toolkit Assets
    subgraph "Core Toolkit Assets"
        css("noshi.css"):::core
        js("noshi.js"):::core
        anim("Style Animations (style/animations.css)"):::core
        ccomp("Style Components (style/components)"):::core
        icons("Style Icons (style/icons)"):::core
        stat("Style Statics (style/statics.css)"):::core
    end

    %% Language Support
    subgraph "Language Support"
        langroot("Lang Root (lang/en.js)"):::lang
    end

    %% Connections between Documentation Module and Core Toolkit Assets
    di -->|"includes"| css
    di -->|"includes"| js
    dnsistyle -->|"mirrors"| ccomp

    %% Documentation localization connection
    dlang -->|"localizes"| di

    %% Language Support connections to Core and Documentation
    langroot -->|"supports"| css
    langroot -->|"supports"| js
    langroot ---|"integrates"| di

    %% Styles
    classDef docs fill:#E3F2FD,stroke:#1E88E5,stroke-width:2px;
    classDef core fill:#E8F5E9,stroke:#43A047,stroke-width:2px;
    classDef lang fill:#FFF9C4,stroke:#FBC02D,stroke-width:2px;

    %% Click Events for Documentation Module
    click di "https://github.com/anasalsmele/noshi/blob/main/docs/index.html"
    click dcss "https://github.com/anasalsmele/noshi/tree/main/docs/css"
    click djs "https://github.com/anasalsmele/noshi/tree/main/docs/js"
    click dpages "https://github.com/anasalsmele/noshi/tree/main/docs/pages"
    click dnsicss "https://github.com/anasalsmele/noshi/blob/main/docs/noshi/noshi.css"
    click dnsijs "https://github.com/anasalsmele/noshi/blob/main/docs/noshi/noshi.js"
    click dnsistyle "https://github.com/anasalsmele/noshi/tree/main/docs/noshi/style"
    click dlang "https://github.com/anasalsmele/noshi/blob/main/docs/lang/en.js"

    %% Click Events for Core Toolkit Assets
    click css "https://github.com/anasalsmele/noshi/blob/main/noshi.css"
    click js "https://github.com/anasalsmele/noshi/blob/main/noshi.js"
    click anim "https://github.com/anasalsmele/noshi/blob/main/style/animations.css"
    click ccomp "https://github.com/anasalsmele/noshi/tree/main/style/components"
    click icons "https://github.com/anasalsmele/noshi/tree/main/style/icons"
    click stat "https://github.com/anasalsmele/noshi/blob/main/style/statics.css"

    %% Click Event for Language Support
    click langroot "https://github.com/anasalsmele/noshi/blob/main/lang/en.js"
```
