{"id":50296782,"url":"https://github.com/dev-araujo/0g-insight","last_synced_at":"2026-05-28T09:03:36.574Z","repository":{"id":356341648,"uuid":"1225736332","full_name":"dev-araujo/0g-insight","owner":"dev-araujo","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-07T15:52:50.000Z","size":299,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-07T17:38:29.977Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://0g-insight.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dev-araujo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-04-30T15:27:57.000Z","updated_at":"2026-05-07T15:54:30.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dev-araujo/0g-insight","commit_stats":null,"previous_names":["dev-araujo/0g-insight"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/dev-araujo/0g-insight","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-araujo%2F0g-insight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-araujo%2F0g-insight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-araujo%2F0g-insight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-araujo%2F0g-insight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dev-araujo","download_url":"https://codeload.github.com/dev-araujo/0g-insight/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-araujo%2F0g-insight/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33601384,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-28T09:03:35.760Z","updated_at":"2026-05-28T09:03:36.566Z","avatar_url":"https://github.com/dev-araujo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 0G Insight: AI-Powered Smart Contract Auditor\n\n\u003e **Empowering decentralized security with AI-driven audits and 0G's modular infrastructure.**\n\n0G Insight is a modular, AI-native platform designed to provide instant, high-quality smart contract security audits. By combining advanced Large Language Models (LLMs) with 0G's decentralized storage and compute layers, we offer a scalable, transparent, and verifiable way to secure the Web3 ecosystem.\n\n---\n\n## 🚀 Overview\n\n**0G Insight** allows developers and users to analyze smart contracts by simply providing their on-chain address. The platform fetches the source code, performs a deep security analysis using AI, and stores the results on a decentralized registry.\n\n### The Problem\nTraditional smart contract audits are expensive, time-consuming, and often centralized. In the fast-moving world of DeFi and AI-native applications, developers need immediate feedback, and users need a way to verify the safety of the contracts they interact with.\n\n### The Solution\n0G Insight democratizes security by:\n1.  **Instant Analysis:** Leveraging Llama 3 models for comprehensive security reports.\n2.  **Decentralized Caching:** Using **0G Storage** to create a permanent, millisecond-retrievable registry of audited contracts.\n3.  **Verifiable Inference:** Integrating **0G Compute** to ensure the integrity of the AI-driven audit process.\n\n---\n\n## 🛠️ 0G Integration\n\nThis project is built from the ground up to showcase the power of the 0G modular stack.\n\n### 🗄️ 0G Storage (KV Layer)\nWe utilize the **0G Storage KV Layer** as a decentralized cache and registry. \n- **Registry:** Every unique contract analysis is stored as a Key-Value pair, where the key is the hash of the network and address, and the value is the signed audit report.\n- **Efficiency:** This prevents redundant AI processing and API costs for previously analyzed contracts, providing instant results for the community.\n\n### 🖥️ 0G Compute\n0G Insight supports model inference through the **0G Compute Network**.\n- **Execution:** Security analyses can be routed through 0G's decentralized GPU marketplace, ensuring that the computation is not dependent on centralized providers.\n- **Future:** Moving towards \"Sealed Inference\" to protect proprietary audit logic and ensure the audit wasn't tampered with.\n\n---\n\n## ✨ Key Features\n\n-   **Multi-chain Support:** Analyze contracts across Ethereum, Base, Polygon, and more.\n-   **Security Reports:** Detailed JSON-formatted reports covering risk levels, red flags, and actionable suggestions.\n-   **High Performance:** Millisecond-level queries for cached audits via 0G KV nodes.\n-   **Clean UI:** Built with Next.js 15+, Shadcn UI, and Tailwind CSS for a modern, responsive experience.\n\n---\n\n## 🗺️ Roadmap \u0026 Future Vision\n\n-   **[ ] Bring Your Own Key (BYOK):** Allow users to select and add their own AI API keys (OpenAI, Anthropic, Groq, etc.) for personalized analysis.\n-   **[ ] 0G Persistent Memory:** Integrate long-context memory to \"remember\" previous vulnerabilities across different versions of the same contract.\n\n\n---\n\n## ⚙️ Local Deployment\n\n### Prerequisites\n-   Node.js 20+\n-   A 0G Testnet Private Key (for storage operations)\n-   API Keys for Etherscan and Groq (or 0G Compute)\n\n### Setup\n1.  **Clone the repository:**\n    ```bash\n    git clone https://github.com/your-repo/0g-insight.git\n    cd 0g-insight\n    ```\n\n2.  **Install dependencies:**\n    ```bash\n    npm install\n    ```\n\n3.  **Environment Variables:**\n    Create a `.env.local` file:\n    ```env\n    # 0G Configuration\n    PRIVATE_KEY=your_0g_testnet_private_key\n    NEXT_PUBLIC_0G_KV_NODE=https://kv-rpc-testnet.0g.ai\n    NEXT_PUBLIC_0G_STORAGE_INDEXER=https://indexer-storage-testnet-turbo.0g.ai\n\n    # AI Providers\n    GROQ_API_KEY=your_groq_key\n    ZERO_G_COMPUTE_API_KEY=your_0g_compute_key\n    ZERO_G_COMPUTE_BASE_URL=https://router-api.0g.ai/v1\n\n    # Network Explorers\n    ETHERSCAN_API_KEY=your_etherscan_key\n    ```\n\n4.  **Run the development server:**\n    ```bash\n    npm run dev\n    ```\n\n---\n\n## 🔗 0G Integration Proof\n\n-   **0G Storage Contract (Flow):** `0x22E03a6A89B950F1c82ec5e74F8eCa321a105296`\n-   **0G Insight Registry Stream ID:** `0x960f4886616428751502422530132b9845353596702336336430346261313035` (keccak256 of \"0g-insight-registry-v1\")\n-   **Demo Video:** [Link to Video]\n-   **Public X Post:** [Link to X Post]\n\n---\n\n## 📄 License\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-araujo%2F0g-insight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev-araujo%2F0g-insight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-araujo%2F0g-insight/lists"}