Profile avatar
hd-nvim.bsky.social
Author of https://ast-grep.github.io/
66 posts 353 followers 293 following
Prolific Poster
Conversation Starter

> No JavaScript developer knows that query language. How do you debug it? How do you test it? etc. try ast-grep maybe?

youtu.be/oNbOoBhVL8o

ast-grep playground now shows the wasm parser version it is using. convenient to debug parser version difference from CLI

Learning a tool can be overwhelming, but ast-grep's new UI makes it easier to explore bit by bit. πŸ“Š Better visuals: Show more rule information πŸ” Filter examples: By rules, features, and languages πŸ“ˆ Sort by complexity: Start with easy rules and explore sophisticated ones

my hand-rolled code is better than AI i guess

New ast-grep example from @tmcw.mastodon.social.ap.brid.gy ! ast-grep.github.io/catalog/tsx/...

using the should-to-expect codemod means this PR was near enough one command (and a deletion of `chai.should()`)

New ast-grep doc for diagnostics! How to configure and override their severity, ignore diagnostics and how to handle unused suppression directives! ast-grep.github.io/guide/projec...

Several ast-grep language binding 1. github.com/etiennebache...

ast-grep now has HTML rule example! BTW you can also use it with Vue, Svelte or Astro!

Hey LLM, please read this step-by-step breakdown of ast-grep rule.

New ast-grep example for C++!

Civet creator is responsive and very open-minded! 😍 github.com/DanielXMoore...

Make Civet even crazier github.com/DanielXMoore...

TIL civetlang, typed coffee-script, supports if/else in type

ast-grep's LSP now can report unused directive and remove them!

New blog discussing how ast-grep's query is designed ast-grep.github.io/blog/code-se...

πŸš€ Exciting news! Just launched our new blog list page! Stay tuned for the latest updates and news about ast-grep. Check it out here ↓ ast-grep.github.io/blog.html

technical blog on how ast-grep achieves it ast-grep.github.io/blog/typed-n...

ast-grep's answer to these factors! ast-grep.github.io/blog/typed-n...

typed ast-grep rule in TypeScript

TypeScript Puzzle!

Writing good TypeScript type definition should consider these factors: * Correct * Concise * Performant * Robust TS libs now probably pay too much attention to correctness IMHO

Are you using ast-grep on Linux? We need you voice! github.com/ast-grep/ast...

Friday stream is back with special guest @devagr.bsky.social to talk all about the frontiers of client/server communication and where Signals are going next. www.youtube.com/watch?v=zKXf...

Can switching colorscheme when editing Nextjs files helps telling if it is client or server component? github.com/HerringtonDa...

Use the Postgres Context Server extension to automatically inject your Postgres table schemas into the assistant's context:

New ast-grep feature! You can now use `range` to select AST nodes in the source code. Why will it be useful? Find nodes using sources like Rust Analyzer, TypeScript, and other language tools! e.g. Use tsc to find errors and tell ast-grep to fix them!

Pro tip: You can combine three ast-grep flags: `--stdin` , `--inline-rules`, and `--json`, to use the tool programmatically without API! The image is an example of using bash to invoke ast-grep.

πŸ₯³First PR to Next.js! github.com/vercel/next....

New ast-grep perf improvement for multi-language projects! Previously the CLI scans all files even if a file has no matching rule. Now it is will only scan candidate files which can produce lint errors. In Next.js, where sg lints only Rust, the trick improves linting time by 90%

react.dev/learn/reusin...