Skip to content

nikkorinyuki/makeit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Make it a Quote 画像生成API

このリポジトリは、TypeScriptで書かれた「Make it a Quote」画像生成APIです。

このコードで稼働しているサーバー達※無料枠での稼働

動作確認環境

  • node: v24.15.0
  • yarn: v1.22.22

使い方

以下のコマンドを実行して依存関係をインストールします。

yarn

サーバーをビルドします。

yarn build

サーバーを起動するには、以下のコマンドを実行します。

yarn start

POSTリクエストをhttp://localhost:3000/に送信する。

curl -X POST -H "Content-Type: application/json" -d "{\"text\": \"Hello, World!\",\"name\":\"\",\"id\":\"\"}" --output makeit.png http://localhost:3000/

※makeit.pngに画像が保存されます

API パラメータ一覧

フィールド 初期値 説明
text string "Text" テキスト
icon string assets/dummy_icon.png アイコンのURLもしくはdataURL
name string "name" テキストの下に表示されます
id string "id" 名前の下に表示されます
debug boolean false デバッグモードのフラグ
markdown boolean true Discordマークダウンにそって描画するか
direction string "left" テキストの方向(left, right)
color string "white" 背景色
tcolor string "black" テキストカラー
format string "png" 画像フォーマット (png, jpg, jpeg, webp, raw, pdf, svg)

環境変数

以下の環境変数を設定する必要があります:

  • PORT: サーバーがリスンするポート番号 (デフォルト: 3000)

使用フォント

貢献

歓迎してます!!!

ライセンス

このプロジェクトはMITライセンスの下でライセンスされています。詳細については、LICENSEファイルを参照してください。

コンタクト

質問や提案がある場合は、issuesセクションに投稿してください。

About

Typescriptで書かれたMake it a Quote画像生成API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors