datool 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/README.md +218 -0
  2. package/client-dist/assets/geist-cyrillic-wght-normal-CHSlOQsW.woff2 +0 -0
  3. package/client-dist/assets/geist-latin-ext-wght-normal-DMtmJ5ZE.woff2 +0 -0
  4. package/client-dist/assets/geist-latin-wght-normal-Dm3htQBi.woff2 +0 -0
  5. package/client-dist/assets/index-BeRNeRUq.css +1 -0
  6. package/client-dist/assets/index-uoZ4c_I8.js +164 -0
  7. package/client-dist/index.html +13 -0
  8. package/index.html +12 -0
  9. package/package.json +55 -0
  10. package/src/client/App.tsx +885 -0
  11. package/src/client/components/connection-status.tsx +43 -0
  12. package/src/client/components/data-table-cell.tsx +235 -0
  13. package/src/client/components/data-table-col-icon.tsx +73 -0
  14. package/src/client/components/data-table-header-col.tsx +225 -0
  15. package/src/client/components/data-table-search-input.tsx +729 -0
  16. package/src/client/components/data-table.tsx +2014 -0
  17. package/src/client/components/stream-controls.tsx +157 -0
  18. package/src/client/components/theme-provider.tsx +230 -0
  19. package/src/client/components/ui/button.tsx +68 -0
  20. package/src/client/components/ui/combobox.tsx +308 -0
  21. package/src/client/components/ui/context-menu.tsx +261 -0
  22. package/src/client/components/ui/dropdown-menu.tsx +267 -0
  23. package/src/client/components/ui/input-group.tsx +153 -0
  24. package/src/client/components/ui/input.tsx +19 -0
  25. package/src/client/components/ui/textarea.tsx +18 -0
  26. package/src/client/components/viewer-settings.tsx +185 -0
  27. package/src/client/index.css +192 -0
  28. package/src/client/lib/data-table-search.ts +750 -0
  29. package/src/client/lib/datool-icons.ts +37 -0
  30. package/src/client/lib/datool-url-state.ts +159 -0
  31. package/src/client/lib/filterable-table.ts +146 -0
  32. package/src/client/lib/table-search-persistence.ts +94 -0
  33. package/src/client/lib/utils.ts +6 -0
  34. package/src/client/main.tsx +14 -0
  35. package/src/index.ts +19 -0
  36. package/src/node/cli.ts +54 -0
  37. package/src/node/config.ts +231 -0
  38. package/src/node/lines.ts +82 -0
  39. package/src/node/runtime.ts +102 -0
  40. package/src/node/server.ts +403 -0
  41. package/src/node/sources/command.ts +82 -0
  42. package/src/node/sources/file.ts +116 -0
  43. package/src/node/sources/ssh.ts +59 -0
  44. package/src/shared/columns.ts +41 -0
  45. package/src/shared/types.ts +188 -0
@@ -0,0 +1,13 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>datool</title>
7
+ <script type="module" crossorigin src="/assets/index-uoZ4c_I8.js"></script>
8
+ <link rel="stylesheet" crossorigin href="/assets/index-BeRNeRUq.css">
9
+ </head>
10
+ <body>
11
+ <div id="root"></div>
12
+ </body>
13
+ </html>
package/index.html ADDED
@@ -0,0 +1,12 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>datool</title>
7
+ </head>
8
+ <body>
9
+ <div id="root"></div>
10
+ <script type="module" src="/src/client/main.tsx"></script>
11
+ </body>
12
+ </html>
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "datool",
3
+ "version": "0.0.1",
4
+ "type": "module",
5
+ "description": "Local-only config-driven log viewer with SSE streaming and a generic table UI.",
6
+ "bin": {
7
+ "datool": "./src/node/cli.ts"
8
+ },
9
+ "exports": {
10
+ ".": "./src/index.ts"
11
+ },
12
+ "files": [
13
+ "src",
14
+ "client-dist",
15
+ "index.html",
16
+ "README.md"
17
+ ],
18
+ "scripts": {
19
+ "build": "bun run build:client && bun run typecheck",
20
+ "build:client": "vite build",
21
+ "typecheck": "tsc --noEmit",
22
+ "test": "bun run build:client && bun test",
23
+ "lint": "eslint src tests --ext .ts,.tsx"
24
+ },
25
+ "dependencies": {
26
+ "@base-ui/react": "^1.3.0",
27
+ "@fontsource-variable/geist": "^5.2.8",
28
+ "@tiptap/core": "^3.20.4",
29
+ "@tiptap/extension-document": "^3.20.4",
30
+ "@tiptap/extension-paragraph": "^3.20.4",
31
+ "@tiptap/extension-placeholder": "^3.20.4",
32
+ "@tiptap/extension-text": "^3.20.4",
33
+ "@tiptap/pm": "^3.20.4",
34
+ "@tiptap/react": "^3.20.4",
35
+ "@vitejs/plugin-react": "^5.2.0",
36
+ "class-variance-authority": "^0.7.1",
37
+ "clsx": "^2.1.1",
38
+ "lucide-react": "^0.577.0",
39
+ "radix-ui": "^1.4.3",
40
+ "react": "^19.2.4",
41
+ "react-dom": "^19.2.4",
42
+ "shadcn": "^4.0.8",
43
+ "tailwind-merge": "^3.5.0",
44
+ "tailwindcss": "^4.2.1",
45
+ "tw-animate-css": "^1.4.0",
46
+ "vite": "^7.3.1"
47
+ },
48
+ "devDependencies": {
49
+ "@tailwindcss/vite": "^4.2.1",
50
+ "@types/node": "^24.12.0",
51
+ "@types/react": "^19.2.14",
52
+ "@types/react-dom": "^19.2.3",
53
+ "bun-types": "^1.2.22"
54
+ }
55
+ }