{"_id":"@d3ex2/vibelog","_rev":"2-74655d7db5286473fe114c3935a7e4e3","name":"@d3ex2/vibelog","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"@d3ex2/vibelog","version":"1.0.0","keywords":[],"author":{"name":"Salah"},"license":"ISC","_id":"@d3ex2/vibelog@1.0.0","maintainers":[{"name":"d3ex2","email":"salah.57970@gmail.com"}],"dist":{"shasum":"870ce2011bdd9ee235e2763b974af32884b093e1","tarball":"https://registry.npmjs.org/@d3ex2/vibelog/-/vibelog-1.0.0.tgz","fileCount":2,"integrity":"sha512-Ty57T5WAxtga6PeUsqOl/rx6vzaBpIJADnG0+d8cWTyaTdEYAnu5MJK3y+HIDmPeZPeeagTdipc5rv7tenT8GA==","signatures":[{"sig":"MEYCIQDsE7LPewPoeQTU47HvgBzq6Fjm0//P+gZM7dG9bK1cNQIhANSbqdgZARoH32hpfqxCibp2Cvhv89/e4bpHB9F4Ohhv","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1316},"main":"index.js","type":"module","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"d3ex2","email":"salah.57970@gmail.com"},"_npmVersion":"10.9.2","description":"A useful and complex logger for your console","directories":{},"_nodeVersion":"23.10.0","dependencies":{"dotenv":"^16.4.5","openai":"^5.12.2"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/vibelog_1.0.0_1755364520045_0.8531119767068565","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@d3ex2/vibelog","author":{"name":"Salah"},"description":"A useful and complex logger for your console","version":"2.0.0","type":"module","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":[],"license":"ISC","dependencies":{"openai":"^5.12.2","dotenv":"^16.4.5"},"_id":"@d3ex2/vibelog@2.0.0","_nodeVersion":"23.10.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-qzaIEbqlW/m8DZvCd//OJEKtFECvGJe2ONCmO/Yz/0rhFLZ4ZXPFw3bzjMgKDsHWz6dHtQ8T6U6PAxvAXHTAZg==","shasum":"64b3937597a7bc4d82b6da6cea678dbf550a51a8","tarball":"https://registry.npmjs.org/@d3ex2/vibelog/-/vibelog-2.0.0.tgz","fileCount":3,"unpackedSize":3007,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCHkpB9BJ9PRoZXuoIyspF5DqL5fH5dTnriUytPSBJ1WAIgePzr2p1YbmE02G9OWy1cqwku7t09L0bc7m6DxC9VjTo="}]},"_npmUser":{"name":"d3ex2","email":"salah.57970@gmail.com"},"directories":{},"maintainers":[{"name":"d3ex2","email":"salah.57970@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/vibelog_2.0.0_1755364962615_0.9669413076582614"},"_hasShrinkwrap":false}},"time":{"created":"2025-08-16T17:15:19.984Z","modified":"2025-08-16T17:22:43.006Z","1.0.0":"2025-08-16T17:15:20.258Z","2.0.0":"2025-08-16T17:22:42.814Z"},"author":{"name":"Salah"},"license":"ISC","keywords":[],"description":"A useful and complex logger for your console","maintainers":[{"name":"d3ex2","email":"salah.57970@gmail.com"}],"readme":"# vibelog\n\n**vibelog** est une bibliothèque JavaScript/TypeScript qui fournit un mécanisme de logging contextuel basé sur l’IA.\nElle utilise la puissance de GPT et le *function calling* pour enrichir vos logs et vous garantir des messages cohérents et lisibles.\n\n---\n\n## ✨ Fonctionnalités\n\n* ✅ API simple et minimaliste\n* ✅ Intégration transparente avec Node.js et ESM\n* ✅ Basé sur l’API OpenAI (via `process.env.OPENAI_API_KEY`)\n* ✅ Compatible avec TypeScript\n* ✅ Approche orientée *developer experience*\n\n---\n\n## 📦 Installation\n\n```bash\nnpm install @d3ex2/vibelog\n```\n\n---\n\n## 🚀 Exemple d’utilisation\n\n```ts\nimport { vibelog } from \"@salahouali/vibelog\";\n\nawait vibelog(\"Initialisation du service terminée\");\nawait vibelog(\"Connexion établie avec la base de données\");\nawait vibelog(\"Lancement du worker en mode production\");\n```\n\nRésultat en console :\n\n```\n[VIBE] Initialisation du service terminée\n[VIBE] Connexion établie avec la base de données\n[VIBE] Lancement du worker en mode production\n```\n\n---\n\n## ⚙️ Configuration\n\n### Clé API OpenAI\n\nAssurez-vous d’avoir défini la variable d’environnement suivante :\n\n```bash\nexport OPENAI_API_KEY=sk-xxxxxx\n```\n\n### Options futures (roadmap)\n\n* Choix du *prompt system*\n* Multiples niveaux de log (info, warn, error, debug)\n* Formats de sortie personnalisés\n\n---\n\n## 🛠️ API\n\n### `vibelog(message: string): Promise<void>`\n\nLoggue un message avec style.\n\n---\n\n## 📈 Cas d’usage\n\n* Centralisation des logs applicatifs\n* Débogage avec contexte enrichi\n* Proof of concept autour du *function calling* et du logging intelligent\n\n---\n\n## 📜 Licence\n\nMIT License – © 2025 Salah Ouali\n\n","readmeFilename":"readme.md"}