Skill: nextfrontierbuilds/fear-greed (version 1.1.2)

--- name: fear-greed description: Embeddable Fear & Greed Index for crypto dashboards. Real-time sentiment gauge. Drop-in React/HTML components. Works with AI agents, Claude, Cursor. version: 1.1.1 keywords: fear-greed, crypto-sentiment, market-indicator, trading-widget, dashboard-component, react-widget, bitcoin-sentiment, ai, ai-agent, ai-coding, trading-bot, fintech, market-data, openclaw, moltbot, vibe-coding, agentic --- # Crypto Sentiment Widget **Market mood at a glance.** Embeddable Fear & Greed Index for crypto dashboards and trading apps. Drop-in React and HTML components. Real-time updates. No API key required. Powered by Strykr PRISM. ## Quick Usage ```bash # Get current Fear & Greed value ./fear-greed.sh # Get JSON output ./fear-greed.sh --json # Get historical data ./fear-greed.sh --history ``` ## PRISM Endpoint | Endpoint | Description | Speed | |----------|-------------|-------| | `GET /market/fear-greed` | Current index | 229ms | ## Index Values | Range | Label | Meaning | |-------|-------|---------| | 0-25 | Extreme Fear | Buy opportunity? | | 26-45 | Fear | Caution | | 46-55 | Neutral | Wait and see | | 56-75 | Greed | Take profits? | | 76-100 | Extreme Greed | Possible top | ## Output Formats ### Terminal (Default) ``` 📊 Crypto Fear & Greed Index ┌─────────────────────┐ │ │ │ 72 │ │ GREED │ │ │ │ ████████████████░░ │ │ │ └─────────────────────┘ Last updated: 2026-01-28 13:15 UTC ``` ### JSON ```json { "value": 72, "label": "Greed", "timestamp": "2026-01-28T13:15:00Z" } ``` ## Widget Variants ### 1. Gauge (Circle) ``` ╭───────╮ ╱ 72 ╲ │ GREED │ ╲ ╱ ╰───────╯ ``` ### 2. Bar (Horizontal) ``` Fear & Greed: 72 (Greed) ████████████████░░░░░░░░░░ ``` ### 3. Badge (Compact) ``` ┌────────┐ │ FG: 72 │ │ 😀 │ └────────┘ ``` ## Embed Options ### React Component ```jsx import { FearGreedGauge } from '@strykr/fear-greed-widget'; function Dashboard() { return ( <FearGreedGauge theme="dark" size="md" variant="gauge" refreshInterval={300000} // 5 minutes /> ); } ``` ### HTML Embed ```html <div id="fear-greed-widget"></div> <script src="https://cdn.strykr.com/fear-greed.js"></script> <script> StrykrWidget.FearGreed({ element: '#fear-greed-widget', theme: 'dark', variant: 'gauge' }); </script> ``` ### iframe ```html <iframe src="https://widgets.strykr.com/fear-greed?theme=dark&variant=gauge" width="200" height="200" frameborder="0" ></iframe> ``` ## Themes | Theme | Background | Text | |-------|------------|------| | `dark` | #0D0D0D | #F5F3EF | | `light` | #FFFFFF | #1A1A1A | | `transparent` | none | auto | ## Auto-Refresh Widget auto-refreshes every 5 minutes by default. ```javascript // Custom refresh interval (in milliseconds) FearGreedGauge({ refreshInterval: 60000 }) // 1 minute ``` ## Use Cases 1. **Trading Dashboard** — Quick sentiment check 2. **Blog/Newsletter** — Embed in market updates 3. **Discord Server** — Daily sentiment bot 4. **Portfolio App** — Contextual indicator ## Environment Variables ```bash PRISM_URL=https://strykr-prism.up.railway.app ``` --- Built by [@NextXFrontier](https://x.com/NextXFrontier)

path: scripts/fear-greed.sh
content: #!/bin/bash
# PRISM Fear & Greed Widget
# Usage: ./fear-greed.sh [--json]

PRISM_URL="${PRISM_URL:-https://strykr-prism.up.railway.app}"

# Fetch data
DATA=$(curl -s "$PRISM_URL/market/fear-greed")
VALUE=$(echo "$DATA" | jq -r '.value // 50')
LABEL=$(echo "$DATA" | jq -r '.label // "Neutral"')

# JSON output
if [ "$1" == "--json" ]; then
  echo "$DATA"
  exit 0
fi

# Calculate bar
BAR_FILLED=$((VALUE / 5))
BAR_EMPTY=$((20 - BAR_FILLED))
BAR=$(printf '█%.0s' $(seq 1 $BAR_FILLED))$(printf '░%.0s' $(seq 1 $BAR_EMPTY))

# Emoji based on value
if [ "$VALUE" -le 25 ]; then
  EMOJI="😱"
  COLOR="Extreme Fear"
elif [ "$VALUE" -le 45 ]; then
  EMOJI="😰"
  COLOR="Fear"
elif [ "$VALUE" -le 55 ]; then
  EMOJI="😐"
  COLOR="Neutral"
elif [ "$VALUE" -le 75 ]; then
  EMOJI="😀"
  COLOR="Greed"
else
  EMOJI="🤑"
  COLOR="Extreme Greed"
fi

# Pretty print
cat << EOF

📊 Crypto Fear & Greed Index

   ┌─────────────────────┐
   │                     │
   │         $VALUE          │
   │       $LABEL       │
   │         $EMOJI          │
   │                     │
   │  $BAR │
   │                     │
   └─────────────────────┘

   Sentiment: $COLOR
   Updated: $(date -u +"%Y-%m-%d %H:%M UTC")

EOF


path: skill.json
content: {
  "name": "fear-greed",
  "version": "1.0.0",
  "description": "Crypto Fear & Greed Index widget using Strykr PRISM API",
  "author": {
    "name": "Next Frontier",
    "url": "https://x.com/NextXFrontier"
  },
  "repository": "https://github.com/NextFrontierBuilds/fear-greed-skill",
  "keywords": [
    "prism",
    "fear-greed",
    "sentiment",
    "crypto",
    "widget",
    "market-data"
  ],
  "config": {
    "PRISM_URL": {
      "description": "PRISM API base URL",
      "default": "https://strykr-prism.up.railway.app"
    }
  },
  "triggers": [
    "fear and greed",
    "market sentiment",
    "crypto sentiment"
  ],
  "platforms": ["macos", "linux"],
  "category": "market-data"
}


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: suspicious (HIGH)