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

Comments

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

Ask HN: Am I disloyal for not wanting to share my system prompts?

1•kkarpkkarp•25s ago•0 comments

Zero-build privacy policies with Astro

https://www.openpolicy.sh/blog/no-build-astro
1•jamie_davenport•3m ago•0 comments

Show HN: List of Design Md Files

https://github.com/bergside/awesome-design-md-skills
1•elwingo1•5m ago•0 comments

Rage: A modern Ruby framework designed for non-blocking I/O

https://github.com/rage-rb/rage
1•thunderbong•7m ago•0 comments

Apple Home is expanding its energy management features (2025)

https://www.theverge.com/news/685733/apple-home-energykit-energy-management-ios26-wwdc
1•zeristor•12m ago•1 comments

Dubai considering canal to bypass Strait of Hormuz (2008)

https://www.freightwaves.com/news/dubai-considering-canal-to-bypass-strait-of-hormuz
1•JumpCrisscross•12m ago•0 comments

Seeduplex: ByteDance's full-duplex voice AI

https://seeduplex.io
1•caoq•12m ago•1 comments

CLI proxy that reduces LLM token consumption by 60-90% on common dev commands

https://github.com/rtk-ai/rtk
2•ahamez•14m ago•0 comments

I watched Claude Code read my AWS credentials on startup

https://github.com/diemoeve/forgeterm/releases/tag/v0.2.0
2•storm677•14m ago•0 comments

Ask HN: Are you encountering AI-related questions in the hiring market?

2•somthingwrong•16m ago•0 comments

My turns any API into an AI agent in 60 seconds

https://www.indiehackers.com/post/i-built-a-platform-that-turns-any-api-into-an-ai-agent-in-60-se...
2•AnimeMyPic•19m ago•0 comments

I Lost This Once

https://johnie.se/writing/i-already-lost-this-once
1•div3rs3•19m ago•0 comments

Show HN: I Built an LLM Harness for Language Learning

https://language.coursely.ai/begin
1•MO-379•20m ago•0 comments

Model Architecture Description Encyclopedia

https://madl.si5.pl/
1•izik•20m ago•0 comments

Track List – Track Your Favorite GitHub List Daily

https://www.trackawesomelist.com/
1•triilman•27m ago•0 comments

CVE-2026-23869: CVSS 7.5 in React Server Components lead to Denial of Service

https://vercel.com/changelog/summary-of-cve-2026-23869
1•altbdoor•31m ago•0 comments

AES Cipher and Dechiper

https://github.com/loperfido/aes256
1•loperfido•33m ago•0 comments

Lobsters Interview with Internet_Janitor

https://alexalejandre.com/programming/interview-with-john-earnest/
1•birdculture•34m ago•0 comments

Particles seen emerging from empty space for first time

https://www.newscientist.com/article/2522324-particles-seen-emerging-from-empty-space-for-first-t...
4•isaacfrond•34m ago•0 comments

Show HN: A security scanner for AI Agent Skills

https://github.com/Fangcun-AI/SkillWard/tree/main
3•mayziem•35m ago•0 comments

Show HN: Search cheap night train tickets in Europe

https://trainbot.eu/
1•druskacik•35m ago•0 comments

The Uncensored Library

https://www.uncensoredlibrary.com/en
1•28304283409234•36m ago•0 comments

Ask HN: How do you make paywalls in ATProtocol?

1•Gooblebrai•37m ago•0 comments

PostgresBench: A Reproducible Benchmark for Postgres Services

https://clickhouse.com/blog/postgresbench
2•tosh•38m ago•0 comments

Show HN: Run GUIs as Scripts

https://github.com/skinnyjames/hokusai-pocket
2•zero-st4rs•48m ago•0 comments

Agentic AI in 2026: Who's building real systems?

https://simplai.ai/blogs/what-is-enterprise-ai/
2•shanmugarajsk•51m ago•0 comments

The Music of the Spheres

https://www.smbc-comics.com/comic/spheres-part-1
2•robin_reala•52m ago•0 comments

Capture-Quiet Decomposition: A Verification Theorem for Chess Endgame Tablebases

https://arxiv.org/abs/2604.07907
1•RusDyn•59m ago•0 comments

iPhone Fold is 'on track' to launch this September, per Mark Gurman

https://9to5mac.com/2026/04/07/iphone-fold-is-on-track-to-launch-this-september-per-mark-gurman/
1•prawn•59m ago•0 comments

Why Apple Is Betting Against Native iOS Development

https://medium.com/@mrhotfix/why-apple-is-secretly-betting-against-native-ios-development-c67cb34...
1•antfarm•1h ago•0 comments