{"id":15586615,"url":"https://github.com/innei/d","last_synced_at":"2026-01-08T16:06:08.969Z","repository":{"id":207144773,"uuid":"718532894","full_name":"Innei/D","owner":"Innei","description":"D is a simple local first personal website, written in Vue 3","archived":false,"fork":false,"pushed_at":"2024-01-19T22:01:54.000Z","size":1526,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-30T07:02:13.520Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://innei.ren","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Innei.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-14T09:26:54.000Z","updated_at":"2024-06-20T16:10:55.000Z","dependencies_parsed_at":"2024-10-02T21:40:49.976Z","dependency_job_id":"35ab7631-103e-4b67-bc74-137983ba4c27","html_url":"https://github.com/Innei/D","commit_stats":null,"previous_names":["innei/d"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Innei/D","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Innei%2FD","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Innei%2FD/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Innei%2FD/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Innei%2FD/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Innei","download_url":"https://codeload.github.com/Innei/D/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Innei%2FD/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28246679,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2026-01-08T02:00:06.591Z","response_time":241,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T21:40:44.207Z","updated_at":"2026-01-08T16:06:08.933Z","avatar_url":"https://github.com/Innei.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# D\n\nA simple website. Written by Vue 3.\n\nData persistents in index DB, and local first after syncing but not using CRDTs.\n\n## Structure\n\nEstablishing IndexDb for the first time.\n\n```mermaid\nsequenceDiagram\n    participant Server as Server Database\n    participant API as /sync/collection Interface\n    participant Frontend as Frontend\n    participant Stream as Stream Processing\n    participant IndexDB as IndexDb\n\n    Server-\u003e\u003eAPI: Full data stream transmission loss\n    API-\u003e\u003eFrontend: Data stream\n    Frontend-\u003e\u003eStream: Receiving data stream\n    loop Parse each line of data\n        Stream-\u003e\u003eIndexDB: Enter each line of data into respective tables\n    end\n```\n\nData binding with Pinia to implement UI reactivity.\n\n```mermaid\nsequenceDiagram\n    participant IndexDB as IndexDb\n    participant Hook as Hook (on change)\n    participant Pinia as Pinia Store\n    participant UI as User Interface\n\n    IndexDB-\u003e\u003eHook: Change event\n    Hook-\u003e\u003ePinia: Update/inject data\n    Pinia-\u003e\u003eUI: Render/update reactive data\n```\n\nSubsequent incremental updates.\n\n```mermaid\nflowchart LR\n    subgraph server [Server]\n        db[Database]\n        checksum_table[Checksum Table]\n        hooks[Update Hooks]\n        db --\u003e checksum_table\n        db --\u003e hooks\n    end\n    subgraph operations [Operations]\n        add_record[Add Record]\n        update_record[Update Record]\n        delete_record[Delete Record]\n        add_record --\u003e hooks\n        update_record --\u003e hooks\n        delete_record --\u003e hooks\n    end\n    cronjob[Cron Job] --\u003e db\n    hooks --\u003e|Update Checksums| checksum_table\n\n    server -.-\u003e operations\n    server --\u003e cronjob\n\n\n```\n\n\u003c!-- 建立 /sync/deta 接口，接受一个上次同步完成的时间，根据这个时间查询这段时间的 db 更新记录，前端请求，增量更新 indexDb --\u003e\n\n```mermaid\nsequenceDiagram\n    participant Frontend\n    participant /sync/deta API\n    participant Database\n\n    Frontend-\u003e\u003e/sync/deta API: Request sync with last sync timestamp\n    /sync/deta API-\u003e\u003eDatabase: Query updates since last sync timestamp\n    Database--\u003e\u003e/sync/deta API: Updated records\n    /sync/deta API--\u003e\u003eFrontend: Updated records\n    Frontend-\u003e\u003eFrontend: Incrementally update indexDb with records\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finnei%2Fd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finnei%2Fd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finnei%2Fd/lists"}