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•12mo ago

Comments

bastawhiz•12mo ago
Is this a problem that people actually have?
xeromal•12mo ago
Fun side project man!
primitivesuave•12mo 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•12mo 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•12mo 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/

CSS Reboot Day (May 1, 2026)

https://holidaytoday.org/css-reboot-day/
1•bariumbitmap•9m ago•0 comments

Microsoft's Xbox mode is now available for all Windows 11 PCs

https://www.theverge.com/news/921582/microsoft-xbox-mode-windows-11
1•fortran77•11m ago•0 comments

Show HN: Open-Source FHIR –> OMOP Pipeline

https://forge.foxtrotcommunications.net/
1•brady_bastian•15m ago•0 comments

Wirken: Secure AI agent gateway. Encrypted vault. Single static binary

https://github.com/gebruder/wirken
1•thunderbong•18m ago•0 comments

High Housing Costs Are Pushing Foreclosures to a Six-Year High

https://www.wsj.com/economy/housing/high-housing-costs-are-pushing-foreclosures-to-a-six-year-hig...
2•petethomas•19m ago•1 comments

The feed doesn't know you, and YouTube refuses to let you browse

https://evilgeniuslabs.ca/blog/the-feed-doesnt-know-you
2•andsoitis•23m ago•0 comments

Ask HN: Forced into Gemini on Google Account?

1•hysan•30m ago•2 comments

Ask HN: How do you assess and recruit developers in 2026?

1•andrewstuart•34m ago•0 comments

I vibecoded my dream game, GeoGuesser for guns, and its making money

https://gunguesser.com
3•salad_vr•41m ago•1 comments

Coding plan pricing comparisons based on actual usage

https://sites.diy/blog/2026-05-01-coding-plan-comparisons/
3•bilalba•42m ago•0 comments

An Unreleased Lyme Disease Vaccine Is Sparking False Conspiracy Theories

https://www.motherjones.com/politics/2026/05/lyme-disease-vaccine-conspiracy/
2•pulisse•43m ago•0 comments

Gravity's role in quantum state reduction [pdf]

https://image.sciencenet.cn/olddata/kexue.com.cn/upload/blog/file/2010/8/201081019170575880.pdf
1•__patchbit__•47m ago•0 comments

Internet Classism: How We Know You're Poor and Lame Online

https://braunandbrains.substack.com/p/internet-classism-how-we-know-youre
2•anonymouscaller•54m ago•1 comments

When hard drives were still huge: The Quantum Bigfoot turns 30

https://www.heise.de/en/news/When-hard-drives-were-still-huge-The-Quantum-Bigfoot-turns-30-112791...
1•croes•57m ago•1 comments

Tesla reveals $573M web of transactions between Elon Musk's companies

https://electrek.co/2026/05/01/tesla-tsla-web-transactions-musk-companies-spacex-xai-10ka-2025/
3•breve•58m ago•0 comments

Fixing Up CopyFail on Alpine

https://astr.al/notes/2026-04-29_copyfail/
1•potus_kushner•1h ago•0 comments

I built a way to search for people by intent

https://www.try-sytra.com/
2•bryzgalov•1h ago•1 comments

Capacity Efficiency at Meta

https://engineering.fb.com/2026/04/16/developer-tools/capacity-efficiency-at-meta-how-unified-ai-...
1•geoffbp•1h ago•0 comments

Sun Pharma is marrying Organon

https://finshots.in/markets/sun-pharma-is-marrying-organon/
1•vismit2000•1h ago•0 comments

Withastro/flue: The sandbox agent framework

https://github.com/withastro/flue
1•ankitg12•1h ago•0 comments

Sam Altman says OpenAI doesn't want to replace you with AI

https://www.neowin.net/news/sam-altman-says-that-openai-doesnt-want-to-replace-you-with-ai/
1•bundie•1h ago•1 comments

Amnitex: Lossless memory layer for AI coding assistants

https://github.com/Amnibro/amnitex
2•amnibro7•1h ago•0 comments

Spring House

https://en.wikipedia.org/wiki/Spring_house
3•thunderbong•1h ago•0 comments

Create an MP4 video of a web page scrolling at a steady speed

https://github.com/upenn/web-scroll-video
2•shawnzam•1h ago•1 comments

Show HN: Local Lock Down Lobe Chat Setup

2•I_like_tomato•1h ago•0 comments

Governor – a Claude Code plugin to reduce token/context waste

https://github.com/0xhimanshu/governor
3•mantiscore•1h ago•1 comments

I built the Playwright for desktop apps. 80% token savings

https://github.com/lahfir/agent-desktop
3•lahfir•1h ago•0 comments

Flexible OLED NUSA Infiltrator Jacket (Cyberpunk 2077 Cosplay) [video]

https://www.youtube.com/shorts/0cv3ZvFkxwU
1•starkparker•1h ago•0 comments

Welcome to Actual Computer

https://actual.inc/company/blog/introducing-actual-computer
2•ray__•1h ago•0 comments

Hermit – uniform tooling for Linux and Mac

https://github.com/cashapp/hermit
2•zikani_03•1h ago•1 comments