frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Automatically add missing "async/await" keywords to your TypeScript code

https://github.com/stanNthe5/typescript-autoawait
7•theThree•11mo ago

Comments

bastawhiz•11mo ago
Is this a problem that people actually have?
xeromal•11mo ago
Fun side project man!
primitivesuave•11mo ago
I took a peek at the implementation - I think this only works for a case where the typing explicitly contains the string "Promise". For example, I don't think it would work if I use `SomeInterface["some_promise_key"]` or might incorrectly add an async if I use `Awaited<Promise<...>>`.

I think what you're trying to build might be best served by Typescript's VFS - https://www.npmjs.com/package/@typescript/vfs. You can load the local files into an in-memory type system, and quickly extract async/await hints that might be more useful for a typical TS developer. I think there's a lot of really interesting static analysis you could do to improve async/await safety, as it certainly leads to issues from time to time.

joshstrange•11mo ago
I do not want to be mean but I think you'd be much better served with ESLint rules to yell at you when you don't await when you should or do when you shouldn't.

This should _not_ be an automatic operation since it can change behavior in ways that will be unclear to the developer (completely undoing any gain from them being added automatically).

theThree•11mo ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•11mo ago
I created a ticket, using comments is not necessary because there is already the `void` syntax for when you don't want to wait:

https://github.com/stanNthe5/typescript-autoawait/issues/1

nextweek2•11mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

1•taguniversalsw•17s ago

The Road to Responsive IntelliJ-Based IDEs

https://blog.jetbrains.com/platform/2026/04/road-to-responsive-ides/
1•saikatsg•1m ago•0 comments

Show HN: RepoGauge – save token costs and compare agents on your own repos

https://repogauge.org
1•siliconc0w•3m ago•0 comments

For founders who feel like nobody's watching

https://autheona.com/tools/audience-visualizer/
1•lasgawe•5m ago•1 comments

Show HN: Smith – AI Agent Orchestrator

https://getsmith.dev/
1•netnameus•5m ago•0 comments

Shift-Left Code Quality: Inside DebtDrone CLI 2.0.0 and a Dual-Mode Architecture

https://www.endrilickollari.com/blog/debtdrone-cli-2-release
1•endrilickollari•5m ago•0 comments

Discover More of the Fediverse with Tags.pub

https://activitypub.blog/2026/04/02/discover-more-of-the-fediverse-with-tags-pub/
1•ZacnyLos•7m ago•0 comments

Iceland Just Got Its First Mosquitoes

https://gizmodo.com/iceland-just-got-its-first-mosquitoes-scientists-arent-ready-for-what-comes-n...
1•speckx•8m ago•0 comments

KGB Building and Cells

https://www.dark-tourism.com/index.php/941-riga-kgb-building
1•jruohonen•10m ago•0 comments

Finance ministers and top bankers raise serious concerns about Mythos model

https://www.bbc.com/news/articles/c2ev24yx4rmo
1•reconnecting•11m ago•1 comments

Ask HN: How do you search the web programmatically these days?

1•coreyp_1•11m ago•0 comments

Show HN: web-pinentry: a pinentry program for decrypting server-side passwords

https://codeberg.org/seanhly/web-pinentry
1•seanhly•12m ago•0 comments

AI in Onboarding

https://app.soon.works/create
1•Olaf_Soon•13m ago•0 comments

A List of Zettelkasten Resources

https://github.com/fhoehl/awesome-zettelkasten
1•marukodo•13m ago•0 comments

Tesla tells HW3 owner to 'be patient' after 7 years of waiting for FSD

https://electrek.co/2026/04/17/tesla-hw3-owners-be-patient-7-years-fsd/
3•breve•14m ago•0 comments

Show HN: Arc Browser UI Skeleton (Next.js)

https://arc-ui-skeleton.vercel.app/
2•SpyCoder77•15m ago•0 comments

Ask HN: I built a Blox Fruits trading tool – feedback?

1•BFV•15m ago•0 comments

Year of the IPv6 Overlay Network

https://www.defined.net/blog/year-of-the-ipv6-overlay-network/
1•stock_toaster•16m ago•0 comments

Choosing Entrepreneurship over a Corporate Career

https://levels.io/choosing-entrepreneurship/
2•tylerdane•16m ago•1 comments

Smoglandia: Smog was killing L.A., and a Caltech chemist found the murder weapon

https://www.latimes.com/california/story/2026-03-26/smoglandia-smog-was-killing-l-a-caltech-chemi...
1•PaulHoule•16m ago•0 comments

Optionality Curse

https://www.karanjanthe.me/posts/optionality-curse/
1•KMJ-007•16m ago•1 comments

Retro Is the Future

https://blog.absurdpirate.com/retro-is-the-future/
1•speckx•16m ago•0 comments

Easy code and work AI agent system: auto, asynchronous, concurrency, efficiently

https://github.com/vcaesar/codg
2•veni0•18m ago•1 comments

Tesla Cybertruck sales inflated: SpaceX bought 1,279 units

https://electrek.co/2026/04/16/tesla-cybertruck-spacex-1279-q4-sales-inflated/
2•doener•18m ago•0 comments

Django Admin–style panel for NestJS (TypeORM/Prisma, filters, actions)

https://github.com/xtrinch/nestjs-dj-admin
1•xtrinch•18m ago•0 comments

European Directory and Alternatives

1•EuropeanSwitch•19m ago•0 comments

Ryan Podolsky

https://www.roughcutentertainment.com
1•RyanPodolsky•19m ago•0 comments

A more efficient implementation of Shor's algorithm

https://lwn.net/SubscriberLink/1066156/80d0f285132960fb/
1•zacwest•21m ago•0 comments

Why are residential proxy providers charging per GB?

1•maxalbarello•23m ago•0 comments

TileTensor Part 1 – Safer, More Efficient GPU Kernels

https://www.modular.com/blog/tiletensor-part-1-safer-more-efficient-gpu-kernels
1•matt_d•24m ago•0 comments