gh-here 1.0.1 → 1.0.4
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.
- package/.claude/settings.local.json +15 -10
- package/README.md +11 -4
- package/bin/gh-here.js +8 -1255
- package/lib/file-utils.js +264 -0
- package/lib/git.js +207 -0
- package/lib/gitignore.js +91 -0
- package/lib/renderers.js +569 -0
- package/lib/server.js +391 -0
- package/package.json +1 -1
- package/public/app.js +692 -129
- package/public/styles.css +414 -44
- package/tests/draftManager.test.js +241 -0
- package/tests/httpService.test.js +268 -0
- package/tests/languageDetection.test.js +145 -0
- package/tests/pathUtils.test.js +136 -0
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"permissions": {
|
|
3
3
|
"allow": [
|
|
4
|
-
"Bash(
|
|
5
|
-
"Bash(
|
|
6
|
-
"Bash(
|
|
7
|
-
"Bash(
|
|
8
|
-
"Bash(
|
|
9
|
-
"Bash(
|
|
10
|
-
"Bash(
|
|
11
|
-
"Bash(
|
|
12
|
-
"Bash(git checkout:*)",
|
|
4
|
+
"Bash(chmod:*)",
|
|
5
|
+
"Bash(npm install)",
|
|
6
|
+
"Bash(npm start)",
|
|
7
|
+
"Bash(pkill:*)",
|
|
8
|
+
"Bash(node:*)",
|
|
9
|
+
"Bash(curl:*)",
|
|
10
|
+
"Bash(npm install:*)",
|
|
11
|
+
"Bash(git init:*)",
|
|
13
12
|
"Bash(git add:*)",
|
|
14
13
|
"Bash(git commit:*)",
|
|
14
|
+
"Bash(git rm:*)",
|
|
15
|
+
"Bash(ssh:*)",
|
|
16
|
+
"Bash(git restore:*)",
|
|
17
|
+
"Bash(npx gh-here:*)",
|
|
18
|
+
"Bash(git checkout:*)",
|
|
15
19
|
"Bash(git push:*)",
|
|
16
|
-
"Bash(
|
|
20
|
+
"Bash(git pull:*)",
|
|
21
|
+
"Bash(npm publish:*)"
|
|
17
22
|
],
|
|
18
23
|
"deny": [],
|
|
19
24
|
"ask": []
|
package/README.md
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
# gh-here
|
|
2
2
|
|
|
3
|
-
A local GitHub-like file browser for viewing
|
|
3
|
+
A local GitHub-like file browser for viewing and exploring codebases in your browser. Launch it in any folder to get a beautiful web-based directory browser with syntax highlighting and powerful navigation features.
|
|
4
|
+
|
|
5
|
+
## Why?
|
|
6
|
+
|
|
7
|
+
TUIs (Terminal User Interfaces) like Claude Code, Google Gemini CLI, and Cursor have become very popular tools for working on codebases, but they don't provide a visual view into the directories and files themselves. gh-here exists to fill that gap, so you can easily explore your project files in a familiar GitHub-esque browser GUI.
|
|
8
|
+
|
|
9
|
+
<!-- Test change for commit interface -->
|
|
4
10
|
|
|
5
11
|
## Installation
|
|
6
12
|
|
|
7
|
-
|
|
13
|
+
Run gh-here directly with npx (no installation required):
|
|
8
14
|
|
|
9
15
|
```bash
|
|
10
16
|
npx gh-here
|
|
@@ -38,7 +44,6 @@ The app will automatically find an available port starting from 3000 and serve y
|
|
|
38
44
|
- Quick actions (copy path, download files, edit, rename, delete)
|
|
39
45
|
- .gitignore support with toggle functionality
|
|
40
46
|
- File and folder creation, editing, renaming, and deletion
|
|
41
|
-
- Responsive design for mobile and desktop
|
|
42
47
|
|
|
43
48
|
### 🎨 Code Viewing & Editing
|
|
44
49
|
- GitHub-accurate syntax highlighting for 25+ languages
|
|
@@ -50,11 +55,13 @@ The app will automatically find an available port starting from 3000 and serve y
|
|
|
50
55
|
|
|
51
56
|
### 🔀 Git Integration
|
|
52
57
|
- Automatic git repository detection
|
|
53
|
-
-
|
|
58
|
+
- Clean git status indicators with colored dots in dedicated column
|
|
59
|
+
- Smart status detection for files within untracked directories
|
|
54
60
|
- Professional inline diff viewer with syntax highlighting
|
|
55
61
|
- View/Diff/Edit mode toggle for files with changes
|
|
56
62
|
- Beautiful raw git diff display with color coding
|
|
57
63
|
- Git branch display in navigation header
|
|
64
|
+
- Visual status indicators: modified (dot), untracked (purple dot), added, deleted
|
|
58
65
|
|
|
59
66
|
### ⌨️ Keyboard Navigation
|
|
60
67
|
- `j`/`k` or arrow keys to navigate files
|