**A high-performance, zero-dependency network latency monitor for modern web apps.**
## Features
- Real-time Monitoring: Tracks round-trip time (latency) in milliseconds accurately.
- Smart Status Categorization:
- 🟢
excellent: Fast and reliable connection. - 🟡
stuttering: High latency or jitter is perfect for triggering "Slow Connection" UI warnings. - 🔴
offline: No connection detected or server unreachable.
- 🟢
- Zero Dependencies: Keeps your production bundle size ultra-small.
- Modern Stack: Fully typed with TypeScript for the best developer experience.
npm install @sushensanthush/vibe-checkimport { VibeCheck } from '@sushensanthush/vibe-check';
const checker = new VibeCheck();
checker.start((vibe) => {
console.log(vibe.status); // 'excellent', 'stuttering', or 'offline'
});This is the big moment. Open your terminal in the vibe-check folder (not the test folder) and run:
- Build one last time:
npm run build
- Log in to your account:
(It will open a browser window for you to sign in to npmjs.com)
npm login
- Ship it:
npm publish --access public
Once it is published, you don't need the local "links" anymore. You can clean up your machine:
# In vibe-test
npm unlink @sushensanthush/vibe-check
cd ..
rm -r vibe-test
# In vibe-check
npm unlinkThis project is licensed under the MIT License.
The MIT License is a permissive license that is short and to the point. It lets people do anything they want with your code as long as they provide attribution back to you and don’t hold you liable.
See the LICENSE file for the full text.