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/

Visualize Your Turborepo Workspace

https://turbograph.dev/
1•kuzeykose•2m ago•0 comments

Shai-Hulud-Style NPM Worm Hijacks CI Workflows and Poisons AI Toolchains

https://socket.dev/blog/sandworm-mode-npm-worm-ai-toolchain-poisoning
2•jicea•3m ago•0 comments

Show HN: Formally Verified a Millennium Prize Problem in Coq Yang-Mills Mass Gap

https://github.com/Shariq81/yang-mills-mass-gap
1•shariq81•3m ago•0 comments

Trump says he'll raise tariffs to 15 percent after Supreme Court ruling

https://apnews.com/article/trump-tariff-truth-social-872c8f04112a8991d8aa6ae5005767b6
3•_rend•5m ago•2 comments

Apple's Ferret AI model is a step towards Siri seeing and controlling apps

https://appleinsider.com/articles/26/02/21/apples-latest-ferret-ai-model-is-a-step-towards-siri-s...
1•geox•6m ago•0 comments

ClipSafe

https://clipsafe.app/blog/rss.xml
1•mcunderground•6m ago•1 comments

Show HN: Here.now – Web Hosting for Agents

https://here.now/
1•k0mplex•7m ago•0 comments

When a Platform Stops Saying "Automation" and Starts Saying "LLM"

1•ppolicyco•8m ago•0 comments

Wrapping Code Comments

https://matklad.github.io/2026/02/21/wrapping-code-comments.html
1•surprisetalk•8m ago•0 comments

I'm 15 and built a platform for developers to showcase WIP projects

1•amin2011•9m ago•0 comments

Show HN: Cc-md – Zero-cost Obsidian sync across iPhone, Mac, and GitHub

https://github.com/yuukiLike/cc-md
1•YuukiJyoudai•9m ago•0 comments

Stanford study points to vaccine that protects against multiple infections

https://www.nbcbayarea.com/news/local/stanford-study-vaccine-multiple-infections/4039740/
1•apparent•9m ago•0 comments

Show HN: Amux – A tmux-based multiplexer for running parallel Claude Code agents

https://amux.io
1•Beefin•10m ago•0 comments

SQLite-Vector: highly efficient vector extension for SQLite

https://github.com/sqliteai/sqlite-vector
1•marcobambini•10m ago•0 comments

Show HN: Museum of Handwritten Code (If, While, Binary Search, Merge Sort)

https://museum.codes
2•sgraphics8•14m ago•0 comments

Forever – Claude Memory System

https://forever.squidcode.com
1•pro_methe5•14m ago•2 comments

Show HN: StackWho – Find companies by tech stack with decision maker contacts

https://stackwho.com/
1•veritas9•14m ago•0 comments

Museum Excavation in Cologne Finds Ancient Roman Governor's Palace and Basilica

https://allthatsinteresting.com/cologne-germany-ancient-roman-ruins
2•bookofjoe•15m ago•1 comments

Show HN: Trying to make sense of the OpenClaw chaos with one feed

https://www.lobstersauce.news/
1•Tjerkienator•19m ago•0 comments

A Practical Guide to Getting Productive with Claude Code

https://onebytepls.com/articles/copilot-to-coworker-agent-driven-development/
1•dechiad•22m ago•0 comments

Breast imaging with ultra-low field MRI

https://www.nature.com/articles/s41598-026-37130-9
2•PaulHoule•23m ago•0 comments

Show HN: DevBind – I made a Rust tool for zero-config local HTTPS and DNS

https://github.com/Its-Satyajit/dev-bind
1•its-satyajit•24m ago•0 comments

Mathematics in the Library of Babel

https://www.daniellitt.com/blog/2026/2/20/mathematics-in-the-library-of-babel
1•robinhouston•25m ago•0 comments

H-1B Visas and the AI Race

https://www.wsj.com/opinion/h-1b-visas-artificial-intelligence-jobs-immigration-economy-nfap-repo...
1•johntfella•26m ago•0 comments

Rhythms the Compendium: Life aboard an aircraft carrier (2021)

https://thelexicans.wordpress.com/2020/04/05/38223/
2•cwillu•28m ago•0 comments

Head of Claude Code: What happens after "coding is solved" [audio]

https://www.lennysnewsletter.com/p/head-of-claude-code-what-happens
1•ftchd•29m ago•2 comments

Aesthetics of single threading

https://ta.fo/aesthetics-of-single-threading/
2•todsacerdoti•30m ago•0 comments

MeshTNC is a tool for turning consumer grade LoRa radios into KISS TNC compatib

https://github.com/datapartyjs/MeshTNC
2•todsacerdoti•30m ago•0 comments

EDuke32 – Duke Nukem 3D (Open-Source)

https://www.eduke32.com/
9•reconnecting•34m ago•0 comments

Show HN: See – searchable JSON compression (offline 10-min demo)

https://gitlab.com/kodomonocch1/see_proto
3•Tetsuro•37m ago•0 comments