@gitping/cli 0.0.1 → 0.1.0
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/README.md +300 -0
- package/dist/index.js +32041 -73342
- package/package.json +23 -7
- package/src/api/client.ts +0 -53
- package/src/api/pings.ts +0 -79
- package/src/api/threads.ts +0 -14
- package/src/api/users.ts +0 -43
- package/src/auth/keychain.ts +0 -28
- package/src/auth/pkce.ts +0 -24
- package/src/commands/accept.ts +0 -43
- package/src/commands/block.ts +0 -48
- package/src/commands/chat.ts +0 -181
- package/src/commands/ignore.ts +0 -43
- package/src/commands/inbox.ts +0 -98
- package/src/commands/leaderboard.ts +0 -51
- package/src/commands/login.ts +0 -117
- package/src/commands/logout.ts +0 -29
- package/src/commands/ping.ts +0 -57
- package/src/commands/search.ts +0 -64
- package/src/commands/status.ts +0 -116
- package/src/commands/whoami.ts +0 -57
- package/src/config.ts +0 -39
- package/src/index.ts +0 -147
- package/src/ui/ChatView.tsx +0 -195
- package/src/ui/InboxWatch.tsx +0 -134
- package/tsconfig.json +0 -21
package/README.md
ADDED
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
# ⚡ GitPing CLI
|
|
2
|
+
|
|
3
|
+
> **Ping the people who build the internet.**
|
|
4
|
+
|
|
5
|
+
Contact any developer using their GitHub identity, directly from your terminal.
|
|
6
|
+
|
|
7
|
+
[](https://www.npmjs.com/package/@gitping/cli)
|
|
8
|
+
[](https://opensource.org/licenses/MIT)
|
|
9
|
+
|
|
10
|
+
GitPing lets you send short messages called **pings** to any GitHub developer, accept conversations, and chat in real time without leaving the terminal.
|
|
11
|
+
|
|
12
|
+
No email hunting.
|
|
13
|
+
No LinkedIn messages.
|
|
14
|
+
No awkward introductions.
|
|
15
|
+
|
|
16
|
+
Just one developer reaching out to another.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
# Why GitPing Exists
|
|
21
|
+
|
|
22
|
+
In 1991, a Finnish computer science student named Linus Torvalds shared a small operating system he had been building as a hobby. That project eventually became Linux, which now runs much of the internet.
|
|
23
|
+
|
|
24
|
+
Around the same time, Guido van Rossum created a programming language designed to make code easier to read. He called it Python. Today it powers startups, research labs, and global infrastructure.
|
|
25
|
+
|
|
26
|
+
In 1995, Brendan Eich wrote JavaScript in just ten days. That language would go on to shape the modern web.
|
|
27
|
+
|
|
28
|
+
Years later, Ryan Dahl introduced Node.js, changing how developers build servers. At Facebook, Jordan Walke created React, a library that reshaped modern interfaces.
|
|
29
|
+
|
|
30
|
+
All of these stories started the same way.
|
|
31
|
+
|
|
32
|
+
A developer built something interesting.
|
|
33
|
+
Another developer discovered it.
|
|
34
|
+
A conversation started.
|
|
35
|
+
|
|
36
|
+
That is how open source has always worked.
|
|
37
|
+
|
|
38
|
+
But today, something frustrating often happens.
|
|
39
|
+
|
|
40
|
+
You find an amazing repository.
|
|
41
|
+
You read the code.
|
|
42
|
+
You understand the idea behind it.
|
|
43
|
+
|
|
44
|
+
And you think:
|
|
45
|
+
|
|
46
|
+
> "I wish I could talk to the person who built this."
|
|
47
|
+
|
|
48
|
+
Maybe you want to collaborate.
|
|
49
|
+
Maybe you want feedback.
|
|
50
|
+
Maybe you simply want to say thank you.
|
|
51
|
+
|
|
52
|
+
But reaching out to developers on GitHub is still harder than it should be.
|
|
53
|
+
|
|
54
|
+
GitPing fixes that.
|
|
55
|
+
|
|
56
|
+
GitPing lets you find the developers behind the code you admire and send them a simple ping.
|
|
57
|
+
|
|
58
|
+
No cold emails.
|
|
59
|
+
No LinkedIn messages.
|
|
60
|
+
No complicated introductions.
|
|
61
|
+
|
|
62
|
+
Just one developer reaching out to another.
|
|
63
|
+
|
|
64
|
+
Because that is how the internet has always been built.
|
|
65
|
+
|
|
66
|
+
GitPing helps those conversations happen.
|
|
67
|
+
|
|
68
|
+
**One developer at a time.**
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
# Installation
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
npm install -g @gitping/cli
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
or
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
bun add -g @gitping/cli
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
After installing, the `gitping` binary is available globally.
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
# Quick Start
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
# Authenticate with GitHub
|
|
92
|
+
gitping login
|
|
93
|
+
|
|
94
|
+
# Send a ping
|
|
95
|
+
gitping ping @torvalds "Hey! Would love to collaborate."
|
|
96
|
+
|
|
97
|
+
# Check your inbox
|
|
98
|
+
gitping inbox
|
|
99
|
+
|
|
100
|
+
# Accept a ping
|
|
101
|
+
gitping accept @someuser
|
|
102
|
+
|
|
103
|
+
# Start chatting
|
|
104
|
+
gitping chat @someuser
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
# Authentication
|
|
110
|
+
|
|
111
|
+
## `gitping login`
|
|
112
|
+
|
|
113
|
+
Opens your browser for GitHub OAuth using PKCE.
|
|
114
|
+
|
|
115
|
+
Your token is stored securely in the **OS keychain**, never in environment variables or dotfiles.
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
gitping login
|
|
119
|
+
gitping login --json
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## `gitping logout`
|
|
125
|
+
|
|
126
|
+
Clears stored credentials.
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
gitping logout
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
## `gitping whoami`
|
|
135
|
+
|
|
136
|
+
Shows your GitPing profile.
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
gitping whoami
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
Example:
|
|
143
|
+
|
|
144
|
+
```
|
|
145
|
+
@torvalds
|
|
146
|
+
Rep score: 87 [HIGH]
|
|
147
|
+
Availability: open-to-collab
|
|
148
|
+
Status msg: Open to kernel contributions
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
# Pings
|
|
154
|
+
|
|
155
|
+
A **ping** is a short message sent to another developer.
|
|
156
|
+
|
|
157
|
+
Maximum length: **250 characters**.
|
|
158
|
+
|
|
159
|
+
If the developer has not joined GitPing yet, the ping is **queued and delivered automatically when they sign up**.
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
## `gitping ping`
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
gitping ping @torvalds "Hi! Would love feedback on my kernel patch."
|
|
167
|
+
gitping ping @torvalds "Hiring Rust engineers — interested?" --cat job
|
|
168
|
+
gitping ping @gvanrossum "Collaborating on a Python tool?" --cat collab
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
### Categories
|
|
172
|
+
|
|
173
|
+
| Category | Description |
|
|
174
|
+
| -------- | ----------------------------- |
|
|
175
|
+
| job | recruiting or job opportunity |
|
|
176
|
+
| collab | project collaboration |
|
|
177
|
+
| oss | open source contribution |
|
|
178
|
+
| feedback | asking for feedback |
|
|
179
|
+
|
|
180
|
+
---
|
|
181
|
+
|
|
182
|
+
# Inbox
|
|
183
|
+
|
|
184
|
+
## `gitping inbox`
|
|
185
|
+
|
|
186
|
+
List received pings.
|
|
187
|
+
|
|
188
|
+
```bash
|
|
189
|
+
gitping inbox
|
|
190
|
+
gitping inbox --unread
|
|
191
|
+
gitping inbox --watch
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
Example:
|
|
195
|
+
|
|
196
|
+
```
|
|
197
|
+
⚡ GitPing Inbox (3 pings)
|
|
198
|
+
|
|
199
|
+
a1b2c3d4 @somedev → @you [collab]
|
|
200
|
+
Hey! Would love to collaborate on your project.
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
## Accept / Ignore / Block
|
|
206
|
+
|
|
207
|
+
```bash
|
|
208
|
+
gitping accept @user
|
|
209
|
+
gitping ignore @user
|
|
210
|
+
gitping block @spammer
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
Users blocked by **5 different developers within 24 hours are automatically suspended**.
|
|
214
|
+
|
|
215
|
+
---
|
|
216
|
+
|
|
217
|
+
# Chat
|
|
218
|
+
|
|
219
|
+
Once a ping is accepted, you can start a real time conversation.
|
|
220
|
+
|
|
221
|
+
```bash
|
|
222
|
+
gitping chat @username
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
Example:
|
|
226
|
+
|
|
227
|
+
```
|
|
228
|
+
⚡ GitPing Chat with @somedev
|
|
229
|
+
|
|
230
|
+
> Hey! Ready to sync up?
|
|
231
|
+
You 10:32 Hey! Ready to sync up?
|
|
232
|
+
Them 10:33 Absolutely, let's go!
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
---
|
|
236
|
+
|
|
237
|
+
# Status
|
|
238
|
+
|
|
239
|
+
Set your availability.
|
|
240
|
+
|
|
241
|
+
```bash
|
|
242
|
+
gitping status --set open-to-collab
|
|
243
|
+
gitping status --set open-to-work
|
|
244
|
+
gitping status --set selective
|
|
245
|
+
gitping status --set heads-down
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
---
|
|
249
|
+
|
|
250
|
+
# Discovery
|
|
251
|
+
|
|
252
|
+
## Search
|
|
253
|
+
|
|
254
|
+
```bash
|
|
255
|
+
gitping search @torvalds
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
---
|
|
259
|
+
|
|
260
|
+
## Leaderboard
|
|
261
|
+
|
|
262
|
+
```bash
|
|
263
|
+
gitping leaderboard
|
|
264
|
+
gitping leaderboard --rising
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
Shows the **most pinged developers on GitPing**.
|
|
268
|
+
|
|
269
|
+
---
|
|
270
|
+
|
|
271
|
+
# Reputation Score
|
|
272
|
+
|
|
273
|
+
Every user has a **0–100 reputation score** based on interactions.
|
|
274
|
+
|
|
275
|
+
| Tier | Score |
|
|
276
|
+
| ------ | ------ |
|
|
277
|
+
| TOP | 86–100 |
|
|
278
|
+
| HIGH | 66–85 |
|
|
279
|
+
| MEDIUM | 41–65 |
|
|
280
|
+
| LOW | 0–40 |
|
|
281
|
+
|
|
282
|
+
High reputation increases visibility.
|
|
283
|
+
|
|
284
|
+
Spamming lowers it.
|
|
285
|
+
|
|
286
|
+
---
|
|
287
|
+
|
|
288
|
+
# How It Works
|
|
289
|
+
|
|
290
|
+
1. Send a ping
|
|
291
|
+
2. If the user is on GitPing, it is delivered instantly
|
|
292
|
+
3. If not, it is queued until they join
|
|
293
|
+
4. They can accept, ignore, or block
|
|
294
|
+
5. Accepted pings unlock real time chat
|
|
295
|
+
|
|
296
|
+
---
|
|
297
|
+
|
|
298
|
+
# License
|
|
299
|
+
|
|
300
|
+
MIT © GitPing
|