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•10mo 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•10mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

X2•3•7: 42: Nihil Algebra: 110•110: G∴G∴

https://nihil-algebra-x2-3-7.tiiny.site/
1•shaunxcode•21s ago•0 comments

Show HN: LPbacked – Find verified LP contacts for fund managers and founders

https://lpbacked.com
1•veritas9•1m ago•0 comments

Claude-Tokenwise – CLI wrapper for efficient Claude token usage

https://github.com/nniinnoo/claude-tokenwise
1•little_epsilon•1m ago•0 comments

Show HN: Aegis – Open-source pre-execution firewall for AI agents

https://github.com/Justin0504/Aegis
1•AEGIS_JB•3m ago•0 comments

The AI 'hyperscalers' are on a $1T borrowing binge after years of printing cash

https://fortune.com/2026/03/07/big-tech-trillion-dollar-borrowing-ai-century-bonds/
1•geox•3m ago•0 comments

Ilias Georgopoulos

https://ilias1988.me/
1•Ilias1988•4m ago•0 comments

China warns of global chip shortages as Nexperia dispute escalates again

https://www.reuters.com/business/autos-transportation/china-warns-global-chip-shortages-nexperia-...
1•giuliomagnifico•5m ago•0 comments

Show HN: The re-centralisation of AI Agents

https://medium.com/@muhammad.shafat/the-great-ai-re-centralization-why-agent-swarms-are-giving-wa...
1•muhammad-shafat•6m ago•0 comments

AI tool that saves time by auditing pull requests on Git

1•bolitupac•7m ago•0 comments

Show HN: Novel visualizer for translations to/from Basque language

https://xingolak.pages.dev/
1•mattdeboard•9m ago•0 comments

Tech giants sign energy pledge at White House ahead of midterms

https://www.reuters.com/sustainability/climate-energy/trump-meet-tech-giants-energy-pledge-ahead-...
1•rbanffy•10m ago•0 comments

Contradictory Advice for Founders

https://graham.fm/articles/contradictory-advice-for-founders
1•meghan•12m ago•0 comments

Amazon Data Centers Became a Casualty of Iran War

https://www.bloomberg.com/news/articles/2026-03-05/how-amazon-data-centers-became-a-casualty-of-i...
1•rbanffy•12m ago•0 comments

What Will Happen to Android?

1•MrLey•13m ago•2 comments

Show HN: OpenGraviton – Run 500B+ parameter models on a consumer Mac Mini

https://opengraviton.github.io
3•fatihturker•13m ago•2 comments

Pentagon vendor cutoff exposes AI dependency map most enterprises never built

https://venturebeat.com/security/ai-supply-chain-visibility-gap-anthropic-pentagon-ciso-audit
1•mooreds•13m ago•0 comments

Tech jobs are getting demolished in ways not seen since 2008

https://www.businessinsider.com/tech-jobs-getting-demolished-great-recession-dot-com-era-2026-3
2•elsewhen•14m ago•0 comments

Matchmaker – a fzf program and library in Rust

https://github.com/Squirreljetpack/matchmaker
1•squirreljetpack•14m ago•1 comments

Show HN: Fix CSV import errors before uploading to HubSpot or Salesforce

https://excel-cleaner-3.emergent.host/
1•pkdz•16m ago•0 comments

Ask HN: OpenClaw for Music Production

1•aleksanderbm•18m ago•0 comments

Show HN: Native WebGPU / WebGL Profiler for Mac

https://github.com/HarshdeepKahlon/native-webgpu-profiler
1•ozaiworld•18m ago•0 comments

NASA's Astronomy Picture of the Day

https://apod.nasa.gov/apod/
1•TigerUniversity•19m ago•0 comments

Announcing New Working Groups

https://nesbitt.io/2026/03/07/announcing-new-working-groups.html
1•zdw•21m ago•0 comments

Show HN: Pomodoro Timer with PDF productivity reports (1.5MB, open source)

https://apps.apple.com/us/app/pomodoro-timer-lite/id6748662476?mt=12
1•happylaodu•22m ago•1 comments

Wastewater Monitoring Data

https://www.cdc.gov/nwss/index.html
2•mooreds•23m ago•0 comments

HomeClaw – Control your Apple HomeKit smart home from AI assistants

https://github.com/omarshahine/HomeClaw
1•js2•24m ago•1 comments

The Great AI Arbitrage: making a killing before your client wises up

https://www.dodgycoder.net/2026/03/the-great-ai-arbitrage.html
1•mooreds•24m ago•0 comments

Hqssh – Mobile SSH app for managing AI CLI tools on remote systems

https://hqssh.com/
1•notgelotto•24m ago•1 comments

Sustainable Space: Why "Bootstraps" Isn't Enough for Multi-Planetary Life

https://en.wikipedia.org/wiki/Space_exploration
1•noemit•24m ago•0 comments

UF research finds a gentler way to treat aggressive gum disease

https://ufhealth.org/news/2026/uf-research-finds-a-gentler-way-to-treat-aggressive-gum-disease
1•gnabgib•25m ago•0 comments