git0 0.2.4 → 0.2.6

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 (95) hide show
  1. package/bun.lock +159 -0
  2. package/docs/404.html +26 -3
  3. package/docs/Footer/index.html +26 -3
  4. package/docs/assets/css/styles.3dd00f8d.css +1 -0
  5. package/docs/assets/js/17896441.79ceefeb.js +1 -0
  6. package/docs/assets/js/1df93b7f.dfdf0ef3.js +2 -0
  7. package/docs/assets/js/1df93b7f.dfdf0ef3.js.LICENSE.txt +6 -0
  8. package/docs/assets/js/22dd74f7.040a4546.js +1 -0
  9. package/docs/assets/js/237.daf7efdf.js +1 -0
  10. package/docs/assets/js/278.1628756c.js +1 -0
  11. package/docs/assets/js/4a829dc8.10d7db0a.js +1 -0
  12. package/docs/assets/js/577.78325c02.js +1 -0
  13. package/docs/assets/js/591.2156b33d.js +2 -0
  14. package/docs/assets/js/591.2156b33d.js.LICENSE.txt +61 -0
  15. package/docs/assets/js/5e95c892.bd6c1093.js +1 -0
  16. package/docs/assets/js/a7456010.3054873b.js +1 -0
  17. package/docs/assets/js/a7bd4aaa.87229397.js +1 -0
  18. package/docs/assets/js/a94703ab.6d39a596.js +1 -0
  19. package/docs/assets/js/aba21aa0.dfebd789.js +1 -0
  20. package/docs/assets/js/ac46717f.32345167.js +2 -0
  21. package/docs/assets/js/ac46717f.32345167.js.LICENSE.txt +6 -0
  22. package/docs/assets/js/c3a618e1.50a89e4d.js +1 -0
  23. package/docs/assets/js/d140250a.62af53aa.js +1 -0
  24. package/docs/assets/js/main.6b27aee7.js +2 -0
  25. package/docs/assets/js/main.6b27aee7.js.LICENSE.txt +68 -0
  26. package/docs/assets/js/runtime~main.5c54c19c.js +1 -0
  27. package/docs/functions/globals/index.html +47 -3
  28. package/docs/functions/index.html +73 -3
  29. package/docs/index.html +26 -3
  30. package/docs/lunr-index-1749612068805.json +1 -0
  31. package/docs/lunr-index.json +1 -1
  32. package/docs/search-doc-1749612068805.json +1 -0
  33. package/docs/search-doc.json +1 -1
  34. package/docs/sitemap.xml +1 -1
  35. package/docs-config/.docusaurus/DONT-EDIT-THIS-FOLDER +5 -0
  36. package/docs-config/.docusaurus/client-manifest.json +247 -0
  37. package/docs-config/.docusaurus/client-modules.js +8 -0
  38. package/docs-config/.docusaurus/codeTranslations.json +1 -0
  39. package/docs-config/.docusaurus/docusaurus-lunr-search/default/__plugin.json +4 -0
  40. package/docs-config/.docusaurus/docusaurus-plugin-content-docs/default/__mdx-loader-dependency.json +1 -0
  41. package/docs-config/.docusaurus/docusaurus-plugin-content-docs/default/__plugin.json +4 -0
  42. package/docs-config/.docusaurus/docusaurus-plugin-content-docs/default/p/index-466.json +1 -0
  43. package/docs-config/.docusaurus/docusaurus-plugin-content-docs/default/site-src-functions-globals-md-4a8.json +19 -0
  44. package/docs-config/.docusaurus/docusaurus-plugin-content-docs/default/site-src-functions-index-md-c3a.json +19 -0
  45. package/docs-config/.docusaurus/docusaurus-plugin-content-docs/default/site-src-index-md-d14.json +21 -0
  46. package/docs-config/.docusaurus/docusaurus-plugin-content-pages/default/__plugin.json +4 -0
  47. package/docs-config/.docusaurus/docusaurus-plugin-google-gtag/default/__plugin.json +4 -0
  48. package/docs-config/.docusaurus/docusaurus.config.mjs +385 -0
  49. package/docs-config/.docusaurus/globalData.json +60 -0
  50. package/docs-config/.docusaurus/i18n.json +17 -0
  51. package/docs-config/.docusaurus/lunr.client.js +5 -0
  52. package/docs-config/.docusaurus/registry.js +14 -0
  53. package/docs-config/.docusaurus/routes.js +55 -0
  54. package/docs-config/.docusaurus/routesChunkNames.json +41 -0
  55. package/docs-config/.docusaurus/site-metadata.json +51 -0
  56. package/docs-config/.docusaurus/site-storage.json +4 -0
  57. package/docs-config/bun.lock +6139 -0
  58. package/docs-config/config/customize-docs.js +3 -4
  59. package/docs-config/docusaurus.config.ts +5 -3
  60. package/docs-config/src/functions/globals.md +25 -79
  61. package/docs-config/src/functions/index.md +25 -25
  62. package/docs-config/src/index.md +26 -25
  63. package/docs-config/src/pages/Footer.tsx +63 -53
  64. package/docs-config/src/pages/index.tsx +139 -7
  65. package/docs-config/tsconfig.json +3 -2
  66. package/package.json +10 -7
  67. package/readme.md +26 -25
  68. package/src/git0.js +380 -0
  69. package/src/github-api.js +473 -0
  70. package/docs/assets/css/styles.36dc19db.css +0 -1
  71. package/docs/assets/js/17896441.859f1a34.js +0 -1
  72. package/docs/assets/js/196.f2323311.js +0 -1
  73. package/docs/assets/js/1df93b7f.b886b8fe.js +0 -1
  74. package/docs/assets/js/22dd74f7.9915da9b.js +0 -1
  75. package/docs/assets/js/294.067938e2.js +0 -101
  76. package/docs/assets/js/4a829dc8.22596b01.js +0 -1
  77. package/docs/assets/js/5e95c892.a050489a.js +0 -1
  78. package/docs/assets/js/61.78a4a5cd.js +0 -1
  79. package/docs/assets/js/66a0d7f4.a57db0e1.js +0 -1
  80. package/docs/assets/js/990.0223f00f.js +0 -1
  81. package/docs/assets/js/a7456010.eaa69c24.js +0 -1
  82. package/docs/assets/js/a7bd4aaa.6bf60595.js +0 -1
  83. package/docs/assets/js/a94703ab.233c731c.js +0 -1
  84. package/docs/assets/js/aba21aa0.3975ceaf.js +0 -1
  85. package/docs/assets/js/ac46717f.20537802.js +0 -1
  86. package/docs/assets/js/c3a618e1.b288e34c.js +0 -1
  87. package/docs/assets/js/d140250a.42194f66.js +0 -1
  88. package/docs/assets/js/main.9107865a.js +0 -38
  89. package/docs/assets/js/runtime~main.d42315b4.js +0 -1
  90. package/docs/customize-home/index.html +0 -4
  91. package/docs/lunr-index-1749598895331.json +0 -1
  92. package/docs/search-doc-1749598895331.json +0 -1
  93. package/docs-config/src/pages/customize-home.tsx +0 -147
  94. package/docs-config/tailwind.config.js +0 -13
  95. package/git0.js +0 -646
@@ -1,4 +1,6 @@
1
1
  import React, { useState, useEffect } from 'react';
2
+ import Footer from './Footer';
3
+
2
4
  import {
3
5
  Github,
4
6
  Download,
@@ -6,7 +8,7 @@ import {
6
8
  Zap,
7
9
  Terminal,
8
10
  Code,
9
- BookOpen,
11
+ Star,
10
12
  GitBranch,
11
13
  Users,
12
14
  Activity,
@@ -14,14 +16,144 @@ import {
14
16
  Check,
15
17
  ArrowRight,
16
18
  Sparkles,
19
+ Rocket,
20
+ Shield,
21
+ Globe,
22
+ Cpu,
23
+ Database,
24
+ Cloud,
25
+ Lock,
26
+ Layers,
27
+ FileCode,
28
+ Package,
29
+ Play,
30
+ Settings,
31
+ Workflow,
32
+ GitMerge,
33
+ Eye,
34
+ Folder,
35
+ Command,
36
+ FolderOpen,
37
+ Wrench,
38
+ MonitorSpeaker,
39
+ ExternalLink
17
40
  } from 'lucide-react';
18
41
 
19
- import Footer from './Footer';
20
- import * as custom from './customize-home.tsx'
42
+ const custom = {
43
+ installCommands: {
44
+ bun: 'bun install -g git0',
45
+ npm: 'npm install -g git0',
46
+ npx: 'npx git0 react starter'
47
+ }, coreFeatures: [
48
+ {
49
+ icon: Search,
50
+ title: 'Search GitHub Repositories',
51
+ description: 'Search repositories by name with intelligent fuzzy matching and instant results',
52
+ gradient: 'from-blue-500 via-cyan-500 to-teal-500',
53
+ example: 'git0 react starter'
54
+ },
55
+ {
56
+ icon: Download,
57
+ title: 'Direct Repository Download',
58
+ description: 'Download from GitHub URLs or owner/repo shortcuts. Skip the manual git clone dance',
59
+ gradient: 'from-purple-500 via-pink-500 to-rose-500',
60
+ example: 'git0 facebook/react'
61
+ },
62
+ {
63
+ icon: Package,
64
+ title: 'Git Release Package Manager',
65
+ description: 'Instantly download latest release binaries for your system or all platforms',
66
+ gradient: 'from-green-500 via-emerald-500 to-cyan-500',
67
+ example: 'gg user/repo'
68
+ },
69
+ {
70
+ icon: Zap,
71
+ title: 'Automatic Dependency Installation',
72
+ description: 'Smart detection and installation of dependencies for multiple project types',
73
+ gradient: 'from-orange-500 via-red-500 to-pink-500',
74
+ example: 'Auto-detects package.json, requirements.txt, Cargo.toml'
75
+ },
76
+ {
77
+ icon: Code,
78
+ title: 'Smart IDE Integration',
79
+ description: 'Automatically opens projects in Cursor, Windsurf, VS Code, or your preferred editor',
80
+ gradient: 'from-indigo-500 via-purple-500 to-blue-500',
81
+ example: 'Opens in cursor, windsurf, code, nvim'
82
+ },
83
+ {
84
+ icon: Shield,
85
+ title: 'Conflict Resolution',
86
+ description: 'Handles directory naming conflicts automatically with smart numbering',
87
+ gradient: 'from-yellow-500 via-orange-500 to-red-500',
88
+ example: 'react → react-2 → react-3'
89
+ }
90
+ ], projectTypes: [
91
+ {
92
+ name: 'Node.js',
93
+ file: 'package.json',
94
+ install: 'bun install (fallback to npm)',
95
+ color: 'text-green-400',
96
+ icon: Package
97
+ },
98
+ {
99
+ name: 'Docker',
100
+ file: 'Dockerfile, docker-compose.yml',
101
+ install: 'docker-compose up -d',
102
+ color: 'text-blue-400',
103
+ icon: Layers
104
+ },
105
+ {
106
+ name: 'Python',
107
+ file: 'requirements.txt, setup.py',
108
+ install: 'Virtual env + pip install',
109
+ color: 'text-yellow-400',
110
+ icon: FileCode
111
+ },
112
+ {
113
+ name: 'Rust',
114
+ file: 'Cargo.toml',
115
+ install: 'cargo build',
116
+ color: 'text-orange-400',
117
+ icon: Settings
118
+ },
119
+ {
120
+ name: 'Go',
121
+ file: 'go.mod',
122
+ install: 'go mod tidy',
123
+ color: 'text-cyan-400',
124
+ icon: Play
125
+ }
126
+ ], supportedIDEs: [
127
+ { name: 'Cursor', command: 'cursor', color: 'text-blue-400' },
128
+ { name: 'Windsurf', command: 'windsurf', color: 'text-purple-400' },
129
+ { name: 'VS Code', command: 'code', color: 'text-blue-300' },
130
+ { name: 'Code Server', command: 'code-server', color: 'text-green-400' },
131
+ { name: 'Neovim', command: 'nvim', color: 'text-orange-400' }
132
+ ], featuresList: [
133
+ { title: 'Search Repositories', command: 'git0 react starter', desc: 'Find repositories by name with fuzzy matching' },
134
+ { title: 'Direct Download', command: 'gg facebook/react', desc: 'Download using owner/repo shorthand' },
135
+ { title: 'From GitHub URL', command: 'git0 https://github.com/user/repo', desc: 'Download from any GitHub URL' }
136
+ ], workflowSteps: [
137
+ { step: '1', title: 'Repository Downloaded', desc: 'To your current directory', icon: Download },
138
+ { step: '2', title: 'Project Type Detected', desc: 'Automatically identified', icon: Search },
139
+ { step: '3', title: 'Dependencies Installed', desc: 'Based on project type', icon: Package },
140
+ { step: '4', title: 'IDE Launched', desc: 'Opens in preferred editor', icon: Code },
141
+ { step: '5', title: 'Dev Server Started', desc: 'For Node.js projects', icon: Play }
142
+ ],
143
+ urlDocs: "https://git0.js.org/functions",
144
+ urlSupport: "https://discord.gg/SJdBqBz3tV",
145
+ urlGithub: "https://github.com/vtempest/git0",
146
+ urlGithubChat: "https://github.com/vtempest/git0/discussions",
147
+ urlLogo: "https://i.imgur.com/857meew.png",
148
+ name: "git0",
149
+ urlAuthor: "https://github.com/vtempest",
150
+ author: "vtempest",
151
+ copyrightHTML: `&copy; 2025 Get git0. <a href="https://github.com/vtempest/git0">Star this on GitHub</a> so it can grow!`
152
+ }
21
153
 
22
154
  function App() {
23
155
  const [copiedCommand, setCopiedCommand] = useState<string | null>(null);
24
- const [activeTab, setActiveTab] = useState('npm');
156
+ const [activeTab, setActiveTab] = useState('bun');
25
157
  const [mousePosition, setMousePosition] = useState({ x: 0, y: 0 });
26
158
 
27
159
  useEffect(() => {
@@ -83,17 +215,17 @@ function App() {
83
215
  <nav className="relative z-50 flex items-center justify-between p-6 backdrop-blur-xl bg-gray-900/70 border-b border-gray-700/50">
84
216
  <div className="flex items-center space-x-3">
85
217
  <div className="w-12 h-12 bg-gradient-to-br from-blue-500 via-cyan-500 to-purple-600 rounded-xl flex items-center justify-center shadow-2xl shadow-blue-500/25 transform hover:scale-110 transition-all duration-300">
86
- <img src="https://i.imgur.com/857meew.png" alt="git0" className="w-10 h-10" />
218
+ <img src={custom.urlLogo} alt="logo" className="w-10 h-10" />
87
219
  </div>
88
220
  <span className="text-3xl font-bold bg-gradient-to-r from-blue-400 via-cyan-400 to-purple-400 bg-clip-text text-transparent">
89
- git0
221
+ {custom.name}
90
222
  </span>
91
223
  </div>
92
224
  <div className="flex items-center space-x-8">
93
225
  <a href="#features" className="hover:text-blue-400 transition-all duration-300 hover:scale-105">Features</a>
94
226
  <a href="#installation" className="hover:text-blue-400 transition-all duration-300 hover:scale-105">Install</a>
95
227
  <a href="#workflow" className="hover:text-blue-400 transition-all duration-300 hover:scale-105">How It Works</a>
96
- <a href="https://github.com/vtempest/git0" className="flex items-center space-x-2 bg-gradient-to-r from-blue-600 via-cyan-600 to-purple-600 px-6 py-3 rounded-xl hover:from-blue-500 hover:via-cyan-500 hover:to-purple-500 transition-all duration-300 shadow-2xl shadow-blue-500/25 hover:scale-105 hover:shadow-blue-500/40">
228
+ <a href={custom.urlGithub} className="flex items-center space-x-2 bg-gradient-to-r from-blue-600 via-cyan-600 to-purple-600 px-6 py-3 rounded-xl hover:from-blue-500 hover:via-cyan-500 hover:to-purple-500 transition-all duration-300 shadow-2xl shadow-blue-500/25 hover:scale-105 hover:shadow-blue-500/40">
97
229
  <Github className="w-5 h-5" />
98
230
  <span className="font-semibold">GitHub</span>
99
231
  </a>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "include": [
3
- "../git0.js"
3
+ "../src/git0.js"
4
4
  ],
5
5
  "compilerOptions": {
6
6
  "jsx": "react",
@@ -21,6 +21,7 @@
21
21
 
22
22
  "exclude": [
23
23
  "../node_modules",
24
- "../docs"
24
+ "../docs",
25
+ "pages/**/*"
25
26
  ]
26
27
  }
package/package.json CHANGED
@@ -1,20 +1,23 @@
1
1
  {
2
2
  "name": "git0",
3
3
  "description": "CLI tool to search GitHub repositories, download source & releases for your system, and instantly set up, then install dependencies and open code editor.",
4
- "version": "0.2.4",
4
+ "version": "0.2.6",
5
5
  "author": "vtempest",
6
6
  "dependencies": {
7
- "axios": "^1.9.0",
8
7
  "chalk": "^5.4.1",
9
8
  "git-url-parse": "^16.1.0",
10
- "grab-api.js": "^0.9.120",
9
+ "grab-api.js": "^0.9.124",
11
10
  "inquirer": "^12.6.3",
12
- "streamable": "^0.6.0",
11
+ "ora": "^8.2.0",
13
12
  "tar": "^7.4.3"
14
13
  },
14
+ "exports": {
15
+ ".": "./src/github-api.js"
16
+ },
15
17
  "bin": {
16
- "gg": "./git0.js",
17
- "git0": "./git0.js"
18
+ "g": "./src/git0.js",
19
+ "gg": "./src/git0.js",
20
+ "git0": "./src/git0.js"
18
21
  },
19
22
  "keywords": [
20
23
  "github",
@@ -24,7 +27,7 @@
24
27
  "license": "MIT",
25
28
  "scripts": {
26
29
  "docs": "cd docs-config && bun run build:docs",
27
- "demo": "bun git0.js react template",
30
+ "demo": "bun src/git0.js react template",
28
31
  "publish:npm": "npm version patch && npm publish --access public"
29
32
  },
30
33
  "type": "module"
package/readme.md CHANGED
@@ -6,21 +6,21 @@
6
6
  <img src="https://img.shields.io/discord/1110227955554209923.svg?label=Chat&logo=Discord&colorB=7289da&style=flat"
7
7
  alt="Join Discord" />
8
8
  </a>
9
- <a href="https://github.com/vtempest/gg/discussions">
10
- <img alt="GitHub Stars" src="https://img.shields.io/github/stars/vtempest/gg" /></a>
11
- <a href="https://github.com/vtempest/gg/discussions">
9
+ <a href="https://github.com/vtempest/git0/discussions">
10
+ <img alt="GitHub Stars" src="https://img.shields.io/github/stars/vtempest/git0" /></a>
11
+ <a href="https://github.com/vtempest/git0/discussions">
12
12
  <img alt="GitHub Discussions"
13
- src="https://img.shields.io/github/discussions/vtempest/gg" />
13
+ src="https://img.shields.io/github/discussions/vtempest/git0" />
14
14
  </a>
15
- <a href="https://github.com/vtempest/gg/pulse" alt="Activity">
16
- <img src="https://img.shields.io/github/commit-activity/m/vtempest/gg" />
15
+ <a href="https://github.com/vtempest/git0/pulse" alt="Activity">
16
+ <img src="https://img.shields.io/github/commit-activity/m/vtempest/git0" />
17
17
  </a>
18
- <img src="https://img.shields.io/github/last-commit/vtempest/gg.svg?style=flat-square" alt="GitHub last commit" />
18
+ <img src="https://img.shields.io/github/last-commit/vtempest/git0.svg?style=flat-square" alt="GitHub last commit" />
19
19
  </p>
20
20
  <p align="center">
21
21
  <img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square"
22
22
  alt="PRs Welcome" />
23
- <a href="https://codespaces.new/vtempest/gg">
23
+ <a href="https://codespaces.new/vtempest/git0">
24
24
  <img src="https://github.com/codespaces/badge.svg" width="150" height="20" />
25
25
  </a>
26
26
  </p>
@@ -57,26 +57,25 @@ bun install -g git0
57
57
 
58
58
  ## 🎯 Usage
59
59
 
60
-
61
- ### Search and Download
62
60
  ```bash
63
61
  # Search for repositories by name
64
62
  gg react starter
65
63
 
66
64
  # Direct download from GitHub URL
65
+ ## gg and git0 both work
67
66
  gg https://github.com/facebook/react
68
67
 
69
68
  # Download using owner/repo shorthand
70
- ## gg and git0 both work
71
- git0 facebook/react
69
+ git0 react starter
72
70
 
73
- ## Use without installing
74
- npx git0 react starter
71
+ ## Use git0 without installing, (only node needed)
72
+ # (copy into your project's readme for quick setup)
73
+ npx git0 facebook/react
75
74
  ```
76
75
 
77
76
  ### Supported Project Types
78
77
 
79
- GG automatically detects and sets up the following project types:
78
+ git0 automatically detects and sets up the following project types:
80
79
 
81
80
  | Project Type | Detection | Installation |
82
81
  |-------------|-----------|-------------|
@@ -88,7 +87,7 @@ GG automatically detects and sets up the following project types:
88
87
 
89
88
  ### Supported IDEs
90
89
 
91
- GG automatically detects and opens projects in your preferred IDE:
90
+ git0 automatically detects and opens projects in your preferred IDE:
92
91
 
93
92
  - **Cursor** (`cursor`)
94
93
  - **Windsurf** (`windsurf`)
@@ -98,15 +97,7 @@ GG automatically detects and opens projects in your preferred IDE:
98
97
 
99
98
  ## 🔧 Configuration
100
99
 
101
- ### GitHub Token (Optional)
102
-
103
- For higher API rate limits, set [your GitHub token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token):
104
-
105
- ```bash
106
- export GITHUB_TOKEN=your_github_token_here
107
- ```
108
100
 
109
- Without a token, you're limited to 60 requests per hour. With a token, you get 5,000 requests per hour.
110
101
 
111
102
  ### What Happens After Download
112
103
 
@@ -116,4 +107,14 @@ Without a token, you're limited to 60 requests per hour. With a token, you get 5
116
107
  4. **IDE is launched** automatically (if available)
117
108
  5. **Development server starts** (for Node.js projects)
118
109
 
119
- If a directory with the same name exists, GG automatically appends a number (e.g., `react-2`, `react-3`).
110
+ If a directory with the same name exists, git0 automatically appends a number (e.g., `react-2`, `react-3`).
111
+
112
+ ### GitHub Token (Optional)
113
+
114
+ For higher API rate limits, set [your GitHub token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token):
115
+
116
+ ```bash
117
+ export GITHUB_TOKEN=your_github_token_here
118
+ ```
119
+
120
+ Without a token, you're limited to 60 requests per hour. With a token, you get 5,000 requests per hour.