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

Comments

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

Productivity Is the New Data Breach

https://www.youtube.com/watch?v=e1ZM3dSfB70
1•frag•2m ago•0 comments

RalphMAD – Autonomous SDLC Workflows for Claude Code (BMAD and Ralph Loop)

1•hieutrtr•2m ago•0 comments

LibreOffice Online dragged out of the attic

https://www.theregister.com/2026/03/02/libreoffice_online_deatticized/
1•rbanffy•3m ago•0 comments

Lollygagging

https://www.merriam-webster.com/dictionary/lollygag
1•bramjoosten•5m ago•0 comments

Show HN: I Built a TypeScript ORM for DynamoDB

https://www.zeroinbox.ai/dynamodb
1•shayan-arman•6m ago•0 comments

Zed Overhauled Their ToS and Privacy Policy

https://zed.dev/blog/terms-update
1•thomascountz•6m ago•0 comments

Show HN: Spec-shaker – "Chaos engineering" for tests via semantic mutation

https://github.com/lydiazbaziny/spec-shaker
1•lydiazbaziny•8m ago•0 comments

AWS outage due to drone attacks in UAE

https://www.bbc.com/news/articles/cgk28nj0lrjo
1•stellastah•8m ago•0 comments

Greeks (Finance)

https://en.wikipedia.org/wiki/Greeks_(finance)
1•tosh•9m ago•0 comments

Show HN: Cmdop – Check your terminal from your phone, through NAT, free forever

https://github.com/commandoperator/cmdop-sdk
1•markolofsen•10m ago•0 comments

Show HN: TrueMatch – AI agents match you on observed behavior, not profiles

https://github.com/goeldivyam/truematch
2•godivyam•12m ago•0 comments

Living Human Brain Cells Play Doom on a Cortical Labs CL1 [video]

https://www.youtube.com/watch?v=yRV8fSw6HaE
1•OccamsMirror•16m ago•0 comments

Show HN: Shipcheck – Pre-launch audit tool for SaaS founders

https://www.shipcheck.pro/
1•fiynraj•18m ago•2 comments

Deterministic and AI-agent broker import to prevent portfolio data corruption

https://www.portfolio-terminal.com/demo
1•julien_devv•18m ago•2 comments

The Future Is AC/DC: The Agent Centric Development Cycle

https://www.sonarsource.com/blog/the-future-is-ac-dc-the-agent-centric-development-cycle/
1•MoustaphaSaad•20m ago•1 comments

MyFitnessPal has acquired Cal AI, the viral calorie app built by teens

https://techcrunch.com/2026/03/02/myfitnesspal-has-acquired-cal-ai-the-viral-calorie-app-built-by...
1•svenfaw•23m ago•0 comments

Show HN: Rriftt_ai.h – A bare-metal, dependency-free C23 tensor engine

https://github.com/Rriftt/rriftt_ai.h
3•Rriftt•25m ago•0 comments

Iran war heralds era of AI-powered bombing quicker than 'speed of thought'

https://www.theguardian.com/technology/2026/mar/03/iran-war-heralds-era-of-ai-powered-bombing-qui...
2•saeedesmaili•25m ago•4 comments

Iranian cryptoasset outflows surge 700% following airstrikes

https://www.elliptic.co/blog/iranian-cryptoasset-outflows-surge-700-percent-following-attacks
1•giuliomagnifico•27m ago•0 comments

Attempting to detect smart glasses nearby and warn you

https://blog.adafruit.com/2026/03/02/attempting-to-detect-smart-glasses-nearby-and-warn-you/
1•EvgeniyZh•35m ago•0 comments

Show HN: Instbyte – Self-hosted LAN sharing tool, run with npx, no cloud

https://github.com/mohitgauniyal/instbyte
2•mohitgauniyal•35m ago•1 comments

Feynman's War: Modelling Weapons, Modelling Nature (1986) [pdf]

https://gwern.net/doc/science/physics/1998-galison.pdf
1•nill0•38m ago•0 comments

The Download: protesting AI, and what's floating in space

https://www.technologyreview.com/2026/03/02/1133811/the-download-protesting-ai-and-whats-floating...
1•joozio•41m ago•0 comments

LeRobot: An Open-Source Library for End-to-End Robot Learning

https://arxiv.org/abs/2602.22818
2•nill0•41m ago•0 comments

PDF Tools

https://www.pdffixnow.com
1•instahotstar•46m ago•0 comments

Comfy.org

https://blog.comfy.org/
1•VanessaMGSA•46m ago•0 comments

Show HN: My OpenClaw knows EXACTLY what it did a week ago. Thanks to "hmem"-MCP

1•Bumblebiber•49m ago•0 comments

Africa Imported Europe's Worst Idea

https://magatte.substack.com/p/how-africa-imported-europes-worst
3•EvgeniyZh•50m ago•0 comments

Anthropic's Feud with Pentagon Earns It Fans Amid the Blowback

https://www.wsj.com/tech/ai/anthropics-feud-with-pentagon-earns-it-fans-amid-the-blowback-f7e2bb83
2•JumpCrisscross•52m ago•0 comments

KlongPy: Automatic Differentiation

http://www.klongpy.org/torch_backend/
1•tosh•52m ago•0 comments