All projects

CRECopilot

AI-native workspace for generating, validating, and safely simulating Chainlink CRE workflows.

CRE & AI

What it is

What is it? CRECopilot is an AI-native developer workspace that empowers teams to instantly generate, validate, simulate, and audit CRE workflows using simple natural language prompts.
How it works: A developer describes their intent (e.g., "Monitor ETH/USD daily and log it on Sepolia") in our Next.js frontend UI. The Node.js validation backend then scaffolds the exact TypeScript workflow using an LLM. It aggressively parses the generated Abstract Syntax Tree (AST) to ensure the code adheres to secure, sandboxed CRE constraints (e.g., accessing confidential HTTP or CCIP via ctx capabilities). The workflow is then deterministically simulated using the local Chainlink cre-cli, and metadata is stably anchored on-chain to provide an immutable audit trail.
What problem it solves: Developing complex automations within the Chainlink Runtime Environment involves a steep learning curve regarding restrictive sandbox limitations, capability-based APIs (secrets management, cross-chain messaging), and deterministic execution flows. CRECopilot eliminates this friction, enabling developers to build, thoroughly test, and confidently deploy enterprise-grade smart contract automation without constantly wrestling with documentation or local environment roadblocks.

How it Works

CRECopilot is built as a full-stack, AI pipeline directly integrated with the Chainlink CRE tooling:

  • Frontend (Next.js & TailwindCSS): A visually compelling, guided UI for prompt creation and workflow deployment, integrated with wagmi for wallet connection.
  • Backend Validation Engine (Node.js/Express): Interacts with an LLM (Gemini Flash Lite via OpenRouter) to write the code. Crucially, it parses the output into an Abstract Syntax Tree (AST) to validate against CRE sandboxing policies, aggressively filtering out unauthorized Node.js global calls.
  • Simulation Environment (cre-cli): The backend bridges directly with the local Chainlink workspace. It orchestrates non-interactive simulations, mocking triggers (Cron, EvmLog, HttpTrigger) and streaming the execution results back to the frontend.
  • On-chain Logging: Deployed via Hardhat to the Sepolia testnet, a smart contract (WorkflowLog.sol) anchors generated workflow hashes to create a verifiable provenance record for institutional or DAO auditability.

Links

Created by

  • Femi Asifat
  • Richard Omotayo