Giter Club home page Giter Club logo

opensticker's Introduction

OpenSticker

バックエンド

Denoで書いた。

デプロイ先: https://s.0px.io

API

  • /json: json形式そのまま
  • /mastodon: Mastodon対応CSS
  • /mastodon/peers?domain=domain.tld: domain.tldの連合先だけにフィルタしたCSS(Mastodon用)

データを追加しよう

PRでデータを追加・編集します。

フォークします。

あなたのインスタンスがdomain.tldなら…

resources/d/domain.tld/data.json5

{
    //'mastodon'|'pleroma'|'misskey'|'misskeylegacy'|'pixelfed'
    type: 'mastodon',
    //指定しない(nullまたは省略)とドメイン名がそのまま使われます
    name: 'Cutls',
    //bgColorは指定しない(nullまたは省略)と上記`type`に合わせて設定されます
    bgColor: [
        //Array of background-color from left to right
        '#fff'
    ],
    //fontColorは指定しない(nullまたは省略)と白(#fff)
    fontColor: '#000',
    //must https://
    favicon: null
    //指定しない(nullまたは省略)とインスタンスのfaviconを取得します
}

と書いてPRを送ってください。

頭文字(sub.domain.tldならs)のフォルダに入れます。 日本語ドメインならx(punycode)に、数字の場合は0につっこんでください。

JSON5はJSONのスーパーセットなのでJSONを書いて拡張子だけ.json5にしてもらってもOKです。

faviconを指定するときはCDNが通った外部URLを指定してください。用意できない場合はGitHubのdomain.tld内においてGitHub CDN等のURLを指定してください。

misskeylegacyはv11やめいすきー(v10)等用に指定します。

ビルド

deno run --unstable --allow-read --allow-write --allow-net builderCli.ts

初回はすべてのfaviconをチェックする都合上、かなり時間がかかります。2回目以降はoutput/cache.jsonにキャッシュされます。

公式キャッシュ(?)として、最新masterに準じたキャッシュを公開しています。 https://s.0px.io/workflow/cache.json

wget -P ./output https://s.0px.io/workflow/cache.json && deno run --unstable --allow-read --allow-write --allow-net builderCli.ts
で公式キャッシュを使ってビルドできます。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.