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/

Verifying Rust Programs

https://github.com/AeneasVerif/aeneas
1•wazHFsRy•1m ago•0 comments

Claudectl – kubectl for Claude Code instances

https://github.com/mercurialsolo/claudectl
1•mercurialsolo•2m ago•0 comments

Show HN: MCP is for tools. A2A is for agents. What's for websites?

https://www.rtrvr.ai/blog/agent-web-protocol-stack
2•quarkcarbon279•8m ago•0 comments

Ask HN: Anyone using Nostr as a lightweight back end/DB for rapid prototyping?

1•wasimsk•9m ago•0 comments

Ecolibrium – Blueprint for peaceful post-scarcity transition

https://github.com/simonlpaige/ecolibrium
1•larrytheworm•10m ago•0 comments

Gen Z's fading AI hype

https://www.axios.com/2026/04/09/ai-gen-z-polling-gallup
1•1vuio0pswjnm7•12m ago•0 comments

Lightweight self-hosted internet radio management

https://github.com/tchovi/AirBoneRadio
1•Indigenism•14m ago•1 comments

Greece moves to protect minors from social media with new ban for kids under 15

https://www.latimes.com/world-nation/story/2026-04-09/greece-moves-to-protect-minors-from-social-...
1•1vuio0pswjnm7•14m ago•0 comments

Ask HN: What should I do with my app? 130 downloads 3 real subscribers

1•oyaa52•15m ago•0 comments

EPA Moves to Ease Coal Ash Regulations for Power Plants

https://www.law.com/nationallawjournal/2026/04/10/epa-moves-to-ease-coal-ash-regulations-for-powe...
1•1vuio0pswjnm7•18m ago•0 comments

Models self-report difference between RLHF trained responses and base cognition

https://github.com/Habitante/pine-trees/blob/main/docs/claude_code_interview.md
1•daniel-navarro•22m ago•0 comments

TigerBeetle: A Trillion Transactions [video]

https://www.youtube.com/watch?v=y2_BqkKTbD8
2•adityaathalye•23m ago•1 comments

Strong feeling: we are in a folded AI reality

1•Jet_Xu•24m ago•0 comments

Open source was never about trust

https://opensourcesecurity.io/2026/04-never-about-trust/
1•jruohonen•24m ago•0 comments

Chess – An Analogy for Conversation

https://talk.bradwoods.io/blog/chess
1•bradwoodsio•24m ago•0 comments

Founders Need to Be Ruthless When Chasing Deals

https://steveblank.com/2024/04/16/founders-need-to-be-ruthless-when-chasing-deals/
1•tie-in•29m ago•0 comments

My baby deer plushie told me that Mitski's dad was a CIA operative

https://www.theverge.com/ai-artificial-intelligence/910008/fawn-friends-ai-companion
1•greesil•30m ago•0 comments

US appeals court declares 158-year-old home distilling ban unconstitutional

https://www.theguardian.com/law/2026/apr/11/appeals-court-ruling-home-distilling-ban-unconstituti...
28•Jimmc414•30m ago•11 comments

Catalog of AI Knowledge Retrieval, Memory and RAG Systems

https://github.com/machinarii/ai-knowledge-systems-catalog
2•datalater•31m ago•0 comments

Method to reverse cellular ageing is about to be tested in humans

https://www.nature.com/articles/d41586-026-01024-7
4•jawiggins•32m ago•0 comments

US – Iran negotiations end with no deal reached

https://www.nytimes.com/live/2026/04/11/world/iran-war-trump-talks-pakistan
24•chirau•49m ago•11 comments

No deal reached in Iran – US talks

5•chirau•51m ago•0 comments

Emergency Prices: How Private Equity Captured the Ambulance Market

https://www.thebignewsletter.com/p/code-red-why-your-city-cant-affordor
2•walterbell•56m ago•0 comments

The Center Has a Bias

https://lucumr.pocoo.org/2026/4/11/the-center-has-a-bias/
2•theshrike79•57m ago•0 comments

Code on Incus: Security-Hardened Container Runtime for AI Coding Agents

https://github.com/mensfeld/code-on-incus
1•inktype•58m ago•0 comments

Find spaces to work and remote workers to connect with

https://opentotalk.it
1•alainrk•59m ago•0 comments

What comes after Open Source?

1•fxtentacle•1h ago•0 comments

Jonathan Blow on Italo Calvino and Video Games [video]

https://www.youtube.com/watch?v=vI16Txc7x1s
1•nathancspencer•1h ago•0 comments

Aids Info Disk: a playthrough of the first-ever ransomware

https://marnetto.net/2026/03/14/aids-info-disk
2•TMWNN•1h ago•0 comments

Scrum Master Interview Questions for the AI Era

https://age-of-product.com/10-scrum-master-interview-questions-ai-era/
1•swolpers•1h ago•0 comments