@decatalyst/hummingbird 1.0.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 +54 -0
- package/bin/hummingbird.js +47 -0
- package/package.json +29 -0
package/README.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
<img src="https://media.vylth.com/images/Inhr2N9T.png" width="90" alt="Hummingbird" />
|
|
3
|
+
<h2>hummingbird</h2>
|
|
4
|
+
<p>Autonomous pump.fun trading agent — CLI</p>
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install -g @iamdecatalyst/hummingbird
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Then just run:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
hummingbird # interactive TUI dashboard
|
|
17
|
+
hummingbird login # save your API credentials
|
|
18
|
+
hummingbird status # one-shot stats
|
|
19
|
+
hummingbird positions
|
|
20
|
+
hummingbird logs
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## What it does
|
|
26
|
+
|
|
27
|
+
Connects to a running [Hummingbird](https://github.com/iamdecatalyst/hummingbird) orchestrator and gives you a full terminal dashboard to monitor and control your trading bot:
|
|
28
|
+
|
|
29
|
+
- Live P&L, win rate, open positions
|
|
30
|
+
- Trade history with entry/exit prices
|
|
31
|
+
- Real-time event log
|
|
32
|
+
- Start / stop / resume the bot from the terminal
|
|
33
|
+
- Emergency exit all positions
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Requirements
|
|
38
|
+
|
|
39
|
+
You need a running Hummingbird orchestrator to connect to.
|
|
40
|
+
Get started: [github.com/iamdecatalyst/hummingbird](https://github.com/iamdecatalyst/hummingbird)
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Supported platforms
|
|
45
|
+
|
|
46
|
+
| Platform | Architecture |
|
|
47
|
+
|---|---|
|
|
48
|
+
| Linux | x64, arm64 |
|
|
49
|
+
| macOS | x64 (Intel), arm64 (Apple Silicon) |
|
|
50
|
+
| Windows | x64 |
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
Built by [@iamdecatalyst](https://github.com/iamdecatalyst) · [VYLTH Strategies](https://vylth.com)
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict'
|
|
3
|
+
|
|
4
|
+
const { spawnSync } = require('child_process')
|
|
5
|
+
const path = require('path')
|
|
6
|
+
const os = require('os')
|
|
7
|
+
|
|
8
|
+
function getBinaryPath() {
|
|
9
|
+
const platform = os.platform() // 'linux' | 'darwin' | 'win32'
|
|
10
|
+
const arch = os.arch() // 'x64' | 'arm64'
|
|
11
|
+
|
|
12
|
+
// Map Node arch names to our package arch names
|
|
13
|
+
const archMap = { x64: 'x64', arm64: 'arm64' }
|
|
14
|
+
const mappedArch = archMap[arch]
|
|
15
|
+
|
|
16
|
+
if (!mappedArch) {
|
|
17
|
+
fatal(`unsupported architecture: ${arch}`)
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const pkgName = `@decatalyst/hummingbird-${platform}-${mappedArch}`
|
|
21
|
+
const binaryName = platform === 'win32' ? 'hummingbird.exe' : 'hummingbird'
|
|
22
|
+
|
|
23
|
+
try {
|
|
24
|
+
const pkgDir = path.dirname(require.resolve(`${pkgName}/package.json`))
|
|
25
|
+
return path.join(pkgDir, 'bin', binaryName)
|
|
26
|
+
} catch {
|
|
27
|
+
fatal(
|
|
28
|
+
`no binary found for ${platform}/${arch}\n` +
|
|
29
|
+
` expected package: ${pkgName}\n` +
|
|
30
|
+
` install manually: https://github.com/iamdecatalyst/hummingbird/releases`
|
|
31
|
+
)
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function fatal(msg) {
|
|
36
|
+
process.stderr.write(`\nhummingbird: ${msg}\n\n`)
|
|
37
|
+
process.exit(1)
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const bin = getBinaryPath()
|
|
41
|
+
const result = spawnSync(bin, process.argv.slice(2), { stdio: 'inherit' })
|
|
42
|
+
|
|
43
|
+
if (result.error) {
|
|
44
|
+
fatal(`failed to run binary: ${result.error.message}`)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
process.exit(result.status ?? 1)
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@decatalyst/hummingbird",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Autonomous pump.fun trading agent — CLI",
|
|
5
|
+
"keywords": ["solana", "trading", "pump.fun", "cli", "defi"],
|
|
6
|
+
"homepage": "https://github.com/iamdecatalyst/hummingbird",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/iamdecatalyst/hummingbird.git"
|
|
10
|
+
},
|
|
11
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
12
|
+
"author": "Isaac Wisdom <decatalyst@vylth.com> (https://github.com/iamdecatalyst)",
|
|
13
|
+
"bin": {
|
|
14
|
+
"hummingbird": "./bin/hummingbird.js"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"postinstall": "node bin/hummingbird.js --version 2>/dev/null || true"
|
|
18
|
+
},
|
|
19
|
+
"optionalDependencies": {
|
|
20
|
+
"@decatalyst/hummingbird-linux-x64": "1.0.0",
|
|
21
|
+
"@decatalyst/hummingbird-linux-arm64": "1.0.0",
|
|
22
|
+
"@decatalyst/hummingbird-darwin-x64": "1.0.0",
|
|
23
|
+
"@decatalyst/hummingbird-darwin-arm64": "1.0.0",
|
|
24
|
+
"@decatalyst/hummingbird-win32-x64": "1.0.0"
|
|
25
|
+
},
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=14"
|
|
28
|
+
}
|
|
29
|
+
}
|