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/

Text-to-CAD

https://github.com/earthtojake/text-to-cad
1•softservo•1m ago•0 comments

This photo has no color – how Lippmann Plates work

https://www.youtube.com/watch?v=-DyrBDsKA5s
1•freetime2•2m ago•0 comments

Fraude.Codes

https://fraude.codes/
1•dvdlrg•5m ago•0 comments

A Sum of Errors

https://lyonhe.art/a-sum-of-errors/
2•8organicbits•14m ago•1 comments

Psychology of How Dogs Feel Your Love [video]

https://www.youtube.com/watch?v=JaRB1wEUpIo
2•gmays•17m ago•0 comments

Enabling privacy-preserving AI training on everyday devices

https://news.mit.edu/2026/enabling-privacy-preserving-ai-training-everyday-devices-0429
2•gnabgib•18m ago•0 comments

Newbrew: TUI for discovering recent Homebrew formula additions

https://github.com/matt-riley/newbrew
1•sea-gold•19m ago•0 comments

State of the AI Frontier, April 2026

https://gertlabs.com/blog/state-of-frontier-april-2026
5•gertlabs•19m ago•1 comments

Cardboard Hinge Masterclass [video]

https://www.youtube.com/watch?v=TOm8APHrVas
1•vpribish•20m ago•0 comments

Bringing Fusion onto Claude for Creative Work

https://aps.autodesk.com/blog/bringing-fusion-claude-creative-work
2•nsoonhui•22m ago•0 comments

CVE-2026-31431 (Copy Fail): Linux Kernel LPE

https://securityboulevard.com/2026/04/cve-2026-31431-copy-fail-linux-kernel-lpe/
2•dnemmers•24m ago•1 comments

What is Thundr? Omegle's replacement, warts and all

https://mashable.com/article/what-is-thundr-omegle-replacement-warts-and-all
1•gnabgib•30m ago•0 comments

Agentic Harness Engineering

https://arxiv.org/abs/2604.25850
3•Anon84•32m ago•0 comments

Israeli forces raid Global Sumud Flotilla boats in international waters

https://www.aljazeera.com/news/2026/4/29/israeli-military-speedboats-block-gaza-bound-aid-ship
4•0x54MUR41•42m ago•1 comments

Spite Apps: The Latte Larry's of Apps

https://sxp.studio/blog/spite-apps-the-latte-larrys-of-apps
1•tasoeur•42m ago•0 comments

Show HN: KeeWebX – KeePass that runs from a double-clicked HTML file

https://keewebx.app/app?demo=1
1•edxtz•48m ago•0 comments

AI Skills as loader spec, not prompts – why the architecture changes everything

https://internals.laxmena.com/p/what-youre-actually-writing-when
4•laxmena•48m ago•0 comments

Anomaly detection of private jet flights

https://ews.kylemcdonald.net
2•kcimc•49m ago•0 comments

AI Status (Mac App)| FOSS

https://github.com/Jaecobd1/ai-status
2•jaecob•52m ago•0 comments

On the Future of Apple’s Vision Platform

https://daringfireball.net/2026/04/on_the_future_of_apples_vision_platform
10•ffin•53m ago•2 comments

US falls below Ukraine in press freedom as global autocracy takes hold

https://arstechnica.com/tech-policy/2026/04/us-falls-below-ukraine-in-press-freedom-as-global-aut...
9•canucker2016•54m ago•1 comments

What We're Missing About Generative AI

https://onlinelibrary.wiley.com/doi/10.1155/hbe2/2320511
2•yousufsaif•54m ago•0 comments

Show HN: LLM-Powered News –> Event Map, Timeline, and Analysis

https://conflictintelligence.ai/
1•nclin_•1h ago•0 comments

Ask HN: How are people testing while using agent orchestrators?

1•spmartin823•1h ago•0 comments

Post-quantum encryption for Cloudflare IPsec is generally available

https://blog.cloudflare.com/post-quantum-ipsec/
1•linolevan•1h ago•0 comments

Intercom-client NPM package and lightning PyPI packages compromised

https://opensourcemalware.com/blog/mini-shai-hulud
2•6mile•1h ago•1 comments

ClawIRC – IRC Chat for Agents

https://clawirc.com/
6•randomfrom•1h ago•0 comments

Tell HN: Fossil SCM Server Overloaded

3•thunderbong•1h ago•0 comments

$500M for Virtual Biology Initiative, Funded by Zuckerbergs

https://biohub.org/news/virtual-biology-initiative/
21•warbaker•1h ago•4 comments

What Is Authorship When Machines Can Write?

https://thereader.mitpress.mit.edu/what-is-authorship-when-machines-can-write/
3•pseudolus•1h ago•1 comments