crypull 1.0.2 → 1.0.3

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 DELETED
@@ -1,228 +0,0 @@
1
- <div align="center">
2
-
3
- # 🚀 Crypull
4
-
5
- **The Ultimate All-in-One Crypto API & CLI Tool**
6
-
7
- *Fetch cryptocurrency prices, top coins, deep token analytics, historical charts, network gas, and market sentiment across multiple platforms instantly—all completely for free, with zero API keys required.*
8
-
9
- ![TypeScript](https://img.shields.io/badge/TypeScript-007ACC?style=for-the-badge&logo=typescript&logoColor=white)
10
- ![NodeJS](https://img.shields.io/badge/Node.js-43853D?style=for-the-badge&logo=node.js&logoColor=white)
11
- ![npm](https://img.shields.io/badge/npm-CB3837?style=for-the-badge&logo=npm&logoColor=white)
12
- ![License](https://img.shields.io/badge/License-MIT-blue.svg?style=for-the-badge)
13
- [![GitHub](https://img.shields.io/badge/GitHub-Repository-black?style=for-the-badge&logo=github)](https://github.com/Foisalislambd/crypull)
14
-
15
- </div>
16
-
17
- ---
18
-
19
- ## 📖 Table of Contents
20
- - [Why Crypull?](#-why-crypull)
21
- - [Installation](#-installation)
22
- - [💻 Command Line Interface (CLI) Guide](#-command-line-interface-cli-guide)
23
- - [1. Quick Price (`price`)](#1-get-a-quick-price)
24
- - [2. Deep Token Analytics (`info`)](#2-deep-token-analytics)
25
- - [3. Top 50 Cryptocurrencies (`top`)](#3-top-50-cryptocurrencies)
26
- - [4. Trending Coins (`trending`)](#4-trending-coins)
27
- - [5. Historical Charts (`chart`)](#5-historical-ascii-charts)
28
- - [6. Global Market Data (`market`)](#6-global-market-overview)
29
- - [7. Ethereum Gas Tracker (`gas`)](#7-ethereum-gas-tracker)
30
- - [8. Fear & Greed Index (`sentiment`)](#8-fear--greed-index)
31
- - [9. Donate / Support (`donate`)](#9-donate--support)
32
- - [🛠️ Usage in Your Project (TypeScript / Node.js)](#%EF%B8%8F-usage-in-your-project-typescript--nodejs)
33
- - [1. Import and Initialize](#1-import-and-initialize)
34
- - [2. Available API Methods](#2-available-api-methods)
35
- - [3. Customizing Providers](#3-customizing-providers)
36
- - [Supported Providers](#-supported-providers)
37
-
38
- ---
39
-
40
- ## ✨ Why Crypull?
41
-
42
- 1. **Smart Routing:** It automatically detects if you're typing a symbol (like `BTC`) or a smart contract address (like `0x...`) and routes it to the correct provider.
43
- 2. **Zero Dependencies (Core):** Uses the native Node.js `fetch` API.
44
- 3. **100% Free APIs:** Pulls from CoinGecko, DexScreener, Binance, CoinCap, Coinpaprika, and CryptoCompare—no paid API keys required.
45
- 4. **DEX & CEX Coverage:** Finds both Top 100 exchange coins and brand new memecoins launching on Uniswap, Raydium, or PulseX.
46
- 5. **Beautiful CLI:** Built-in colored, heavily formatted terminal UI.
47
-
48
- ---
49
-
50
- ## 📦 Installation
51
-
52
- To use it in your terminal as a global CLI tool:
53
- ```bash
54
- npm install -g crypull
55
- ```
56
-
57
- To use it inside your Node.js or TypeScript project:
58
- ```bash
59
- npm install crypull
60
- ```
61
-
62
- ---
63
-
64
- ## 💻 Command Line Interface (CLI) Guide
65
-
66
- Once installed globally, you can run `crypull` from anywhere in your terminal!
67
-
68
- ### 1. Get a Quick Price
69
- Instantly fetch the current USD price of any symbol or contract address.
70
- ```bash
71
- $ crypull price btc
72
- $ crypull price 0x6982508145454Ce325dDbE47a25d4ec3d2311933
73
- ```
74
-
75
- ### 2. Deep Token Analytics
76
- Get detailed info including market cap, rank, FDV, 24h volume, circulating supply, all-time highs/lows, top DEX trading pairs, and official social links.
77
- ```bash
78
- $ crypull info eth
79
- $ crypull info solana
80
- ```
81
-
82
- ### 3. Top 50 Cryptocurrencies
83
- See a ranked, color-coded list of the Top 50 coins by global market capitalization.
84
- ```bash
85
- $ crypull top
86
- ```
87
-
88
- ### 4. Trending Coins
89
- See what the world is searching for! Fetches the top 10 most trending coins right now.
90
- ```bash
91
- $ crypull trending
92
- ```
93
-
94
- ### 5. Historical ASCII Charts
95
- Draw an actual historical price chart right inside your terminal!
96
- ```bash
97
- # Draws a 7-day chart by default
98
- $ crypull chart btc
99
-
100
- # Draw a 30-day chart for Solana
101
- $ crypull chart sol -d 30
102
- ```
103
-
104
- ### 6. Global Market Overview
105
- Get the total global cryptocurrency market cap, 24h volume, and BTC/ETH dominance percentages.
106
- ```bash
107
- $ crypull market
108
- ```
109
-
110
- ### 7. Ethereum Gas Tracker
111
- Check current Ethereum network congestion (Safe, Average, Fast) in Gwei.
112
- ```bash
113
- $ crypull gas
114
- ```
115
-
116
- ### 8. Fear & Greed Index
117
- Check current market sentiment (e.g., Extreme Fear vs. Extreme Greed).
118
- ```bash
119
- $ crypull sentiment
120
- ```
121
-
122
- ### 9. Donate / Support
123
- Show donation addresses to support development.
124
- ```bash
125
- $ crypull donate
126
- ```
127
-
128
- ---
129
-
130
- ## 🛠️ Usage in Your Project (TypeScript / Node.js)
131
-
132
- Crypull is fully typed out of the box and works beautifully in any Node.js, Next.js, Express, or standard TypeScript project.
133
-
134
- ### 1. Import and Initialize
135
-
136
- You can simply import the global, ready-to-use `crypull` instance and call its methods immediately.
137
-
138
- **TypeScript / ES Modules (`import`)**
139
- ```typescript
140
- import { crypull } from 'crypull';
141
-
142
- async function fetchCryptoData() {
143
- // 1. Fetch a quick price
144
- const btcPrice = await crypull.price('BTC');
145
- console.log(`BTC Price: $${btcPrice?.priceUsd}`);
146
-
147
- // 2. Deep token info (works with contract addresses!)
148
- const pepeInfo = await crypull.info('0x6982508145454Ce325dDbE47a25d4ec3d2311933');
149
- console.log(`PEPE Market Cap: $${pepeInfo?.marketCap}`);
150
- console.log(`PEPE Volume 24h: $${pepeInfo?.volume24h}`);
151
- }
152
-
153
- fetchCryptoData();
154
- ```
155
-
156
- **CommonJS (`require`)**
157
- ```javascript
158
- const { crypull } = require('crypull');
159
-
160
- async function run() {
161
- const ethPrice = await crypull.price('ethereum');
162
- console.log('ETH Price:', ethPrice.priceUsd);
163
- }
164
- run();
165
- ```
166
-
167
- ### 2. Available API Methods
168
-
169
- | Method | Returns | Description |
170
- |--------|---------|-------------|
171
- | `price(query: string)` | `Promise<PriceData>` | Get basic symbol and USD price. |
172
- | `info(query: string)` | `Promise<TokenInfo>` | Massive payload including supplies, ATH/ATL, social links, and DEX pairs. |
173
- | `search(query: string)` | `Promise<SearchResult[]>` | Find coins by name or symbol across multiple providers. |
174
- | `top()` | `Promise<TopCoin[]>` | Get top 50 cryptocurrencies by market cap. |
175
- | `trending()` | `Promise<TrendingCoin[]>` | Get top 10 currently trending/searched tokens. |
176
- | `market()` | `Promise<GlobalMarketData>` | Global market cap, volume, and dominance metrics. |
177
- | `chart(query: string, days?: number)`| `Promise<ChartData>` | Arrays of timestamps and prices for building custom charts. |
178
- | `gas()` | `Promise<GasData>` | Current Ethereum Gwei prices. |
179
- | `sentiment()` | `Promise<SentimentData>` | Fear and Greed index (0-100). |
180
-
181
- ### 3. Customizing Providers
182
- By default, the global `crypull` instance smartly loops through all available providers until it finds the best data. If you want to explicitly restrict it to specific providers, you can instantiate your own class:
183
-
184
- ```typescript
185
- import { Crypull, CoinGeckoProvider, BinanceProvider } from 'crypull';
186
-
187
- // Create a custom instance that ONLY searches Binance and CoinGecko
188
- const customCrypull = new Crypull({
189
- providers: [
190
- new BinanceProvider(),
191
- new CoinGeckoProvider()
192
- ]
193
- });
194
-
195
- const price = await customCrypull.price('ETH');
196
- ```
197
-
198
- ---
199
-
200
- ## 🌐 Supported Providers
201
- Crypull queries data from the following platforms. It handles all rate-limits gracefully without requiring API keys.
202
-
203
- - **Binance:** Extremely fast for top CEX pairs.
204
- - **DexScreener:** Best for new and trending DEX tokens, contract addresses, and deep liquidity data.
205
- - **CoinGecko:** Broadest coverage for general coins, historical market data, and descriptions.
206
- - **Coinpaprika:** Provides extensive market data and supply metrics.
207
- - **CoinCap:** Fast, real-time pricing and market activity.
208
- - **CryptoCompare:** High-quality fallback market data.
209
- - **GeckoTerminal:** Fallback for custom networks and liquidity pools not fully indexed elsewhere.
210
-
211
- ---
212
-
213
- ## 💖 Donate
214
-
215
- If you find this project useful, consider supporting the development!
216
-
217
- - **BTC:** `bc1qj4zt3lva4r68xspayg0p8s4hyg40nhjz8fuhqq`
218
- - **EVM (All Chains):** `0x63a875d0c4Dad8E18B95D844caE6FF915dF0a2BD`
219
- - **Solana:** `8J5VvZu6ayQa4XnSAAzx4YX3QsXYyyNrP4Zr7JEx1KFY`
220
- - **TRX:** `TPgZSrHUhKdjyMwaGd15utJvsbk85oBbit`
221
-
222
- ---
223
-
224
- <div align="center">
225
-
226
- **Built with ❤️ for Web3 Developers by [Md Foisal Islam](https://github.com/Foisalislambd)**
227
-
228
- </div>
package/dist/cli.d.mts DELETED
@@ -1 +0,0 @@
1
- #!/usr/bin/env node
package/dist/cli.d.ts DELETED
@@ -1 +0,0 @@
1
- #!/usr/bin/env node