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•9mo ago
Is this a problem that people actually have?
xeromal•9mo ago
Fun side project man!
primitivesuave•9mo 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•9mo 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•9mo 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/

Serve Markdown to LLMs from your Next.js app

https://github.com/kasin-it/next-md-negotiate
1•kasin-it•17m ago•1 comments

Idea Hunting Is Dead. Databases Like This Are Replacing It

1•briebella•19m ago•0 comments

Magawa the HeroRAT

https://en.wikipedia.org/wiki/Magawa
1•KolmogorovComp•21m ago•0 comments

The Lazy Way to Find Your Next SaaS Idea

1•DownCreater•24m ago•1 comments

Pentagon puts Scouts 'on notice' over DEI and girl-centered policies

https://www.npr.org/2026/02/27/nx-s1-5729159/pentagon-scouts-hegseth-dei-deal
1•iamflimflam1•26m ago•0 comments

We Will Be Divided

https://we-are-divided.com
2•shiftybitshiftr•27m ago•0 comments

Social media use/mental wellness links in youth are artifact of other factors [pdf]

https://www.christopherjferguson.com/Brainwaves.pdf
1•mpweiher•31m ago•0 comments

Agentic Engineering Patterns

https://simonwillison.net/guides/agentic-engineering-patterns/
1•vinhnx•36m ago•0 comments

Might Be the Most Underrated Resource for Early Stage Founders

1•vibecoder21•39m ago•0 comments

Kakveda open source-level AI, Infra observability agent

https://www.kakveda.com/
1•prateekdalal•39m ago•1 comments

What Is It That Makes Today's Homes So Different, So Appealing?

https://smarthistory.org/richard-hamilton-just-what-is-it/
1•Torwald•40m ago•0 comments

How LDAP Works

https://growingswe.com/blog/ldap
1•vismit2000•41m ago•0 comments

How you invent math: From counting to complex numbers

https://growingswe.com/blog/inventing-math
1•vismit2000•42m ago•0 comments

Stop Burning Your Context Window – How We Cut MCP Output by 98% in Claude Code

https://mksg.lu/blog/context-mode
1•mksglu•42m ago•1 comments

Zerobyte

https://github.com/nicotsx/zerobyte
1•Erenay09•43m ago•0 comments

Researchers praise 'stunning' results of new prostate cancer treatment

https://www.theguardian.com/society/2026/feb/28/researchers-praise-stunning-results-of-new-prosta...
2•sandebert•44m ago•0 comments

Robotic Land Drone holds positions in Ukraine frontline for 45 days

https://www.youtube.com/watch?v=JMTSH1U44cw
2•lifeisstillgood•50m ago•0 comments

The Missing Piece of AI Discourse Is Trust

https://philipptanlak.com/the-missing-piece-of-ai-discourse-is-trust/
1•philippta•51m ago•0 comments

Modula-2

https://en.wikipedia.org/wiki/Modula-2
3•tosh•54m ago•0 comments

US Customs destroy a rare floppy disk containing demo version of Tsukihime

https://www.timeextension.com/news/2026/02/literally-crying-right-now-50-copies-of-this-adult-onl...
2•FMecha•55m ago•0 comments

ErsatzTV Has Been Archived

https://github.com/ErsatzTV/ErsatzTV/issues/2839
1•kassner•55m ago•0 comments

The Ml.energy Leaderboard

https://ml.energy/leaderboard/
1•kgolubic•57m ago•0 comments

Jeffrey Epstein saw promise in Bitcoin – and its far-right supporters

https://www.theverge.com/tech/885252/jeffrey-epstein-bitcoin-cryptocurrency-connections
1•robtherobber•1h ago•0 comments

Surface-Stable Fractal Dithering

https://runevision.com/tech/dither3d/
1•fanf2•1h ago•0 comments

Show HN: I Turned My CV into a Space Invaders Game (Rust and WASM)

https://breezko.dev
1•breezk0•1h ago•0 comments

Show HN: JobSeek Expat – a CLI tool to scrape English speaking jobs on LinkedIn

https://github.com/electricalgorithm/jobseek-expat
2•gyokhan•1h ago•0 comments

Accuracy vs. Speed in Local LLMs: Finding Your Sweet Spot

https://grigio.org/accuracy-vs-speed-in-local-llms-finding-your-sweet-spot/
1•grigio•1h ago•0 comments

Silent March (2021)

https://tobiaskucera.art/en/tichy-brezen/
1•theobias•1h ago•0 comments

Nano Banana 2 AI Image Generator – Pro Quality, Flash Speed

https://veevid.ai/nano-banana-2
1•jacksteven•1h ago•0 comments

Czinger 21C review: flat out in America's £1.6M, 3D-printed hypercar

https://www.topgear.com/car-reviews/czinger/21c/first-drive
1•teleforce•1h ago•0 comments