datapeek 0.1.11 → 0.1.13

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 (97) hide show
  1. package/README.md +38 -9
  2. package/dist/cli/chunk-2I4MNNVK.js +628 -0
  3. package/dist/cli/chunk-4GDQ7VJZ.js +662 -0
  4. package/dist/cli/chunk-4MIQHH6K.js +47 -0
  5. package/dist/cli/chunk-6K3WSEIM.js +375 -0
  6. package/dist/cli/chunk-6PMCDR7J.js +628 -0
  7. package/dist/cli/chunk-B7K46745.js +605 -0
  8. package/dist/cli/chunk-CK2O76SG.js +713 -0
  9. package/dist/cli/chunk-FXOMCTFV.js +696 -0
  10. package/dist/cli/chunk-G4ID5SFT.js +628 -0
  11. package/dist/cli/chunk-GCVFEHSZ.js +708 -0
  12. package/dist/cli/chunk-LGE2JQ3S.js +628 -0
  13. package/dist/cli/chunk-NDLKLB5A.js +710 -0
  14. package/dist/cli/chunk-PG6I26XT.js +614 -0
  15. package/dist/cli/chunk-RK2Q2AX5.js +582 -0
  16. package/dist/cli/chunk-S5LRCCK6.js +582 -0
  17. package/dist/cli/chunk-UBFQXPPF.js +701 -0
  18. package/dist/cli/chunk-X2DQBOP6.js +712 -0
  19. package/dist/cli/chunk-XRMPVZIS.js +709 -0
  20. package/dist/cli/chunk-Z5G3UEXN.js +711 -0
  21. package/dist/cli/chunk-ZMP7S3G6.js +696 -0
  22. package/dist/cli/db-32TDDTFP.js +28 -0
  23. package/dist/cli/db-47O74DN5.js +34 -0
  24. package/dist/cli/db-4U22OWGB.js +29 -0
  25. package/dist/cli/db-CL72XDNO.js +34 -0
  26. package/dist/cli/db-CZCZOEID.js +28 -0
  27. package/dist/cli/db-IX3DXZ2C.js +34 -0
  28. package/dist/cli/db-LJCRTZTY.js +34 -0
  29. package/dist/cli/db-LNX4UMRF.js +28 -0
  30. package/dist/cli/db-NESFXDWL.js +28 -0
  31. package/dist/cli/db-OIJ2PJK6.js +34 -0
  32. package/dist/cli/db-OPAF6ZO3.js +28 -0
  33. package/dist/cli/db-PQURQHSK.js +28 -0
  34. package/dist/cli/db-QN5MTDYB.js +28 -0
  35. package/dist/cli/db-RBMUR3OK.js +34 -0
  36. package/dist/cli/db-REMUYLPP.js +34 -0
  37. package/dist/cli/db-RTHQ4ZAU.js +28 -0
  38. package/dist/cli/db-SHFLGGWD.js +28 -0
  39. package/dist/cli/db-ULMGZXQ5.js +34 -0
  40. package/dist/cli/db-YOGJ4LXE.js +28 -0
  41. package/dist/cli/dev.js +449 -374
  42. package/dist/cli/index.js +452 -376
  43. package/dist/cli/queryCancellation-4CMKYTFU.js +46 -0
  44. package/dist/cli/queryCancellation-E5O4FBUY.js +14 -0
  45. package/dist/client/assets/index-H7ji6dtA.js +385 -0
  46. package/dist/client/assets/index-TFw4Z1Ky.css +1 -0
  47. package/dist/client/index.html +2 -2
  48. package/dist/client/screenshots/dark1.png +0 -0
  49. package/dist/client/screenshots/dark2.png +0 -0
  50. package/dist/client/screenshots/light1.png +0 -0
  51. package/dist/client/screenshots/light2.png +0 -0
  52. package/dist/server/chunk-26GSUAI4.js +710 -0
  53. package/dist/server/chunk-36OOXHKI.js +659 -0
  54. package/dist/server/chunk-3DAIYH42.js +44 -0
  55. package/dist/server/chunk-4ELMZYWA.js +611 -0
  56. package/dist/server/chunk-5ESS5YBD.js +707 -0
  57. package/dist/server/chunk-7HIBWXBL.js +625 -0
  58. package/dist/server/chunk-BH22Q2FV.js +705 -0
  59. package/dist/server/chunk-CFU2CLKS.js +693 -0
  60. package/dist/server/chunk-CXA3HXTK.js +698 -0
  61. package/dist/server/chunk-DAUUXYQF.js +706 -0
  62. package/dist/server/chunk-FMSIEQ2T.js +579 -0
  63. package/dist/server/chunk-G6A463RM.js +625 -0
  64. package/dist/server/chunk-H6DUOXOK.js +625 -0
  65. package/dist/server/chunk-JCRZ6H7P.js +579 -0
  66. package/dist/server/chunk-L6LL3NE7.js +602 -0
  67. package/dist/server/chunk-TH6TUILG.js +709 -0
  68. package/dist/server/chunk-UJ2LRK25.js +373 -0
  69. package/dist/server/chunk-YI67PW64.js +625 -0
  70. package/dist/server/chunk-ZDZ2C5ZQ.js +693 -0
  71. package/dist/server/chunk-ZJOVVCPT.js +708 -0
  72. package/dist/server/db-22DQ6YG7.js +32 -0
  73. package/dist/server/db-3CBO6RHU.js +26 -0
  74. package/dist/server/db-3XN2KWYT.js +32 -0
  75. package/dist/server/db-3Y6K4EDP.js +26 -0
  76. package/dist/server/db-57HXNWPD.js +26 -0
  77. package/dist/server/db-5GCTDKYH.js +27 -0
  78. package/dist/server/db-5VQOTJ52.js +26 -0
  79. package/dist/server/db-B5L7VQ7E.js +32 -0
  80. package/dist/server/db-CJPCGHL3.js +32 -0
  81. package/dist/server/db-DAQ4BVCU.js +32 -0
  82. package/dist/server/db-EEA6EWHL.js +26 -0
  83. package/dist/server/db-KR7Z5M5V.js +32 -0
  84. package/dist/server/db-LMSBISDM.js +26 -0
  85. package/dist/server/db-LSOQE7N7.js +32 -0
  86. package/dist/server/db-NHBP6YLH.js +26 -0
  87. package/dist/server/db-OWVJVBBD.js +26 -0
  88. package/dist/server/db-TTVXKX7P.js +26 -0
  89. package/dist/server/db-YJ753EQV.js +26 -0
  90. package/dist/server/db-ZV6GZHFU.js +32 -0
  91. package/dist/server/dev.js +449 -374
  92. package/dist/server/index.js +449 -374
  93. package/dist/server/queryCancellation-M56DISJX.js +43 -0
  94. package/dist/server/queryCancellation-T2HSNMIV.js +12 -0
  95. package/package.json +3 -1
  96. package/dist/client/assets/index-CPoX5Biw.css +0 -1
  97. package/dist/client/assets/index-KtK9Gzwi.js +0 -375
package/README.md CHANGED
@@ -1,8 +1,18 @@
1
1
  <img src="https://raw.githubusercontent.com/bishoymly/datapeek/main/public/assets/logo.png" alt="Datapeek Logo" width="200" />
2
2
 
3
- **A modern, local SQL database browser for MS SQL Server databases.**
3
+ **A modern, local SQL database browser for SQL Server and PostgreSQL databases.**
4
4
 
5
- Datapeek provides an intuitive web-based interface to browse, query, and explore your SQL Server databases directly from your terminal.
5
+ Datapeek provides an intuitive web-based interface to browse, query, and explore your SQL Server and PostgreSQL databases directly from your terminal.
6
+
7
+ ## Screenshots
8
+
9
+ ### Light Mode
10
+ ![Datapeek Light Mode](https://raw.githubusercontent.com/bishoymly/datapeek/main/public/screenshots/light1.png)
11
+ ![Datapeek Light Mode](https://raw.githubusercontent.com/bishoymly/datapeek/main/public/screenshots/light2.png)
12
+
13
+ ### Dark Mode
14
+ ![Datapeek Dark Mode](https://raw.githubusercontent.com/bishoymly/datapeek/main/public/screenshots/dark1.png)
15
+ ![Datapeek Dark Mode](https://raw.githubusercontent.com/bishoymly/datapeek/main/public/screenshots/dark2.png)
6
16
 
7
17
  ## Quick Start
8
18
 
@@ -10,10 +20,16 @@ Datapeek provides an intuitive web-based interface to browse, query, and explore
10
20
 
11
21
  Run Datapeek with your connection string directly:
12
22
 
23
+ **SQL Server:**
13
24
  ```bash
14
25
  npx datapeek "Server=localhost;Database=MyDB;User Id=sa;Password=password;"
15
26
  ```
16
27
 
28
+ **PostgreSQL:**
29
+ ```bash
30
+ npx datapeek "postgresql://user:password@localhost:5432/mydb"
31
+ ```
32
+
17
33
  This will automatically connect and open your browser to the Datapeek interface.
18
34
 
19
35
  ### Option 2: Without Connection String
@@ -28,15 +44,19 @@ A connection dialog will open in your browser where you can enter your database
28
44
 
29
45
  ## Features
30
46
 
31
- - 🗄️ **Browse Tables** - Explore database schemas and tables with an intuitive sidebar
32
- - 📊 **View Data** - Paginated table views with Excel-like cell selection and copy
33
- - 🔍 **Search & Filter** - Quickly find tables and data
34
- - 📝 **SQL Editor** - Write and execute queries with syntax highlighting
47
+ - 🗄️ **Multi-Database Support** - Works with both SQL Server and PostgreSQL
48
+ - 📊 **Browse Tables** - Explore database schemas and tables with an intuitive sidebar
49
+ - 📋 **View Data** - Paginated table views with Excel-like cell selection and copy
50
+ - 🔍 **Search & Filter** - Quickly find tables and data with advanced filtering
51
+ - 📝 **SQL Editor** - Write and execute queries with syntax highlighting and query history
52
+ - 🔗 **Foreign Key Navigation** - View related data with foreign key displays
53
+ - 📦 **JSON Support** - View and explore JSON objects with expandable formatting
35
54
  - ⭐ **Favorites** - Bookmark frequently used tables
36
- - 💾 **Connection History** - Recent connections are remembered
55
+ - 💾 **Connection History** - Recent connections are remembered per database
37
56
  - 🎨 **Modern UI** - Clean, responsive interface
38
57
  - 🌓 **Dark Mode** - Built-in theme toggle
39
58
  - 📋 **Copy to Excel** - Select cells and copy with headers (Ctrl+C)
59
+ - ⏱️ **Query Cancellation** - Cancel long-running queries (30-minute timeout)
40
60
 
41
61
  ## Installation (Optional)
42
62
 
@@ -48,10 +68,16 @@ npm install -g datapeek
48
68
 
49
69
  Then run it directly:
50
70
 
71
+ **SQL Server:**
51
72
  ```bash
52
73
  datapeek "Server=localhost;Database=MyDB;User Id=sa;Password=password;"
53
74
  ```
54
75
 
76
+ **PostgreSQL:**
77
+ ```bash
78
+ datapeek "postgresql://user:password@localhost:5432/mydb"
79
+ ```
80
+
55
81
  ## Development
56
82
 
57
83
  For developers who want to contribute or customize Datapeek:
@@ -67,9 +93,12 @@ npm install
67
93
  # Run development server (opens browser automatically)
68
94
  npm run dev
69
95
 
70
- # Run with connection string
96
+ # Run with connection string (SQL Server)
71
97
  CONNECTION_STRING="Server=localhost;Database=MyDB;User Id=sa;Password=password;" npm run dev
72
98
 
99
+ # Run with connection string (PostgreSQL)
100
+ CONNECTION_STRING="postgresql://user:password@localhost:5432/mydb" npm run dev
101
+
73
102
  # Build for production
74
103
  npm run build
75
104
  ```
@@ -77,7 +106,7 @@ npm run build
77
106
  ## Requirements
78
107
 
79
108
  - Node.js 18 or higher
80
- - MS SQL Server database (local or remote)
109
+ - SQL Server database (local or remote) **OR** PostgreSQL database (local or remote)
81
110
 
82
111
  ## License
83
112