Dashboard web pour suivre la consommation de tokens des comptes Infomaniak AI.
npm install
Copiez le fichier .env.example en .env et renseignez vos identifiants :
cp .env.example .env
Éditez .env avec vos informations :
ACCOUNT_1_NAME=Mon compte 1
ACCOUNT_1_PRODUCT_ID=123456
ACCOUNT_1_TOKEN=votre_token_api
ACCOUNT_2_NAME=Mon compte 2
ACCOUNT_2_PRODUCT_ID=789012
ACCOUNT_2_TOKEN=votre_token_api
PORT=3000
Vous pouvez ajouter autant de comptes que nécessaire en incrémentant le numéro (ACCOUNT_3_*, etc.).
# Production
npm start
# Développement (auto-reload)
npm run dev
Ouvrez http://localhost:3000 dans votre navigateur.
├── src/
│ ├── server.js # Serveur Express
│ ├── config.js # Chargement des comptes depuis .env
│ ├── infomaniak.js # Client API Infomaniak
│ └── routes/
│ └── api.js # Routes API REST
├── public/
│ ├── index.html # Dashboard
│ ├── css/style.css # Styles (dark theme)
│ └── js/app.js # Application frontend
├── .env.example
└── package.json
Content type
Image
Digest
sha256:6d285c44a…
Size
58 MB
Last updated
6 months ago
docker pull sebchevre/ik-token-monitors