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•9mo 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/

Apple Plans to Allow Outside Voice-Controlled AI Chatbots in CarPlay

https://www.bloomberg.com/news/articles/2026-02-06/apple-plans-to-allow-outside-voice-controlled-...
2•jbredeche•1m ago•0 comments

Analysis of 4000 skills.md repos across popular registries

https://pradeep.md/2026/02/03/ai-agent-skills-database.html
1•skyfallsin•1m ago•1 comments

The Agentic Inversion Principle

https://www.mikebrevoort.com/post/015-the-agentic-inversion-principle/
1•mbrevoort•2m ago•1 comments

Show HN: AgentLink – AI agents earn SOL on Solana via skill.md protocol

https://theagentlink.xyz
1•abhinag•3m ago•0 comments

We have an anti-aging vaccine. Why aren't more people getting it?

https://www.vox.com/health/477761/shingles-vaccine-shot-dementia-anti-aging
2•l2silver•4m ago•1 comments

ML-Lib: Machine Learning Library Proposed for the Linux Kernel

https://www.phoronix.com/news/Linux-Kernel-ML-LIB-RFC
2•speckx•4m ago•0 comments

The logo soup problem (and how to solve it)

https://www.sanity.io/blog/the-logo-soup-problem
2•ingve•6m ago•1 comments

Lodely – One System to Land Your Dream Software Engineering Job

https://www.lodely.com
1•johnn_nnn•7m ago•1 comments

Do we need Agent end-user Personas?

https://productside.com/
1•deanpeters•7m ago•0 comments

Reverse Engineering Medium.com's Editor: How Copy, Paste, and Images Work

https://app.writtte.com/read/P8bpmJV
1•lasgawe•8m ago•0 comments

Dare Mighty Code

https://nasa-jpl.github.io/blog/
1•dmittman•8m ago•1 comments

Show HN: The Librarian creates artifacts while a model finishes its work

https://librarian.fieldtheory.dev/the-asymmetry-of-doors-4e1f61
1•afar•8m ago•0 comments

No Mac mini nor coding needed, Cloudflare OpenClaw Wrapper

https://moltworker-cloud.pages.dev
1•yksanjo•8m ago•1 comments

Beauty Lovers Waste $6.2B on TikTok Makeup Trends They'll Use Once

https://lipstickqueen.com/beauty-lovers-waste-6-2-billion-on-tiktok-makeup-trends/
2•randycupertino•9m ago•1 comments

Location of maximum land subsidence in U.S. Levels at 1925 and 1977

https://www.usgs.gov/media/images/location-maximum-land-subsidence-us-levels-1925-and-1977
1•ZeljkoS•9m ago•0 comments

AI Continuity Framework

https://github.com/yawp2000/yawp
1•yawp2000•9m ago•0 comments

Ask HN: Best option for hosted agent in 2026?

1•mholubowski•9m ago•0 comments

Agile Speccing: Writing Feature Specs That Work (English)

https://www.mostlylucid.net/blog/writingfeaturespecs
1•speckx•10m ago•0 comments

Vibe Coding Feels Like 2003 Again. That's the Point

https://gilpignol.substack.com/p/vibe-coding-feels-like-2003-again
1•light_triad•11m ago•0 comments

The Rise (and Limits) of Spec Driven Development

https://www.dbreunig.com/2026/02/06/the-rise-of-spec-driven-development.html
3•dbreunig•14m ago•0 comments

Show HN: SnipKey – Open-Source iOS Keyboard

https://github.com/jtvargas/SnipKey
1•pompeii•14m ago•0 comments

The Beauty of Slag

https://mag.uchicago.edu/science-medicine/beauty-slag
1•MaysonL•15m ago•0 comments

Do not put code diffs into Git commit messages

https://mas.to/@zekjur/116022397626943871
2•st_goliath•16m ago•0 comments

Show HN: We built a way to see if you know anyone in the Epstein files

https://happenstance.ai/epstein
2•teichman•17m ago•0 comments

Use RSS to Read Newsletters

https://www.kryogenix.org/days/2025/02/08/use-rss-to-read-newsletters/
1•speckx•17m ago•0 comments

Ostarine, the Wonder Drug That's Plaguing Sports

https://www.nytimes.com/2026/02/02/us/ostarine-olympics-doping.html
1•bookofjoe•17m ago•1 comments

Show HN: Generate images with Claude Code

https://github.com/jshchnz/claude-code-image
1•jshchnz•18m ago•0 comments

Solo: Dev Stack in One Window

https://soloterm.com/
1•monty5811•19m ago•0 comments

China is about to launch their own space shuttle capable of returning to Earth

https://nextspaceflight.com/launches/details/8160/
1•ck2•22m ago•0 comments

Code Quality Analysis of Translations from C to Rust

https://arxiv.org/abs/2602.00840
1•stmw•24m ago•1 comments