frontpage.
newsnewestaskshowjobs

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/

Monlite – documents, vectors, cache, and job queue in one SQLite file

https://github.com/qataruts/monlite
2•emadjumaah•10m ago•0 comments

Bypass Protocol: The NDC Architecture Middleware Trap

https://www.youtube.com/watch?v=d4yvhpcXAzU
1•tgold8888•12m ago•0 comments

Show HN: Git-temp – scratchpad folder for AI agents; doesn't clutter Git status

https://github.com/sebmellen/git-temp
1•sebmellen•20m ago•0 comments

Deburr Edge Cases Skill: Make coding agents systematize their local code

https://github.com/imbue-ai/rust-bucket/blob/main/.agents/skills/deburr-edge-cases/SKILL.md
1•nvader•24m ago•0 comments

Yap – free offline voice dictation for Mac/Windows/Linux (Wispr Flow alt)

https://github.com/AkuchiS/yap
1•AkuchiS•27m ago•0 comments

Powerful Anthropic model, Fable 5, on track to return soon

https://www.axios.com/2026/06/27/anthropic-fable-5-return-soon
1•chris_overseas•31m ago•0 comments

An argument with Om about Wired spawned this newsletter. RIP brother

https://crazystupidtech.com/2026/06/27/how-an-argument-with-om-spawned-this-newsletter-rip-brother/
1•rmason•36m ago•0 comments

Marfa Public Radio Puts You to Sleep

https://www.marfapublicradio.org/podcast/marfa-public-radio-puts-you-to-sleep
33•reaperducer•45m ago•1 comments

A Man Who Invented a Surgery to Cure Himself

https://medium.com/swlh/doug-lindsay-the-man-who-cure-himself-12d40d3f643e
1•raynchad•46m ago•0 comments

Direct observation of the superallowed α-decay of 104Te

https://www.nature.com/articles/s41586-026-10581-w
1•thunderbong•46m ago•0 comments

What Barbarians Like to Take Private

https://www.gmo.com/americas/research-library/part-1-what-barbarians-like-to-take-private_gmoquar...
1•andsoitis•51m ago•0 comments

US Layoffs Skyrocket to Highest Level Since Pandemic AI Blamed for 40% of Cuts

https://www.ibtimes.co.uk/us-layoffs-skyrocket-highest-level-since-pandemic-tech-giants-blame-ai-...
8•yogthos•52m ago•1 comments

Almost always look on the bright side of life

https://www.economist.com/business/2026/05/21/why-you-should-almost-always-look-on-the-bright-sid...
1•andsoitis•59m ago•0 comments

After 80 Years, Mathematicians Give Famed 'Erdős Method' an Upgrade

https://www.quantamagazine.org/after-80-years-mathematicians-give-famed-erdos-method-an-upgrade-2...
1•signa11•1h ago•0 comments

Grantham Warns U.S. Stocks Could Plunge 70% / Most Expensive Market in History

https://247wallst.com/investing/2026/06/26/jeremy-grantham-warns-u-s-stocks-could-plunge-70-in-th...
6•andsoitis•1h ago•0 comments

Feds Killed Polestar and Spared Volvo. That Should Terrify You

https://www.thedrive.com/news/feds-killed-polestar-and-spared-volvo-that-should-terrify-you
14•mraniki•1h ago•8 comments

I built a 100% local network privacy appliance to stop smart home spying

https://www.edgedefenseai.com/
2•arundass•1h ago•1 comments

China Has Matched Anthropic in Cybersecurity, Resetting AI Race

https://www.wsj.com/tech/ai/chinese-ai-anthropic-mythos-cybersecurity-574b02c2
6•madars•1h ago•3 comments

What Happens When You Run 10k Concurrent Lambda Functions Against DynamoDB

https://medium.com/@yalovoy/what-happens-when-you-run-10-000-concurrent-lambda-functions-against-...
1•zero-ground-445•1h ago•0 comments

Amble One

https://driveamble.com/pages/amble-one
2•dnw•1h ago•0 comments

Show HN: FSM – an advanced system monitor for Linux

https://github.com/mskrasnov/FSM
2•mskrasnov•1h ago•0 comments

The AI "Super Bubble" Warning Is a Filter, Not a Funeral

https://www.pentesty.co/blog/ai-super-bubble-cybersecurity-filter-2026
3•johnzoro107•1h ago•0 comments

Show HN: SpinnerRecruit – targeted job ads in CLI for AI wait states

https://www.spinnerrecruit.dev/
1•jamessmu•1h ago•3 comments

Response to AI slop is from Robin Williams

https://jayacunzo.com/blog/your-move-chief
55•herbertl•1h ago•24 comments

Chrome Extension to Bypass Paywalls

https://gitflic.ru/project/magnolia1234/bypass-paywalls-chrome-clean
3•thunderbong•1h ago•1 comments

Turning music into a chore is how I became a musician

https://the.scapegoat.dev/turning-music-into-a-chore-is-what-made-me-an-artist/
2•herbertl•1h ago•0 comments

Microchip June 2026: AVR LA Family [pdf]

https://ww1.microchip.com/downloads/aemDocuments/documents/MCU08/ProductDocuments/Brochures/AVR-L...
3•dragontamer•1h ago•1 comments

Show HN: Decomp Academy – Learn to decompile GameCube games into matching C

https://decomp-academy.dev
40•jackpriceburns•1h ago•11 comments

Show HN: Shopify UCP is insanely powerful

https://stack412.com/
2•westche2222•1h ago•3 comments

I designed and synthesized PAC-832 in a chemistry lab I built in my garage

https://twitter.com/DouglasYaoDY/status/2070904914050797582
3•gasull•1h ago•1 comments