As a data project, duneanalytics/spellbook has picked up 1.5k stars on GitHub (Python). SQL views for Dune
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Welcome to Spellbook. Cast a magical incantation to tame the blockchain.
TL;DR
Before contributing: Spellbook accepts selective contributions. To avoid wasted effort, please raise a GitHub issue with the title prefix [CONTRIBUTION] describing your proposed changes before writing code. The Dune team will review and confirm if we'll accept the contribution.
Exception: Small bug fixes can be submitted directly as PRs without prior approval.
Priority: PRs from Dune enterprise customers receive priority review.
PRs from contributors who aren't customers are accepted on a case by case basis, depending on whether datasets benefit the broader community (as an example, contributions to dex.trades are welcome)
Questions about how Spellbook works? Check the docs directory.
Spellbook uses sub-projects to organize different datasets (dex, nft, solana, etc.).
Setup: Follow dev environment setup to get started with dbt locally.
Questions? Join #spellbook on Discord.
Your spellbook contributions are your own IP. See Contributor License Agreement for details.
🚀 Enterprise Customers: Use Your Own dbt Project
If you're a Dune enterprise customer, you don't need to contribute to Spellbook. Instead, you can run your own data transformation projects directly on DuneSQL using the dbt Connector.
What it is: Run dbt projects on top of DuneSQL—read from any Dune dataset and write results into managed tables within your org namespace. All writes are metered and private by default, stored securely by Dune.
Why it matters:
No PR bottlenecks – Ship on your own schedule without waiting for Spellbook reviews
Keep it private – Your logic and data stay within your org, giving you full autonomy
Full dbt compatibility – Use your existing dbt workflows and tooling
📖 Read the dbt Connector documentation to get started.
👉 Contact us for a demo and to get set up with your own dbt project.
Table of Contents
Enterprise Customers: Use Your Own dbt Project
Documentation
Introduction
Sub-projects
How to contribute
Submitting a contribution
Testing your spell
Setting up your dev environment
Using dbt to write spells
Documentation
New to Spellbook or using AI tooling to navigate the repo? Start with these docs:
Repository navigation - GitHub issues, PRs, discussions, and Actions
Best practices - Development workflow, performance, and incremental model guidance
Model overview - Model layout, naming, materialization, and schema YAML expectations
Model config block - Required dbt model config patterns
Tests - Required model, seed, and generic test patterns
CI overview - How Spellbook PR CI runs and where to find test tables
FAQ and common issues - Common contributor and CI problems
AI agents should also read AGENTS.md for shared repository instructions. Task-specific workflows live in .claude/skills/ so Claude Code, opencode, and Cursor can use the same skill files.
Introduction
Spellbook is Dune's interpretation layer, transforming raw blockchain data into clean, usable datasets. It's a dbt project where each model is a SQL query that handles dependencies and builds tables from raw and decoded tables.
While historically community-driven, Spellbook now accepts selective contributions. The docs directory contains design principles and best practices for contributors.
Sub-projects
Spellbook is organized into multiple dbt sub-projects within dbt_subprojects/:
daily_spellbook - Default location for new spells, refreshed daily. Project-specific, standalone spells.
hourly_spellbook - Promoted spells with more frequent refreshes. Requires Dune team approval.
dex - DEX and DEX aggregator spells, including dex.trades.
nft - NFT-related spells.
solana - Solana-specific spells.
tokens - Token metadata, transfers, and balances.
See this discussion for more details.
How to contribute
Submitting a contribution
Before writing code, please create a GitHub issue with the title prefix [CONTRIBUTION] describing your proposed changes. Include:
High-level description of what you want to add/change
Which sub-project(s) it affects (dex, nft, etc.)
Why it would benefit the community
The Dune team will review and respond with whether we'll accept the contribution. This saves you from investing time in code that may not be merged.
Exception: Bug fixes can be submitted directly as PRs without prior approval. When reporting bugs, include:
Link to block explorer showing expected value
Dune query showing incorrect value
Scale of impact (number of rows, affected USD volume)
How does duneanalytics/spellbook compare to other Data projects?
duneanalytics/spellbook is tracked by TopGit in the Data category, with 1.5k GitHub stars and written in Python. Browse the Data topic page on TopGit to compare it against similar projects by stars and activity.
Is duneanalytics/spellbook open source?
TopGit's metadata for duneanalytics/spellbook does not record a license. Most public repositories on GitHub ARE open source, but the exact terms vary — verify by opening the LICENSE file directly.
What else is in the Data space?
duneanalytics/spellbook is tracked by TopGit under the Data category. Trending and Topics pages list peer repositories of comparable stars and language.
What is duneanalytics/spellbook?
duneanalytics/spellbook (duneanalytics/spellbook) is a Python project on GitHub. From the project's own README: SQL views for Dune
Where do I read more about duneanalytics/spellbook?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/duneanalytics/spellbook is the definitive source.
Why is duneanalytics/spellbook categorized under Data?
TopGit places duneanalytics/spellbook in the Data category based on its GitHub topics and description. Categories are assigned from real repository metadata, not editorial guesswork.
Read full README in the tab above.
Still deciding about spellbook?
One click hands the question to an AI along with this page — see what it says about spellbook.