{"id":47891019,"url":"https://github.com/muke1908/noconsole","last_synced_at":"2026-04-04T03:05:52.908Z","repository":{"id":345769404,"uuid":"1187083666","full_name":"muke1908/noconsole","owner":"muke1908","description":"Stream your browser logs via websocket","archived":false,"fork":false,"pushed_at":"2026-03-28T08:30:20.000Z","size":166,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-28T12:49:32.033Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/muke1908.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-20T10:19:19.000Z","updated_at":"2026-03-28T08:30:24.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/muke1908/noconsole","commit_stats":null,"previous_names":["muke1908/noconsole"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/muke1908/noconsole","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muke1908%2Fnoconsole","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muke1908%2Fnoconsole/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muke1908%2Fnoconsole/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muke1908%2Fnoconsole/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muke1908","download_url":"https://codeload.github.com/muke1908/noconsole/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muke1908%2Fnoconsole/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31385940,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T01:22:39.193Z","status":"online","status_checked_at":"2026-04-04T02:00:07.569Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-04T03:05:52.378Z","updated_at":"2026-04-04T03:05:52.904Z","avatar_url":"https://github.com/muke1908.png","language":"TypeScript","readme":"# NoConsole\n\nA real-time WebSocket-based log streaming system with AI-powered analysis.\n\n## 📦 Packages\n\n### `@noconsole/logger`\n\nDrop-in replacement for the browser `console` API that routes all output over a WebSocket.\n\n```typescript\nimport { WebSocketLogger } from '@noconsole/logger';\nconst logger = new WebSocketLogger('ws://localhost:8080');\n\nlogger.log('Hello world!', { foo: 'bar' });\nlogger.warn('High memory', { usage: '92%' });\nlogger.error('Unhandled rejection', err);\n// Sends: { type, args, timestamp, id }\n```\n\n- Full `Console` interface (`log`, `warn`, `error`, `info`, `debug`, `time`/`timeEnd`, `count`, `table`, `group`, …)\n- `WebSocket | null` — caller owns the socket lifecycle\n- Silent no-op when socket is null or not `OPEN`\n- Full TypeScript support\n\n### `@noconsole/streamer`\n\nAll-in-one viewer: a WebSocket broadcast server **plus** the React web client in a single package.\n\n#### Server (`packages/streamer/server/index.js`)\n\nMinimal WebSocket server that accepts connections from `@noconsole/logger` instances and broadcasts each message to all connected viewer clients.\n\n```bash\nnpm run server --workspace=packages/streamer\n# or\nnode packages/streamer/server/index.js\n```\n\nListens on `ws://localhost:8080` by default (override with `PORT=…`).\n\n#### Client (React + Vite)\n\nReal-time log viewer served at `http://localhost:5173` in dev mode.\n\n- **Virtualized list** (`@tanstack/react-virtual`) — handles thousands of entries without degradation\n- **Level filters**: All / Log / Info / Warn / Error / Debug\n- **Search**: real-time substring match with inline highlight; case-sensitivity toggle\n- **Pause/Resume**: buffers up to 10k logs while paused, flushes on resume\n- **Auto-scroll** with smart manual override\n- **AI Analysis panel**: streams logs to a local [Ollama](https://ollama.com) instance, response parsed into Errors / Warnings / Performance / Recommendations\n- Export logs as JSON\n\n## 🗂️ Monorepo Structure\n\n```\nnoconsole/\n├── packages/\n│   ├── logger/          # @noconsole/logger — WebSocket logger library\n│   └── streamer/        # @noconsole/streamer — WS server + React viewer\n│       └── server/      #   broadcast server (Node.js)\n└── package.json         # workspace root\n```\n\n## 🚀 Quick Start\n\n```bash\n# 1. Install all dependencies\nnpm install\n\n# 2. Build all packages\nnpm run build\n\n# 3a. Start the broadcast server\nnpm run server\n\n# 3b. In another terminal, start the dev viewer (client + server together)\nnpm run dev\n```\n\n`npm run dev` inside `packages/streamer` starts both the WS server and the Vite dev server concurrently via `concurrently`.\n\n## 🏗️ Architecture\n\n### Log Message Format\n\n```typescript\ninterface LogMessage {\n  type: 'log' | 'warn' | 'error' | 'info' | 'debug' | ...;\n  args: any[];\n  timestamp: number;\n  id: string;\n}\n```\n\n### Logger Package\n\n- `WebSocketLogger.ts` — implements the Console interface\n- `index.ts` — public API\n- `index.test.ts` — Jest tests\n\n### Streamer Package\n\n- `server/index.js` — Node.js WebSocket broadcast server\n- `src/` — React + TypeScript viewer\n  - **Hooks**: `useWebSocket` (connection + log state), `useLLM` (Ollama)\n  - **Components**: `Header`, `FilterBar`, `LogViewer`, `LogRow`, `LLMPanel`\n\n## 🛠️ Commands\n\n```bash\n# Root\nnpm install           # install all workspace dependencies\nnpm run build         # build all packages\nnpm run dev           # start streamer dev server (WS + Vite)\nnpm run server        # start WS broadcast server only\nnpm test              # run logger tests\n\n# packages/logger\nnpm run build\nnpm test\n\n# packages/streamer\nnpm run dev           # WS server + Vite (concurrent)\nnpm run build         # production build\nnpm run server:start  # WS server only\n```\n\n## 🤖 AI Analysis\n\n1. Install [Ollama](https://ollama.ai/) and pull a model: `ollama pull llama3.2`\n2. Start Ollama (`http://localhost:11434`)\n3. Click **AI Analysis** in the viewer\n4. Select your model and click **Analyze Logs**\n\n## 📄 License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuke1908%2Fnoconsole","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuke1908%2Fnoconsole","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuke1908%2Fnoconsole/lists"}