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•1y ago

Comments

bastawhiz•1y ago
Is this a problem that people actually have?
xeromal•1y ago
Fun side project man!
primitivesuave•1y 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•1y 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•1y ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•1y 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•1y ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

Show HN: Free Tool to Analyze Content Security Policies

https://cspradar.com/tools/csp-analyser
1•itsdevdaniel•2m ago•0 comments

Iris: Local native Mac app for displaying your filesystem-based photo library

https://irisphotos.app/manifesto/
1•jonpurdy•2m ago•1 comments

First thing you see when Googling "OpenAI Codex app" is a fake malware website

https://twitter.com/vashchylau/status/2059995154199572843
1•vashchylau•3m ago•0 comments

Creating got easier. Meaning got harder

https://emot.substack.com/p/creating-got-easier-meaning-got-harder
1•emot•4m ago•0 comments

WinMerge 2.16.56.2 – A Windows tool for visual difference display and merging

https://github.com/WinMerge/winmerge/releases/tag/v2.16.56.2
1•neustradamus•4m ago•0 comments

'Hidden datacentre tax' costing Irish households millions

https://www.theguardian.com/technology/2026/may/28/irish-datacentres-household-bills-electricity
2•tzmlab•6m ago•0 comments

AI agents get their own phone directory built atop DNS

https://www.theregister.com/ai-ml/2026/05/28/ai-agents-get-their-own-phone-directory-built-atop-d...
1•Bender•6m ago•0 comments

Coding Agents in the Social Sciences

https://www.anthropic.com/research/coding-agents-social-sciences
2•rnmag•7m ago•1 comments

Comparisons as Predictable as the Sunrise

https://pudding.cool/2026/05/similes/
1•gmays•7m ago•0 comments

Proxmox Datacenter Manager 1.1

https://www.proxmox.com/en/products/proxmox-datacenter-manager/overview
1•neustradamus•7m ago•0 comments

What is the problem to which cognitive outsourcing is the solution?

https://markcarrigan.net/2026/05/27/what-is-the-problem-to-which-cognitive-outsourcing-is-the-sol...
2•speckx•7m ago•0 comments

Turn your PC, Mac, or Linux box into an AI server

https://github.com/Light-Heart-Labs/DreamServer
1•dreamserver•9m ago•0 comments

Lawmakers propose banning all U.S.-Chinese research collaborations

https://www.science.org/content/article/lawmakers-propose-banning-all-u-s-chinese-research-collab...
1•ceejayoz•11m ago•0 comments

Why AI-generated draw.io AWS diagrams have empty squares (and a fix)

https://github.com/vidanov/aws-architecture-diagram-skill
1•vidanov•11m ago•0 comments

Know Your Point C

https://pointc.co/know-your-point-c/
2•benwerd•11m ago•0 comments

How should we think about Starship?

https://mceglowski.substack.com/p/how-should-we-think-about-starship
1•simonebrunozzi•12m ago•0 comments

Bare: Small and modular JavaScript runtime for desktop and mobile

https://github.com/holepunchto/bare
1•janandonly•13m ago•0 comments

Show HN: Scan your AI agent's code for tool calls with no checks

https://github.com/Diplomat-ai/diplomat-agent-ts
1•jguarnelli•13m ago•0 comments

Malware dev tries to steal Claude users secrets NPM slop, leaks own GitHub token

https://www.theregister.com/cyber-crime/2026/05/27/supply-chain-brain-drain-npm-attacker-foolishl...
1•Bender•15m ago•0 comments

Taste Is Necessary but Not Sufficient When Working with Agents

https://www.ssp.sh/brain/having-taste-with-ai/
2•zazuke•15m ago•0 comments

Show HN: Open-source alternative to Codex Chronicle, using Apple's local OCR

https://github.com/familiar-software/familiar
2•talsraviv•16m ago•0 comments

Where Are the Economies of Scale in Homebuilding?

https://www.construction-physics.com/p/where-are-the-economies-of-scale
3•crescit_eundo•17m ago•0 comments

Why does it take so long to mend an escalator? (2002)

https://www.lrb.co.uk/the-paper/v24/n05/peter-campbell/why-does-it-take-so-long-to-mend-an-escalator
2•downbad_•17m ago•0 comments

Vibe Gets to Work

https://mistral.ai/news/vibe-agent/
2•hacb•17m ago•0 comments

Never Pay for Claude

https://github.com/RyanKung/rotom
4•ryankung•18m ago•2 comments

How to avoid being outsourced or open sourced (2008)

https://www.johndcook.com/blog/2008/02/12/how-to-avoid-being-outsourced-or-open-sourced/
3•tapanjk•19m ago•0 comments

SpaceX-Stasy

https://substack.com/@edwardelson/p-199273735
2•simonebrunozzi•19m ago•0 comments

The Long, Bitter Fight at the Park Slope Food Co-Op

https://www.nytimes.com/2026/05/28/nyregion/the-long-bitter-fight-at-the-park-slope-food-co-op.html
2•brandonb•19m ago•0 comments

Check our new AI developer tool and please REVIEW

https://github.com/pwnaxe/squick
2•TrueSTRX•20m ago•0 comments

En Svensk Tiger

https://en.wikipedia.org/wiki/En_svensk_tiger
2•verandaguy•20m ago•0 comments