{"id":15679465,"url":"https://github.com/cutls/opensticker","last_synced_at":"2025-05-07T10:24:38.378Z","repository":{"id":41814468,"uuid":"282383042","full_name":"cutls/OpenSticker","owner":"cutls","description":"バックエンド","archived":false,"fork":false,"pushed_at":"2023-06-30T01:56:32.000Z","size":304,"stargazers_count":12,"open_issues_count":0,"forks_count":12,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-19T21:23:16.851Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/cutls.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,"zenodo":null}},"created_at":"2020-07-25T06:09:27.000Z","updated_at":"2023-05-06T07:38:20.000Z","dependencies_parsed_at":"2025-04-20T15:15:15.936Z","dependency_job_id":null,"html_url":"https://github.com/cutls/OpenSticker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cutls%2FOpenSticker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cutls%2FOpenSticker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cutls%2FOpenSticker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cutls%2FOpenSticker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cutls","download_url":"https://codeload.github.com/cutls/OpenSticker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252857470,"owners_count":21815031,"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","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-03T16:31:29.731Z","updated_at":"2025-05-07T10:24:38.350Z","avatar_url":"https://github.com/cutls.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenSticker\nバックエンド\n\nDenoで書いた。\n\nデプロイ先: https://s.0px.io\n\nAPI\n\n* `/json`: json形式そのまま\n* `/mastodon`: Mastodon対応CSS\n* `/mastodon/peers?domain=domain.tld`: domain.tldの連合先だけにフィルタしたCSS(Mastodon用)\n\n# データを追加しよう\n\nPRでデータを追加・編集します。\n\nフォークします。\n\nあなたのインスタンスがdomain.tldなら…\n\n`resources/d/domain.tld/data.json5`  \n```\n{\n    //'mastodon'|'pleroma'|'misskey'|'misskeylegacy'|'pixelfed'\n    type: 'mastodon',\n    //指定しない(nullまたは省略)とドメイン名がそのまま使われます\n    name: 'Cutls',\n    //bgColorは指定しない(nullまたは省略)と上記`type`に合わせて設定されます\n    bgColor: [\n        //Array of background-color from left to right\n        '#fff'\n    ],\n    //fontColorは指定しない(nullまたは省略)と白(#fff)\n    fontColor: '#000',\n    //must https://\n    favicon: null\n    //指定しない(nullまたは省略)とインスタンスのfaviconを取得します\n}\n```\n\nと書いてPRを送ってください。 PRはcreateするとテンプレートが現れるのでそれに従って送信してください。\n\n頭文字(sub.domain.tldならs)のフォルダに入れます。\n日本語ドメインならx(punycode)に、数字の場合は0につっこんでください。\n\nJSON5はJSONのスーパーセットなのでJSONを書いて拡張子だけ.json5にしてもらってもOKです。\n\nfaviconを指定するときはCDNが通った外部URLを指定してください。用意できない場合はGitHubのdomain.tld内においてGitHub CDN等のURLを指定してください。\n\n`misskeylegacy`はv11やめいすきー(v10)等用に指定します。\n\n# ビルド\n\n`deno run --unstable --allow-read --allow-write --allow-net builderCli.ts`\n\n初回はすべてのfaviconをチェックする都合上、かなり時間がかかります。2回目以降はoutput/cache.jsonにキャッシュされます。\n\n公式キャッシュ(?)として、最新masterに準じたキャッシュを公開しています。 https://s.0px.io/workflow/cache.json\n\n`wget -P ./output https://s.0px.io/workflow/cache.json \u0026\u0026 deno run --unstable --allow-read --allow-write --allow-net builderCli.ts`  \nで公式キャッシュを使ってビルドできます。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcutls%2Fopensticker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcutls%2Fopensticker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcutls%2Fopensticker/lists"}