Subgraph
A subgraph is a configuration that tells an indexing protocol how to collect, organize, and query blockchain data for an application.
In web3 development, a subgraph most often refers to a data indexing project used with The Graph protocol. It defines which smart contract events, transactions, or on-chain state changes should be watched, how that raw blockchain data should be transformed, and what queryable data model should be exposed. Developers describe this in files such as a manifest, schema, and mapping code, so applications can request blockchain data through a clean API instead of scanning blocks directly.
Subgraphs matter because blockchains are not optimized for complex, fast searches across historical data. A wallet, marketplace, analytics dashboard, or DeFi app may need to show token balances, trade history, NFT ownership, or protocol metrics in seconds. For example, instead of asking an Ethereum node to search every block for all trades on a decentralized exchange, a subgraph can index those trade events ahead of time and let the app query them much like a database. This makes user interfaces faster and development simpler, while still being based on publicly verifiable on-chain activity.
Other terms in Web3 & Development
Ethers.js
A JavaScript library that helps developers build apps that interact with Ethereum and other EVM-compatible blockchains.
Foundry
A fast Ethereum smart contract development toolkit used to build, test, debug, and deploy Solidity projects.
Full Node
A full node is software that stores and verifies a blockchain’s history and rules without relying on a third party.
Hardhat
A development framework for building, testing, debugging, and deploying Ethereum smart contracts and decentralized applications.