# cg-growth/content architecture

> Architecture diagram of the GitHub repository cg-growth/content, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/cg-growth/content
- Repository: https://github.com/cg-growth/content

## Overview

This repository is a collection of independent CoinGecko API guide examples and demos, not one integrated application. A user chooses an article folder and runs its example; the resulting workflow varies by project, from market-data lookup and visualization to paper trading, on-chain discovery, and paid API access. The graph highlights distinct example families and several source-supported internal flows. Many folders are represented by their tree paths only; their implementation details and connections are not inferred from the sampled excerpts.

Main entry points: [`build-a-crypto-prediction-market-app/src/routes/+page.server.ts`](https://github.com/cg-growth/content/blob/main/build-a-crypto-prediction-market-app/src/routes/%2Bpage.server.ts) (Prediction markets), [`how-to-build-a-solana-sniper-bot-in-python/main.py`](https://github.com/cg-growth/content/blob/main/how-to-build-a-solana-sniper-bot-in-python/main.py) (Sniper bot), [`build-crypto-token-search-engine/src/routes/+page.server.ts`](https://github.com/cg-growth/content/blob/main/build-crypto-token-search-engine/src/routes/%2Bpage.server.ts) (Token search), [`build-honeypot-checker/src/routes/+page.server.ts`](https://github.com/cg-growth/content/blob/main/build-honeypot-checker/src/routes/%2Bpage.server.ts) (Pool checker)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_market["Market data apps"]
  node_token_search["Token search<br/>[+page.server.ts]"]
  node_honeypot["Pool checker<br/>[+page.server.ts]"]
  node_prediction["Prediction markets<br/>[+page.server.ts]"]
  node_price_streams["Price streams<br/>[ws_stream.py]"]
  node_rwa["RWA analysis<br/>[analyze_rwa.py]"]
  node_weekend_gold["Tokenized gold"]
  node_portfolio["Portfolio dashboard"]
end

subgraph group_trading["Trading examples"]
  node_paper_bot["Paper trading<br/>[main.py]"]
  node_ai_bot["AI trading<br/>[main.py]"]
  node_sniper["Sniper bot<br/>[main.py]"]
  node_backtesting["Backtesting<br/>[main.py]"]
  node_news_bot["News trading<br/>[bot.py]"]
  node_solana_agent["Solana agent<br/>[agent.ts]"]
  node_sniper_store[("JSON persistence<br/>[data_manager.py]")]
end

subgraph group_onchain["On-chain tools"]
  node_dex_aggregator["DEX aggregator<br/>[server.js]"]
  node_token_tracker["New token tracker<br/>[fetch_new_pools.py]"]
  node_pool_sniper["Pump pool tools<br/>[get_new_pools.py]"]
  node_wallet["Wallet data<br/>[wallet.ts]"]
end

subgraph group_special["Other demos"]
  node_jev_server["Jev demo API<br/>[server.py]"]
  node_jev_web["Jev demo UI<br/>[pulse.js]"]
  node_x402["Pay-per-use API<br/>[main.py]"]
  node_jev_api["Jev API routes<br/>[server.py]"]
end

node_reader(("Example user"))
node_coingecko["CoinGecko API"]

node_reader -->|"runs example"| node_token_search
node_reader -->|"opens checker"| node_honeypot
node_reader -->|"loads markets"| node_prediction
node_reader -->|"runs bot"| node_paper_bot
node_reader -->|"runs bot"| node_sniper
node_reader -->|"uses demo"| node_dex_aggregator
node_reader -->|"runs script"| node_x402
node_token_search -->|"searches assets"| node_coingecko
node_honeypot -->|"loads filtered pools"| node_coingecko
node_prediction -->|"loads coin and token data"| node_coingecko
node_prediction -->|"generates outcomes"| node_prediction
node_sniper -->|"reads and writes orders"| node_sniper_store
node_sniper -->|"fetches pools and prices"| node_coingecko
node_jev_web -->|"requests demo data"| node_jev_api
node_jev_api -->|"fetches market data"| node_coingecko
node_x402 -->|"requests paid data"| node_coingecko
node_dex_aggregator -->|"fetches pools and networks"| node_coingecko

click node_token_search "https://github.com/cg-growth/content/blob/main/build-crypto-token-search-engine/src/routes/%2Bpage.server.ts"
click node_honeypot "https://github.com/cg-growth/content/blob/main/build-honeypot-checker/src/routes/%2Bpage.server.ts"
click node_prediction "https://github.com/cg-growth/content/blob/main/build-a-crypto-prediction-market-app/src/routes/%2Bpage.server.ts"
click node_price_streams "https://github.com/cg-growth/content/blob/main/stream-real-time-crypto-prices-python/ws_stream.py"
click node_rwa "https://github.com/cg-growth/content/blob/main/tokenized-rwa-data-api-guide/analyze_rwa.py"
click node_weekend_gold "https://github.com/cg-growth/content/blob/main/track-weekend-gold-price-tokenized-commodities/scripts/07_weekend_gap_view.py"
click node_portfolio "https://github.com/cg-growth/content/blob/main/crypto-portfolio-dashboard-python/observablehq.config.ts"
click node_paper_bot "https://github.com/cg-growth/content/blob/main/crypto-paper-trading-bot-python/main.py"
click node_ai_bot "https://github.com/cg-growth/content/blob/main/build-ai-crypto-trading-bot/main.py"
click node_sniper "https://github.com/cg-growth/content/blob/main/how-to-build-a-solana-sniper-bot-in-python/main.py"
click node_backtesting "https://github.com/cg-growth/content/blob/main/crypto-backtesting-python/main.py"
click node_news_bot "https://github.com/cg-growth/content/blob/main/build-news-based-ai-crypto-trading-bot/bot.py"
click node_solana_agent "https://github.com/cg-growth/content/blob/main/build-ai-agent-using-solana-agent-kit/agent.ts"
click node_dex_aggregator "https://github.com/cg-growth/content/blob/main/how-to-build-dex-aggregator/server.js"
click node_token_tracker "https://github.com/cg-growth/content/blob/main/how-to-track-new-tokens-onchain/fetch_new_pools.py"
click node_pool_sniper "https://github.com/cg-growth/content/blob/main/how-to-build-pump-fun-sniper-bot-in-python/get_new_pools.py"
click node_wallet "https://github.com/cg-growth/content/blob/main/crypto-data-goatsdk/src/wallet.ts"
click node_jev_server "https://github.com/cg-growth/content/blob/main/coingecko-jev/app/server.py"
click node_jev_web "https://github.com/cg-growth/content/blob/main/coingecko-jev/web/pulse.js"
click node_x402 "https://github.com/cg-growth/content/blob/main/x402-pay-per-use-crypto-api/main.py"
click node_sniper_store "https://github.com/cg-growth/content/blob/main/how-to-build-a-solana-sniper-bot-in-python/data/data_manager.py"
click node_jev_api "https://github.com/cg-growth/content/blob/main/coingecko-jev/app/server.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_token_search,node_honeypot,node_prediction,node_price_streams,node_rwa,node_weekend_gold,node_portfolio,node_reader toneBlue
class node_paper_bot,node_ai_bot,node_sniper,node_backtesting,node_news_bot,node_solana_agent,node_sniper_store toneAmber
class node_dex_aggregator,node_token_tracker,node_pool_sniper,node_wallet,node_coingecko toneMint
class node_jev_server,node_jev_web,node_x402,node_jev_api toneRose
```

## Components

### Market data apps

- [Token search](https://github.com/cg-growth/content/blob/main/build-crypto-token-search-engine/src/routes/%2Bpage.server.ts): `build-crypto-token-search-engine/src/routes/+page.server.ts`
- [Pool checker](https://github.com/cg-growth/content/blob/main/build-honeypot-checker/src/routes/%2Bpage.server.ts): `build-honeypot-checker/src/routes/+page.server.ts`
- [Prediction markets](https://github.com/cg-growth/content/blob/main/build-a-crypto-prediction-market-app/src/routes/%2Bpage.server.ts): `build-a-crypto-prediction-market-app/src/routes/+page.server.ts`
- [Price streams](https://github.com/cg-growth/content/blob/main/stream-real-time-crypto-prices-python/ws_stream.py): `stream-real-time-crypto-prices-python/ws_stream.py`
- [RWA analysis](https://github.com/cg-growth/content/blob/main/tokenized-rwa-data-api-guide/analyze_rwa.py): `tokenized-rwa-data-api-guide/analyze_rwa.py`
- [Tokenized gold](https://github.com/cg-growth/content/blob/main/track-weekend-gold-price-tokenized-commodities/scripts/07_weekend_gap_view.py): `track-weekend-gold-price-tokenized-commodities/scripts/07_weekend_gap_view.py`
- [Portfolio dashboard](https://github.com/cg-growth/content/blob/main/crypto-portfolio-dashboard-python/observablehq.config.ts): `crypto-portfolio-dashboard-python/observablehq.config.ts`

### Trading examples

- [Paper trading](https://github.com/cg-growth/content/blob/main/crypto-paper-trading-bot-python/main.py): `crypto-paper-trading-bot-python/main.py`
- [AI trading](https://github.com/cg-growth/content/blob/main/build-ai-crypto-trading-bot/main.py): `build-ai-crypto-trading-bot/main.py`
- [Sniper bot](https://github.com/cg-growth/content/blob/main/how-to-build-a-solana-sniper-bot-in-python/main.py): `how-to-build-a-solana-sniper-bot-in-python/main.py`
- [Backtesting](https://github.com/cg-growth/content/blob/main/crypto-backtesting-python/main.py): `crypto-backtesting-python/main.py`
- [News trading](https://github.com/cg-growth/content/blob/main/build-news-based-ai-crypto-trading-bot/bot.py): `build-news-based-ai-crypto-trading-bot/bot.py`
- [Solana agent](https://github.com/cg-growth/content/blob/main/build-ai-agent-using-solana-agent-kit/agent.ts): `build-ai-agent-using-solana-agent-kit/agent.ts`
- [JSON persistence](https://github.com/cg-growth/content/blob/main/how-to-build-a-solana-sniper-bot-in-python/data/data_manager.py): `how-to-build-a-solana-sniper-bot-in-python/data/data_manager.py`

### On-chain tools

- [DEX aggregator](https://github.com/cg-growth/content/blob/main/how-to-build-dex-aggregator/server.js): `how-to-build-dex-aggregator/server.js`
- [New token tracker](https://github.com/cg-growth/content/blob/main/how-to-track-new-tokens-onchain/fetch_new_pools.py): `how-to-track-new-tokens-onchain/fetch_new_pools.py`
- [Pump pool tools](https://github.com/cg-growth/content/blob/main/how-to-build-pump-fun-sniper-bot-in-python/get_new_pools.py): `how-to-build-pump-fun-sniper-bot-in-python/get_new_pools.py`
- [Wallet data](https://github.com/cg-growth/content/blob/main/crypto-data-goatsdk/src/wallet.ts): `crypto-data-goatsdk/src/wallet.ts`

### Other demos

- [Jev demo API](https://github.com/cg-growth/content/blob/main/coingecko-jev/app/server.py): `coingecko-jev/app/server.py`
- [Jev demo UI](https://github.com/cg-growth/content/blob/main/coingecko-jev/web/pulse.js): `coingecko-jev/web/pulse.js`
- [Pay-per-use API](https://github.com/cg-growth/content/blob/main/x402-pay-per-use-crypto-api/main.py): `x402-pay-per-use-crypto-api/main.py`
- [Jev API routes](https://github.com/cg-growth/content/blob/main/coingecko-jev/app/server.py): `coingecko-jev/app/server.py`

### Other components

- **Example user**
- **CoinGecko API**

## Connections

- Example user → Token search: runs example
- Example user → Pool checker: opens checker
- Example user → Prediction markets: loads markets
- Example user → Paper trading: runs bot
- Example user → Sniper bot: runs bot
- Example user → DEX aggregator: uses demo
- Example user → Pay-per-use API: runs script
- Token search → CoinGecko API: searches assets
- Pool checker → CoinGecko API: loads filtered pools
- Prediction markets → CoinGecko API: loads coin and token data
- Prediction markets → Prediction markets: generates outcomes
- Sniper bot → JSON persistence: reads and writes orders
- Sniper bot → CoinGecko API: fetches pools and prices
- Jev demo UI → Jev API routes: requests demo data
- Jev API routes → CoinGecko API: fetches market data
- Pay-per-use API → CoinGecko API: requests paid data
- DEX aggregator → CoinGecko API: fetches pools and networks
