summaryrefslogtreecommitdiffstats
path: root/.serena/memories/project_overview.md
blob: 2d94b70c19eb22217554cffc1c7f3760b2308a26 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Project: x (Mihon & Aniyomi Extensions Aggregator)

## Overview

A repository aggregator for Mihon and Aniyomi extensions that automatically syncs from multiple upstream sources.

## Tech Stack

- **Runtime/Package Manager:** Bun
- **Frontend:** SvelteKit, Vite
- **Language:** TypeScript
- **Formatting:** Prettier

## Architecture

- **`src/`:** SvelteKit frontend application.
- **`scripts/`:** Bun scripts for project maintenance.
- **`static/`:** Static assets and generated `data.json`.
- **`extensions.json`:** Configuration file defining extension sources.

## Scripts & Automation

- **`scripts/update.ts`:** The core script.
    - Updates extensions from upstream Git repositories.
    - Generates `static/data.json` for the frontend.
    - Supports `--generate-only` flag to generate `data.json` without fetching updates (used for build).
- **Refactoring (Dec 2025):**
    - `scripts/index.ts` was merged into `scripts/update.ts` to reduce redundancy.
    - `scripts/clean.ts` was removed as it was unused.
    - `package.json` build script updated to use `bun run scripts/update.ts --generate-only`.

## Standards

- **Line Endings:** LF (Line Feed) is enforced project-wide via `.gitattributes` and `.prettierrc` to ensure cross-platform consistency (Windows/Linux/CI).

## Deployment

- **Targets:** GitHub Pages and Cloudflare Workers.
- **CI/CD:** GitHub Actions workflow (`.github/workflows/update.yml`) handles updates every 4 hours and on dispatch.