💱 Inspiration

The explosive growth of stablecoins—and the broader cryptocurrency market—shows the world needs real-time, intelligent analytics. Inspired by PayPal’s PYUSD and a new wave of digital asset innovation, we envisioned a universal dashboard to empower everyone, including small businesses and pro traders. The fusion of advanced cloud-native AI like Google Gemini, fast news sentiment, and persistent storage via MongoDB pushes analytics past simple charts into actionable context. The “AI in Action” hackathon, emphasizing Google Cloud, MongoDB, and GitLab, was the catalyst for our CyberMatrix vision for advanced crypto metrics.


🛰️ What it does

CyberMatrix Analytics Dashboard v2.1 is your all-in-one cloud solution for multi-chain cryptocurrency and stablecoin analytics, deploying the latest Streamlit tech on Google Cloud Run.

  • Efficient Event Feeds: Track stablecoin & crypto transactions (PYUSD, USDT, USDC, more), mint/burns, and smart contract events. MongoDB caching + GCP Blockchain RPC = instant data.
  • In-depth Analysis: Volume calculations, tagged address leaderboards, network graphs of asset flows—backed by rich data in MongoDB and GCP.
  • Historical Exploration: Analyze events across block ranges with on-demand queries, pulling from cache or live blockchain.
  • Blockchain & Address Tools: Address balances, persistent MongoDB watchlists, contract states, transaction lookup and block explorer for power users.
  • AI-Powered Insights (Gemini): Onboard AI assistant answers your crypto questions, surfaces news sentiment, and generates actionable summaries.
  • Contextual Info & Search: Breaking news feeds from NewsAPI, stored/searchable in MongoDB.
  • Innovative Simulation: Simulated bio-implant crypto payments to test future fintech concepts.
  • User-Friendly Perks: One-click data export (CSV), custom CyberMatrix UI, emoji-rich theming.

🌌 How We Built It

Tech Stack:

  • Frontend/UI: Streamlit for a responsive interactive dashboard.
  • Data Layer: MongoDB Atlas via PyMongo for fast, persistent blockchain event and news storage.
  • Cloud Deployment: Google Cloud Run powers secure, serverless scalability.
    • Cloud Build & Artifact Registry: Full CI/CD for automatic Docker builds and deployment.
    • Secret Manager: Safely manages API keys and endpoints (MongoDB, RPC, Gemini).
    • Blockchain Node Engine: Fast RPC for Ethereum blockchain.
    • Gemini API: Powers all things AI.
  • Blockchain Integration: Web3.py for real-time blockchain access.
  • External Data: NewsAPI imports fresh crypto news for analytics.
  • Visualization: Pandas, Plotly, Pyvis for deep-dive charts and network maps.
  • Version Control: Fully managed in GitLab—automatic builds mean less ops, more crypto.

📡 Challenges we ran into

  • IAM Permissions: Fine-tuning Cloud IAM roles was vital—missteps meant instant deployment blocks.
  • Resource Management: Balancing RAM and CPU for big-data analytics and avoiding serverless timeouts.
  • Data Design: Crafting MongoDB schemas for event, news, and user watchlists to maximize speed and reliability.
  • RPC Fallbacks: Robust caching logic—first cache, fallback RPC—so users never wait for fresh data.
  • Query Optimization: Performance tuning for event and news feeds, compound/text indexes for speed.
  • Previous Challenges: ABI issues, Streamlit state, and tailoring Gemini prompts for optimal results.

🪐 Accomplishments that we're proud of

  • End-to-End Cloud Deployment: Dockerized app, full CI/CD pipeline, and secure runtime with encrypted secrets.
  • MongoDB Power: High-speed data caching and search for instant analytics and persistent user settings.
  • News Indexing: Fast news article storage/search—never miss a crypto headline!
  • Persistent Watchlists: User watchlists now survive logins and browser restarts.
  • Hybrid Fetch Model: Smart data fetching from MongoDB cache, fallback to fresh RPC.
  • Actionable AI: Gemini drives practical sentiment and analysis for fast decision making.

🤖 What we learned

  • Cloud Build Mastery: Automated Docker builds—code to deployment with a single push.
  • Secret Hygiene: Using Google Secret Manager for secrets—no more risky plaintext files.
  • IAM Deep Dive: How service accounts and roles secure multi-cloud projects.
  • Dockerization: Portable and reproducible environments for every developer.
  • MongoDB Schema Skills: Performance indexing and schema design for analytics data.

🚀👨🏻‍🚀 What’s next for CyberMatrix Analytics

  • Stablecoin Expansion: Add support for USDT, USDC, DAI, and more—cross-chain!
  • Vector Search: Store transaction/news embeddings in MongoDB; semantic search for smarter queries!
  • Advanced Aggregation: Power MongoDB upstream analytics for richer stats.
  • Live Sync: Explore MongoDB Change Streams for real-time dashboard updates.
  • BigQuery Integration: Offload massive datasets to BigQuery for deep analytics, keep MongoDB for live ops.
  • Personalized Accounts: Secure sign-in and custom user dashboards with encrypted data storage.
  • Zero Ops CI/CD: Full GitLab automation: push to deploy, no manual steps needed.

Built With

  • docker
  • gemini-api
  • gitlab
  • google-artifact-registry
  • google-blockchain-node-engine
  • google-cloud-build
  • google-cloud-run
  • google-secret-manager
  • mongodb-atlas
  • newsapi
  • pandas
  • plotly
  • pymongo
  • python
  • pyvis
  • streamlit
  • web3.py
Share this project:

Updates

Submission history