# dishpitdev/slopify architecture

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

- Interactive diagram: https://gitdiagram.com/dishpitdev/slopify
- Repository: https://github.com/dishpitdev/slopify

## Overview

##### Project Type Analysis
This is an open-source web application with a unique characteristic - it's a community-built project that accepts various types of contributions in different languages and features. The project appears to be a collection of interactive web experiences, games, and utilities.

##### Main Components

A. Frontend Layer
- Core HTML Pages (index.html, chat.html, second.html, uwu.html)
- Interactive Experiences (donut.js, fishtank.js, flappyMusk.js)
- Embr System (separate container for embr folder contents)

B. Static Assets Layer
- Audio Resources
- CSS Styles
- Images
- JavaScript Utilities
- Fonts

C. Core Infrastructure
- TypeScript Integration (index.ts)
- Configuration (tsconfig.json, package.json)
- Payment Integration (lib/stripe)

**Rectangle: Main containers**
**Rounded Rectangle: Feature modules**
**Hexagon: External services**

**Blue: Core components**
**Green: Static assets**
**Orange: Third-party integrations**
**Purple: Interactive features**

##### Component Relationships

- How static assets are consumed by frontend components
- Integration points between different interactive features
- Stripe payment flow
- TypeScript compilation flow

**[Top Level]**
- User Interface Layer
- Feature Modules
- Static Assets
- Infrastructure

**[Detail Level]**
**Show specific implementations like:**
- Embr System
- Payment Processing
- Game Modules
- Audio/Visual Resources

##### Implementation Notes

- Maintain a clear hierarchy of components
- Version/date information
- Notes about the community-driven nature of the project

##### Key Relationships to Highlight

- How TypeScript files compile to JavaScript
- Static asset delivery pipeline
- Integration points between different community contributions
- Stripe payment flow
- Audio/Visual resource management

A note about the project's philosophy of accepting various languages and implementations while maintaining functional harmony across the system.

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Frontend
        CoreHTML["Core HTML Pages"]
        InteractiveExp["Interactive Experiences"]
        EmbrSystem["Embr System"]
    end

    subgraph StaticAssets
        Audio["Audio Resources"]
        CSS["CSS Styles"]
        Images["Images"]
        JSUtils["JavaScript Utilities"]
        Fonts["Fonts"]
    end

    subgraph Infrastructure
        TypeScript["TypeScript Integration"]
        Config["Configuration"]
        Payment["Payment Integration"]
        Security["Security Components"]
    end

    subgraph Community
        ProjectDocs["Project Documentation"]
        Funding["Funding"]
    end

    CoreHTML --> StaticAssets
    InteractiveExp --> StaticAssets
    EmbrSystem --> StaticAssets
    TypeScript --> CoreHTML
    Payment --> CoreHTML
    Security --> CoreHTML

    %% Component Mappings
    click CoreHTML "https://github.com/DishpitDev/Slopify/blob/main//index.html"
    click InteractiveExp "https://github.com/DishpitDev/Slopify/blob/main//donut.js"
    click EmbrSystem "https://github.com/DishpitDev/Slopify/tree/main//embr/"
    click Audio "https://github.com/DishpitDev/Slopify/tree/main//static/audio/"
    click CSS "https://github.com/DishpitDev/Slopify/tree/main//static/css/"
    click Images "https://github.com/DishpitDev/Slopify/tree/main//static/images/"
    click JSUtils "https://github.com/DishpitDev/Slopify/tree/main//static/js/"
    click Fonts "https://github.com/DishpitDev/Slopify/tree/main//static/fonts/"
    click TypeScript "https://github.com/DishpitDev/Slopify/blob/main//index.ts"
    click Config "https://github.com/DishpitDev/Slopify/blob/main//package.json"
    click Payment "https://github.com/DishpitDev/Slopify/blob/main//lib/stripe/createCustomer.ts"
    click Security "https://github.com/DishpitDev/Slopify/blob/main//security.js"
    click ProjectDocs "https://github.com/DishpitDev/Slopify/blob/main//README.md"
    click Funding "https://github.com/DishpitDev/Slopify/blob/main//.github/FUNDING.yml"

    classDef frontend fill:#a8d0e6
    classDef static fill:#95e1d3
    classDef infra fill:#f8b195
    classDef community fill:#f67280

    class CoreHTML,InteractiveExp,EmbrSystem frontend
    class Audio,CSS,Images,JSUtils,Fonts static
    class TypeScript,Config,Payment,Security infra
    class ProjectDocs,Funding community
```
