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/

A simple AI agent in Java

https://github.com/machineswillrise/jagent
1•onesingleblast•1m ago•0 comments

Scan any codebase in 3s, then verify what your AI builds

https://github.com/anatomia-dev/anatomia
1•stealthyAF•6m ago•0 comments

Joe Rogan accidentally exposed AI in four words [video][12 mins]

https://www.youtube.com/watch?v=waFl4uBfXRA
1•Bender•11m ago•0 comments

Extending MySQL with VillageSQL

https://maxdemarzi.com/2026/05/21/extending-mysql-with-villagesql/
1•maxdemarzi•13m ago•0 comments

Microsoft open-sources "the earliest DOS source code discovered to date"

https://arstechnica.com/gadgets/2026/04/microsoft-open-sources-the-earliest-dos-source-code-disco...
4•DamnInteresting•15m ago•2 comments

Show HN: Play nbsdgames to increase your brain (exclamation mark)

https://github.com/abakh/nbsdgames
2•abakh•23m ago•0 comments

Complexity Has to Live Somewhere (2020)

https://ferd.ca/complexity-has-to-live-somewhere.html
1•vinhnx•24m ago•1 comments

AI didn't kill your junior pipeline. You did

https://andrewmurphy.io/blog/ai-didnt-kill-your-junior-pipeline-you-did
5•MBCook•36m ago•0 comments

Meta Sam 3: Segment Anything with Text, Clicks and Concepts

https://sam3ai.com/
1•wslh•38m ago•0 comments

Guy Won the Anthropic Hackathon Solo. Then He Open-Sourced the Stack

https://old.reddit.com/r/AIAgentsInAction/comments/1t84rlc/this_guy_won_the_anthropic_hackathon_s...
1•thomasjudge•40m ago•0 comments

AI Headshot Generator – Preview Before You Pay, $4.99 One-Time

https://aiheadshotgenerator.pro/
1•xiaomohaha•42m ago•0 comments

Suspect killed after opening fire on Secret Service agents near White House

https://www.bbc.com/news/live/c5y09vpe713t
9•berlianta•43m ago•0 comments

Scammers are abusing an internal Microsoft account to send spam links

https://techcrunch.com/2026/05/21/scammers-are-abusing-an-internal-microsoft-account-to-send-spam/
2•spike021•45m ago•0 comments

Justice Department scrubs its website of news releases about Jan. 6 defendants

https://apnews.com/article/justice-department-capitol-riot-news-releases-purged-29c580044a9ed27b6...
53•logickkk1•45m ago•5 comments

Ask HN: Did Messages get removed from Google Takeout?

2•MollyRealized•48m ago•0 comments

Bypassing Apple MIE

https://ironpeak.be/blog/bypassing-apple-mie/
1•cylo•53m ago•1 comments

Maxtoken: A Unified Framework for Unbounded AI Output

https://zenodo.org/records/20360523
1•choukric•54m ago•0 comments

Meshtastic em Portugal: a rede construída pelas pessoas

https://tech.neural-rage.com/artigos/meshtastic-em-portugal-a-rede-construida-pelas-pessoas/
2•portugalbinario•59m ago•0 comments

Reconstructing a Mixbook movie from its data API with FFmpeg

https://segar.me/blog/posts/reconstructing_a_mixbook_movie.html
1•msegar•1h ago•0 comments

The solution the supply chain problems is removing your deps from .gitignore

2•SchizoDuckie•1h ago•0 comments

Wake up! 16b

https://hellmood.111mb.de/wake_up_16b_writeup.html
18•MaximilianEmel•1h ago•3 comments

Show HN: A platform to find people to jam on side projects with

https://www.letsjam.live/
5•itsmechase•1h ago•3 comments

Vico, Descartes, and decay of knowledge in software

https://rubber-duck-typing.com/posts/2026-05-24-vico-verum-factum-software.html
1•sayon•1h ago•1 comments

Ask HN: Why agentic development stops from 2023

1•DmitriyBuchilin•1h ago•0 comments

Bateschess – Chess Analytics Feeding Stockfish Evals into LLM's

https://bateschess.com
1•wtbates99•1h ago•0 comments

The unlikely Vatican-Anthropic relationship that's reshaping AI ethics debate

https://religionnews.com/2026/05/22/why-anthropic-is-helping-unveil-the-popes-new-encyclical-on-ai/
1•gnabgib•1h ago•0 comments

US Towns Paid for Teachers and Cops to Use Weight-Loss Drugs. It Broke the Bank

https://www.wsj.com/us-news/u-s-towns-paid-for-teachers-and-cops-to-use-weight-loss-drugs-it-brok...
3•atestu•1h ago•0 comments

The AWS Service Quotas That Will Take Down Your Production at 3 Am

https://medium.com/@yalovoy/the-aws-service-quotas-that-will-take-down-your-production-at-3-am-an...
4•zero-ground-445•1h ago•1 comments

API proposed by Chrome: Declarative partial updates

https://developer.chrome.com/blog/declarative-partial-updates
4•theanonymousone•1h ago•0 comments

PageDrop – Share Single-Page HTML Creations Instantly

https://pagedrop.io/
1•user123•1h ago•1 comments