Quickstart
30-second demo
Live viewer demo
- Open https://binhonglee.github.io/slogx/app.
- Click Demo.
- Watch logs stream in real time.
Replay viewer demo
- Open https://binhonglee.github.io/slogx/replay.
- Click Try Demo CI Logs.
- Explore filters, search, and JSON payloads.
Use with your own service
1) Install an SDK
TypeScript
npm install @binhonglee/slogx
Python
pip install slogx
Go
go get github.com/binhonglee/slogx
Rust
cargo add slogx
2) Initialize and log
import { slogx } from '@binhonglee/slogx';
await slogx.init({
isDev: true,
port: 8080,
serviceName: 'api',
});
slogx.info('Server started', { port: 8080 });
3) Pick a viewer flow
Live mode (during local development)
- Keep
ciModeunset (or setfalse). - Start your app with slogx enabled.
- Open the live viewer: https://binhonglee.github.io/slogx/app.
- Connect to your service endpoint (for example,
localhost:8080).
AI debugging via MCP (local development)
- Build and run the slogx MCP server.
- Register it with your MCP client (for example, Claude Code).
- Connect to your slogx WebSocket endpoint from the MCP tool.
- Search and inspect logs from your assistant.
Replay mode (CI and test runs)
- Set
ciMode: true(or rely on CI auto-detect). - Run your tests/build to produce
*.ndjsonlogs. - Open the replay viewer: https://binhonglee.github.io/slogx/replay.
- Drag and drop the NDJSON file (or paste a file URL).