Today I started experimenting with Tree-sitter.

I had heard the name before, but I had never actually used it. My goal was simple: take a TypeScript file, parse it, and understand what Tree-sitter sees that a normal text search does not.

The file I used was a tiny NestJS controller:

import { Controller, Get, UseGuards } from '@nestjs/common';

import { AuthGuard } from './auth.guard';