-
-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy path.env.example
More file actions
224 lines (179 loc) · 15.6 KB
/
.env.example
File metadata and controls
224 lines (179 loc) · 15.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
# ===========================
# Free Crypto News — Environment Variables
# ===========================
# Copy this file to .env.local and fill in the values.
# Required vars are marked with [REQUIRED], others are optional.
# Vars prefixed with NEXT_PUBLIC_ are exposed to the browser.
# ═══════════════════════════════════════════════════════════════
# AI & LLM Providers
# ═══════════════════════════════════════════════════════════════
# [REQUIRED] Groq API key for AI summarization, classification & translation
# FREE! Get yours at https://console.groq.com/keys
# Also enables real-time news translation to 40+ languages
GROQ_API_KEY=
GROQ_MODEL= # Override default Groq model (e.g. llama-3.3-70b-versatile)
# OpenRouter API key (fallback AI provider)
# Get at https://openrouter.ai/keys
OPENROUTER_API_KEY=
OPENROUTER_MODEL= # Override default OpenRouter model
# OpenAI API key (alternative AI provider)
OPENAI_API_KEY=
OPENAI_MODEL= # Override default OpenAI model (e.g. gpt-4o)
# Anthropic API key (alternative AI provider)
ANTHROPIC_API_KEY=
ANTHROPIC_MODEL= # Override default Anthropic model
# HuggingFace API key (for embeddings/inference)
HUGGINGFACE_API_KEY=
# ═══════════════════════════════════════════════════════════════
# Caching — Vercel KV / Upstash Redis
# ═══════════════════════════════════════════════════════════════
# Upstash Redis (primary cache layer)
KV_REST_API_URL= # Upstash Redis REST URL
KV_REST_API_TOKEN= # Upstash Redis REST token
UPSTASH_REDIS_REST_URL= # Alternative Upstash REST URL
UPSTASH_REDIS_REST_TOKEN= # Alternative Upstash REST token
REDIS_URL= # Direct Redis connection URL
VERCEL_KV_URL= # Vercel KV URL (auto-set on Vercel)
# ═══════════════════════════════════════════════════════════════
# Database (Neon / Supabase Postgres — serverless driver for Edge)
# ═══════════════════════════════════════════════════════════════
DATABASE_URL= # PostgreSQL connection string (e.g. postgres://user:pass@ep-xxx.us-east-2.aws.neon.tech/neondb?sslmode=require)
POSTGRES_URL= # Alternative Postgres URL (fallback if DATABASE_URL is unset)
# ═══════════════════════════════════════════════════════════════
# Blockchain & Crypto APIs
# ═══════════════════════════════════════════════════════════════
COINGECKO_API_KEY= # Optional: CoinGecko Demo API key (free at https://www.coingecko.com/en/api) — raises rate limit from ~30 to 50 req/min. Works fine without it.
ETHERSCAN_API_KEY= # Etherscan API key (whale alerts / on-chain data)
COINMARKETCAP_API_KEY= # CoinMarketCap API key
CRYPTOPANIC_API_KEY= # CryptoPanic API key (news aggregation)
CRYPTOQUANT_API_KEY= # CryptoQuant API key (on-chain metrics)
GLASSNODE_API_KEY= # Glassnode API key (on-chain analytics)
INTOTHEBLOCK_API_KEY= # IntoTheBlock API key
LUNARCRUSH_API_KEY= # LunarCrush API key (social metrics)
MESSARI_API_KEY= # Messari API key (research data)
SANTIMENT_API_KEY= # Santiment API key (on-chain social metrics)
THEGRAPH_API_KEY= # The Graph API key (subgraph queries)
WHALE_ALERT_API_KEY= # Whale Alert API key (large tx tracking)
OPENSEA_API_KEY= # OpenSea API key (NFT data)
RESERVOIR_API_KEY= # Reservoir API key (NFT aggregator)
TALLY_API_KEY= # Tally API key (governance data)
COINGLASS_API_KEY= # CoinGlass API key (derivatives, liquidations, funding rates) — free tier: 100 req/day
BIRDEYE_API_KEY= # Birdeye API key (Solana & multi-chain DEX, trending tokens) — free tier: 100 req/min
TOKENTERMINAL_API_KEY= # Token Terminal API key (protocol revenue, earnings, P/E) — free tier: 5 req/min
DUNE_API_KEY= # Dune Analytics API key (SQL on-chain queries) — free tier: 2500 credits/mo
# Note: GeckoTerminal API requires NO key (free, by CoinGecko)
# Note: DefiLlama Fees/Revenue endpoints require NO key (free)
# ═══════════════════════════════════════════════════════════════
# News & Data APIs
# ═══════════════════════════════════════════════════════════════
NEWSAPI_API_KEY= # NewsAPI.org key
# ═══════════════════════════════════════════════════════════════
# Authentication & Security
# ═══════════════════════════════════════════════════════════════
INTERNAL_API_KEY= # Internal API key for server-to-server calls
INTERNAL_API_SECRET= # Internal API secret
CRON_SECRET= # Secret for Vercel cron job authentication
# ═══════════════════════════════════════════════════════════════
# Notifications — Discord / Telegram / Slack
# ═══════════════════════════════════════════════════════════════
# Discord
DISCORD_WEBHOOK_URL= # Discord webhook for alert notifications
DISCORD_BOT_TOKEN= # Discord bot token for monitoring channels
DISCORD_TOKEN= # Alternative Discord token
DISCORD_CHANNEL_ID= # Single Discord channel ID
DISCORD_CHANNEL_IDS= # Comma-separated Discord channel IDs
# Telegram
TELEGRAM_BOT_TOKEN= # Telegram bot token (create via @BotFather)
TELEGRAM_CHAT_ID= # Telegram chat ID for notifications
TELEGRAM_CHAT_IDS= # Comma-separated Telegram chat IDs
# Slack
SLACK_WEBHOOK_URL= # Slack webhook for notifications
# ═══════════════════════════════════════════════════════════════
# Email Providers
# ═══════════════════════════════════════════════════════════════
EMAIL_FROM= # Sender email address
RESEND_API_KEY= # Resend email API key
SENDGRID_API_KEY= # SendGrid API key
POSTMARK_API_KEY= # Postmark API key
BUTTONDOWN_API_KEY= # Buttondown newsletter API key
CONVERTKIT_API_KEY= # ConvertKit API key
CONVERTKIT_FORM_ID= # ConvertKit form ID
MAILCHIMP_API_KEY= # Mailchimp API key
MAILCHIMP_LIST_ID= # Mailchimp audience list ID
# ═══════════════════════════════════════════════════════════════
# Payments — Stripe
# ═══════════════════════════════════════════════════════════════
STRIPE_SECRET_KEY= # Stripe secret key
STRIPE_WEBHOOK_SECRET= # Stripe webhook signing secret
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY= # Stripe publishable key (browser)
STRIPE_PRO_MONTHLY_PRICE_ID= # Stripe Pro monthly price ID
STRIPE_PRO_YEARLY_PRICE_ID= # Stripe Pro yearly price ID
STRIPE_ENTERPRISE_MONTHLY_PRICE_ID= # Stripe Enterprise monthly price ID
STRIPE_ENTERPRISE_YEARLY_PRICE_ID= # Stripe Enterprise yearly price ID
STRIPE_AI_USAGE_METER_ID= # Stripe AI usage meter ID
STRIPE_API_USAGE_METER_ID= # Stripe API usage meter ID
STRIPE_EXPORT_USAGE_METER_ID= # Stripe export usage meter ID
STRIPE_WEBHOOK_USAGE_METER_ID= # Stripe webhook usage meter ID
# ═══════════════════════════════════════════════════════════════
# x402 Micropayments
# ═══════════════════════════════════════════════════════════════
X402_PAYMENT_ADDRESS= # EVM wallet address for collecting payments
X402_RECEIVE_ADDRESS= # (optional) Override payTo address — defaults to X402_PAYMENT_ADDRESS
X402_OWNERSHIP_PROOF= # Ownership proof signature (generate with: bun run scripts/generate-ownership-proof.ts)
X402_SOLANA_PAYMENT_ADDRESS= # Solana wallet address for payments
X402_NETWORK=base-sepolia # Network: 'base' for mainnet, 'base-sepolia' for testnet
X402_TESTNET=true # Use testnet (true/false)
X402_FACILITATOR_URL= # x402 facilitator service URL
# ═══════════════════════════════════════════════════════════════
# Push Notifications (Web Push / VAPID)
# ═══════════════════════════════════════════════════════════════
VAPID_PUBLIC_KEY= # VAPID public key for web push
VAPID_PRIVATE_KEY= # VAPID private key for web push
# ═══════════════════════════════════════════════════════════════
# Analytics & Error Tracking
# ═══════════════════════════════════════════════════════════════
NEXT_PUBLIC_GA_ID= # Google Analytics measurement ID
NEXT_PUBLIC_VITALS_ENDPOINT= # Web Vitals reporting endpoint
VERCEL_ANALYTICS_ID= # Vercel Analytics ID
# Sentry error tracking
SENTRY_DSN= # Sentry DSN (server-side)
NEXT_PUBLIC_SENTRY_DSN= # Sentry DSN (client-side)
SENTRY_ENVIRONMENT= # Sentry environment (production/staging)
SENTRY_RELEASE= # Sentry release tag
SENTRY_SAMPLE_RATE= # Sentry error sample rate (0.0 - 1.0)
SENTRY_TRACES_SAMPLE_RATE= # Sentry performance trace sample rate
# ═══════════════════════════════════════════════════════════════
# Feature Flags
# ═══════════════════════════════════════════════════════════════
FEATURE_AI_CHAT=true # Enable AI chat assistant
FEATURE_WHALE_ALERTS=true # Enable whale alert tracking
# ═══════════════════════════════════════════════════════════════
# GitHub & Archive
# ═══════════════════════════════════════════════════════════════
GITHUB_TOKEN= # GitHub PAT for archive auto-commit (needs repo scope)
# ═══════════════════════════════════════════════════════════════
# WebSocket / Real-time
# ═══════════════════════════════════════════════════════════════
WS_ENDPOINT= # WebSocket server endpoint
WS_URL= # WebSocket URL
# ═══════════════════════════════════════════════════════════════
# RAG (Retrieval Augmented Generation)
# ═══════════════════════════════════════════════════════════════
RAG_STORE_PATH= # Path to local RAG vector store
# ═══════════════════════════════════════════════════════════════
# Blockchain RPC / Web3
# ═══════════════════════════════════════════════════════════════
NEXT_PUBLIC_BLOCKNATIVE_API_KEY= # Blocknative API key (gas estimation)
# ═══════════════════════════════════════════════════════════════
# Build & Deployment
# ═══════════════════════════════════════════════════════════════
NEXT_PUBLIC_SITE_URL=http://localhost:3000 # Public URL of the site
NEXT_PUBLIC_APP_URL= # App URL (if different from site URL)
NEXT_PUBLIC_API_URL= # API base URL (if different from app)
NEXT_PUBLIC_BASE_URL= # Base URL for asset paths
GOOGLE_SITE_VERIFICATION= # Google Search Console verification
# ═══════════════════════════════════════════════════════════════
# Debug
# ═══════════════════════════════════════════════════════════════
DEBUG_RSS=false # Enable RSS feed debug logging
LOG_LEVEL=info # Pino log level: trace, debug, info, warn, error, fatal