# tyrkinn/zeppet architecture

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

- Interactive diagram: https://gitdiagram.com/tyrkinn/zeppet
- Repository: https://github.com/tyrkinn/zeppet

## Overview

##### Project type and purpose
- This is a monorepo for “Zeppet”: a modular JavaScript/TypeScript library focused on DOM manipulation with built-in actions.
- It contains reusable packages (core, actions, tsconfig, eslint-config) and an example frontend app to demo usage.

##### File structure
- Top‐level:
- pnpm-workspace.yaml, turbo.json – workspace & build orchestration
- packages/ – published libraries
- apps/ – consumer applications (apps/example)
- config files (.eslintrc.js, .npmrc, tsconfig templates)
- packages/zeppet-core:
- src/core/* – core API, actions, observer, select, helpers
- types – shared TS types
- packages/zeppet-actions:
- src/index.ts – additional DOM action utilities built on core
- packages/zeppet-tsconfig & eslint-config-zeppet: share coding standards
- apps/example: a Vite + TS demo app illustrating how to import and use @zeppet/core and @zeppet/actions

##### README for additional insights
- Describes the library’s focus (DOM manipulation, built-in actions)
- Installation instructions showing core and actions as peer packages
- Mentions live docs site (Netlify + TSDoc)

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Development Config
    subgraph "Development Config"
        ESLintConfig["eslint-config-zeppet"]:::config
        TSConfig["zeppet-tsconfig"]:::config
    end

    %% Core Logic
    subgraph "Core Logic"
        CorePkg["@zeppet/core"]:::library
        subgraph "Core Submodules"
            API["Core API"]:::library
            ActionsCore["Actions"]:::library
            Observer["Observer"]:::library
            Select["Select"]:::library
            Helpers["Helpers"]:::library
            Types["Types"]:::library
        end
    end

    %% Extensions
    subgraph "Extensions"
        ActionsPkg["@zeppet/actions"]:::library
    end

    %% Consumer Apps
    subgraph "Consumer Apps"
        ExampleApp["Example App"]:::app
        subgraph "Example App Files"
            ViteConfig["tsconfig.json"]:::app
            Entry["main.ts"]:::app
            HTML["index.html"]:::app
            Assets["public & style.css"]:::app
        end
    end

    %% Publishing & Docs
    subgraph "Publishing & Docs"
        CI["Turborepo & pnpm CI/CD"]:::external
        NPM["NPM Registry"]:::external
        Netlify["Netlify Docs"]:::external
    end

    %% Workspace
    Workspace["Monorepo Workspace"]:::external

    %% Relationships
    Workspace -->|"uses"| ESLintConfig
    Workspace -->|"uses"| TSConfig
    Workspace -->|"manages build"| CI

    CorePkg -->|contains| API
    CorePkg -->|contains| ActionsCore
    CorePkg -->|contains| Observer
    CorePkg -->|contains| Select
    CorePkg -->|contains| Helpers
    CorePkg -->|contains| Types

    ActionsPkg -->|"depends on"| CorePkg
    ExampleApp -->|"imports"| CorePkg
    ExampleApp -->|"imports"| ActionsPkg

    CI -->|"publishes to"| NPM
    CI -->|"deploys docs to"| Netlify

    %% Click Events
    click Workspace "https://github.com/tyrkinn/zeppet/blob/main/pnpm-workspace.yaml"
    click Workspace "https://github.com/tyrkinn/zeppet/blob/main/turbo.json"
    click Workspace "https://github.com/tyrkinn/zeppet/blob/main/package.json"

    click CorePkg "https://github.com/tyrkinn/zeppet/tree/main/packages/zeppet-core"
    click API "https://github.com/tyrkinn/zeppet/blob/main/packages/zeppet-core/src/core/index.ts"
    click ActionsCore "https://github.com/tyrkinn/zeppet/blob/main/packages/zeppet-core/src/core/actions/index.ts"
    click Observer "https://github.com/tyrkinn/zeppet/blob/main/packages/zeppet-core/src/core/observer/observer.ts"
    click Select "https://github.com/tyrkinn/zeppet/blob/main/packages/zeppet-core/src/core/select/select.ts"
    click Helpers "https://github.com/tyrkinn/zeppet/blob/main/packages/zeppet-core/src/core/helpers/index.ts"
    click Types "https://github.com/tyrkinn/zeppet/blob/main/packages/zeppet-core/src/types/index.ts"
    click CorePkg "https://github.com/tyrkinn/zeppet/blob/main/packages/zeppet-core/src/index.ts"

    click ActionsPkg "https://github.com/tyrkinn/zeppet/tree/main/packages/zeppet-actions"
    click ActionsPkg "https://github.com/tyrkinn/zeppet/blob/main/packages/zeppet-actions/src/index.ts"

    click ESLintConfig "https://github.com/tyrkinn/zeppet/tree/main/packages/eslint-config-zeppet"
    click ESLintConfig "https://github.com/tyrkinn/zeppet/blob/main/packages/eslint-config-zeppet/index.js"

    click TSConfig "https://github.com/tyrkinn/zeppet/tree/main/packages/zeppet-tsconfig"
    click TSConfig "https://github.com/tyrkinn/zeppet/blob/main/packages/zeppet-tsconfig/base.json"
    click TSConfig "https://github.com/tyrkinn/zeppet/blob/main/packages/zeppet-tsconfig/node14.json"

    click ExampleApp "https://github.com/tyrkinn/zeppet/tree/main/apps/example"
    click ViteConfig "https://github.com/tyrkinn/zeppet/blob/main/apps/example/tsconfig.json"
    click Entry "https://github.com/tyrkinn/zeppet/blob/main/apps/example/src/main.ts"
    click HTML "https://github.com/tyrkinn/zeppet/blob/main/apps/example/index.html"
    click Assets "https://github.com/tyrkinn/zeppet/tree/main/apps/example/public"
    click Assets "https://github.com/tyrkinn/zeppet/blob/main/apps/example/src/style.css"

    %% Styles
    classDef library fill:#D0E8FF,stroke:#004A99,color:#003366
    classDef config fill:#E0F8D0,stroke:#2E7D32,color:#1B5E20
    classDef app fill:#FFF4B0,stroke:#F9A825,color:#F57F17
    classDef external fill:#FFD8A8,stroke:#E65100,color:#BF360C
```
