{"id":52005143,"url":"https://github.com/smartcontractkit/cre-templates","last_synced_at":"2026-07-31T14:30:47.580Z","repository":{"id":318570752,"uuid":"1068027811","full_name":"smartcontractkit/cre-templates","owner":"smartcontractkit","description":null,"archived":false,"fork":false,"pushed_at":"2026-07-09T16:03:01.000Z","size":20007,"stargazers_count":37,"open_issues_count":7,"forks_count":36,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-09T18:07:06.064Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smartcontractkit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","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":null,"dco":null,"cla":null}},"created_at":"2025-10-01T18:38:54.000Z","updated_at":"2026-07-08T10:10:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"9076a304-7f91-4268-a4cf-b5bee636d100","html_url":"https://github.com/smartcontractkit/cre-templates","commit_stats":null,"previous_names":["smartcontractkit/cre-templates"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/smartcontractkit/cre-templates","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartcontractkit%2Fcre-templates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartcontractkit%2Fcre-templates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartcontractkit%2Fcre-templates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartcontractkit%2Fcre-templates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smartcontractkit","download_url":"https://codeload.github.com/smartcontractkit/cre-templates/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartcontractkit%2Fcre-templates/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":36122275,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-31T02:00:06.731Z","response_time":112,"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-07-31T14:30:46.830Z","updated_at":"2026-07-31T14:30:47.550Z","avatar_url":"https://github.com/smartcontractkit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv style=\"text-align:center\" align=\"center\"\u003e\n    \u003ca href=\"https://chain.link\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://raw.githubusercontent.com/smartcontractkit/chainlink/develop/docs/logo-chainlink-blue.svg\" width=\"225\" alt=\"Chainlink logo\"\u003e\n    \u003c/a\u003e\n\n[![License](https://img.shields.io/badge/license-MIT-blue)](https://github.com/smartcontractkit/cre-templates/blob/main/LICENSE)\n[![CRE Home](https://img.shields.io/static/v1?label=CRE\u0026message=Home\u0026color=blue)](https://chain.link/chainlink-runtime-environment)\n[![CRE Documentation](https://img.shields.io/static/v1?label=CRE\u0026message=Docs\u0026color=blue)](https://docs.chain.link/cre)\n\n\u003c/div\u003e\n\n# CRE Templates\n\nA curated set of ready-to-run examples for the **Chainlink Runtime Environment (CRE)**:\n\n- **Building Blocks** – tiny, focused workflows that teach one concept at a time (on-chain reads, off-chain calls, secrets, scheduling, etc.).\n- **Starter Templates** – opinionated, end-to-end workflows that combine multiple capabilities and look closer to real-world use cases.\n\nUse these as references or starting points to compose your own production workflows.\n\n---\n\n## Table of Contents\n\n- [Repository Structure](#repository-structure)\n- [When to Use Which](#when-to-use-which)\n- [Contributing](#contributing)\n- [License](#license)\n\n---\n\n## Repository Structure\n\n### Building Blocks\nSmall, focused examples. Each directory includes its own README.\n\n- **`building-blocks/kv-store`** – Read/modify/write a value in **AWS S3** using SigV4-signed HTTP requests, CRE secrets, and a **consensus read → single write** flow.\n- **`building-blocks/read-data-feeds`** – Read `decimals()` and `latestAnswer()` from **Chainlink Data Feeds** on a schedule; includes ABI/bindings and RPC config examples.\n\n### Starter Templates\nMore complex, end-to-end workflows. Each directory includes its own README (some marked **WIP**).\n\n- **`starter-template/custom-data-feed`** – Fetch off-chain data (HTTP) and **push updates on-chain**; shows cron scheduling, secrets, bindings, and chain writes.\n- **`starter-template/bring-your-own-data`** – NAV (Net Asset Value) \u0026 PoR (Proof of Reserve) templates for publishing your own data on-chain.\n- **`starter-template/multi-chain-token-manager`** – Orchestrate token operations and state across **multiple chains**.\n- **`starter-template/sports-resolution`** – Resolve sports game outcomes on-chain with an event-driven workflow, HTTP data sources, aggregation, and signed reports.\n\n---\n\n## When to Use Which\n\n* **Building Blocks**\n  Use these when you want to learn a **single concept quickly** (e.g., secrets + HTTP signing, reading a data feed, cron triggers). Great for copy/paste into your project.\n\n* **Starter Templates**\n  Choose these when you want a **runnable reference architecture** that strings together multiple steps (off-chain + on-chain), includes contracts/bindings, and mirrors real workflows.\n\n---\n\n## Contributing\n\nWe welcome contributions of new CRE workflow templates! If you have a useful workflow that others could benefit from, here's how to contribute:\n\n1. **Fork the repository** and create a new branch for your template.\n2. **Add your workflow template** in the appropriate directory:\n   - `building-blocks/` – for small, focused examples that teach a single concept\n   - `starter-template/` – for more complete, end-to-end workflows\n3. **Include a README** in your template directory explaining:\n   - What the workflow does\n   - Prerequisites and setup instructions\n   - How to run and test it\n4. **Submit a Pull Request** with a clear description of your template and its use case.\n\nOur team will review your PR and provide feedback. Once approved, we'll merge it into the main branch.\n\n---\n\n## License\n\nMIT — see the repository's [LICENSE](https://github.com/smartcontractkit/cre-templates/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartcontractkit%2Fcre-templates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmartcontractkit%2Fcre-templates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartcontractkit%2Fcre-templates/lists"}