main.ts. See the packages overview for the full list of building blocks.
The quickest way to see a working Starknet squid is to bootstrap one from the USDC transfers example and inspect its heavily commented source:
Quickstart
Get a working Starknet indexer in 5 minutes.