MCPcopy Index your code
hub / github.com/azu/philan.net

github.com/azu/philan.net @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
166 symbols 500 edges 69 files 1 documented · 1% updated 3y ago2021-12-05 · 2021-12-05★ 3317 open issues

Browse by type

Functions 162 Types & classes 4
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

philan.net

寄付者が寄付の予算と実施した履歴を管理するツール。

Mission

  • 寄付が特別な状態ではないことを目指す
  • 自身の寄付の状況を公開することで透明性を出す

Development

次の手順で、ローカルで開発できます。

yarn install
# first time
yarn bootstrap
# start server
cd web
yarn dev:local

:memo: ローカルでは、統計処理など一部はモックの実装となっています

Architectures

This application is based on Next.js(Vercel) + Cloudflare Workers KV.

Storage

  • Cloudflare Workers KV
  • Google SpreadSheet

Permission

次の目的のために、それぞれのパーミッションを指定しています。

  • SpreadSheetのファイル作成、編集: "https://www.googleapis.com/auth/drive.file"
  • ユーザーID: "openid"
  • ユーザーアバター画像: "profile"

Note

KV

  • KVには強整合性がないため、invalid stateが発生する
    • 保存したけど、次の読み込みに最新かが保証されない
    • 傾向的に2回目が最新になるという感じ
    • 更新してから、反映されるまでにラグがある感じ

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 156
Method 6
Class 2
Interface 2

Languages

TypeScript100%

Modules by API surface

web/pages/api/spreadsheet/api-types.validator.ts18 symbols
web/pages/user/[userId]/index.tsx11 symbols
web/pages/debug/[userId].tsx11 symbols
web/pages/api/user/api-types.validator.ts10 symbols
web/pages/api/spreadsheet/budget/api-types.validator.ts8 symbols
web/api-utils/kvs.ts8 symbols
web/pages/philan/budget/index.tsx7 symbols
web/api-utils/userKvs.ts7 symbols
web/api-utils/athena.ts7 symbols
web/components/Header.tsx5 symbols
web/pages/philan/add.tsx4 symbols
web/pages/index.tsx4 symbols

For agents

$ claude mcp add philan.net \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page