frontpage.
newsnewestaskshowjobs

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/

Show HN: I built an open source alternative to Workflowy

https://dotflowy.com
1•campak•1m ago•0 comments

AppLess – Generative UI at 1800 tokens per sec

https://github.com/thesysdev/appless
1•zahlekhan•1m ago•0 comments

The rate at which Earth is absorbing energy is alarming climate scientists

https://www.economist.com/science-and-technology/2026/07/15/the-rate-at-which-earth-is-absorbing-...
1•doubleg•2m ago•1 comments

SnippAI – Screenshot, speak, straight into your Claude Code session

https://snippai.dev
1•brothaakhee•5m ago•1 comments

Akamai (Linode) Changed How It Bills New Compute – What It Meant for Our Dataset

https://webbynode.com/articles/akamai-changed-how-it-bills-new-compute-this-month-july-2026-heres...
1•gsgreen•6m ago•0 comments

Pong Wars on the Commodore 64

https://imrannazar.com/articles/c64-pongwars
1•homarp•6m ago•1 comments

Slashfriends – A Directory of /Friends Pages

https://slashfriends.org/
1•herbertl•8m ago•0 comments

#1 Standup on my projet progress

https://twitter.com/ab44997/status/2077782776275718429
1•atomiomi•9m ago•1 comments

Show HN: Open-source AI app builder you can embed into your own SaaS

https://github.com/totalumlabs/ai-app-builder-open
1•francescjuille•10m ago•0 comments

Show HN: PokeTokenBar – Raise a Pokémon with your AI token usage

https://github.com/chattymin/PokeTokenBar
1•chattymin•15m ago•1 comments

Chip Motors

https://chipmotors.com/
1•skadamat•16m ago•0 comments

Everything I googled in a week as a professional software engineer (2019)

https://localghost.dev/blog/everything-i-googled-in-a-week-as-a-professional-software-engineer/
1•downbad_•16m ago•0 comments

Ubuntu Kernel Team Warns of Temporary AMD GPU Performance Regression Up to 42x

https://www.phoronix.com/news/Ubuntu-7.0-AMDGPU-Regress
3•dabinat•17m ago•0 comments

Financial advice I can give you is to sell your car

https://yourbrainonmoney.substack.com/p/the-best-financial-advice-i-can-give
2•herbertl•18m ago•0 comments

Reducing Layer Overhead in LBSE

https://blogs.igalia.com/nzimmermann/posts/2026-07-14-lbse-conditional-layers/
2•ksec•18m ago•0 comments

Ask HN: Best meeting transcription daemon for macOS?

1•tomelliot•18m ago•0 comments

Google Earth Desktop Client to Be Retired in 2027

https://hackaday.com/2026/07/16/google-earth-desktop-client-to-be-retired-in-2027/
2•anonymousiam•19m ago•0 comments

I auto-published 2,300 AI articles and Google buried 90% of my traffic

https://martin-schenk.es/blog/2300-ai-articles-google-buried-my-traffic/
1•martin_schenk•21m ago•0 comments

What would a rainbow be like on Tatooine? [video]

https://www.youtube.com/watch?v=BO8rOs05v48
1•arbesman•22m ago•0 comments

Building a High Performance Order matching system from scratch

https://harshiyer.in/blog/farzi-exchange
1•proximuz•23m ago•0 comments

Yann LeCun on AMI Labs, JEPA, and the AI World of 2030

https://nebius.science/stories/meet-yann-lecuns-lab-and-the-ai-world-of-2030?shem=rimspwouohc,
2•natali_gray•24m ago•0 comments

Show HN: Token Gobbler – the goofy game where you're the LLM

https://tokengobbler.vercel.app/
1•dschwede•24m ago•0 comments

Launching vorfluxai: The autopilot for software engineering

https://twitter.com/myprasanna/status/2077069901546852688
1•samaysharma•25m ago•0 comments

Show HN: A commerce Network built on UCP for agents to discover and Pay

https://kifly.ai
1•roberttk1•26m ago•1 comments

Stateless API middleware to auto-throttle digital menus based on live POS volume

https://eighty6ai.onrender.com/index.html
1•jayaindran4•26m ago•0 comments

Filtering Secrets from Coding Agents with a Hook

https://crimede-coder.com/blogposts/2026/SecretHooks
1•apwheele•27m ago•0 comments

Show HN: Tmux tab markers for Claude Code, Grok, and pi sessions

https://github.com/jhickner/tmux-agent-tabs
1•jhickner•27m ago•0 comments

Show HN: Sentinel – open-source QA agent that reads your code before it clicks

https://blog.simbastack.com/announcing-sentinel/
3•asenna•28m ago•0 comments

Show HN: Docs.dev Your Own Hosted Docs Platform in Minutes

https://docs.dev
3•linktothenew•29m ago•0 comments

AI Was Supposed to Save Companies Money. Instead, It's Blowing Up Budgets

https://www.inc.com/chris-morris/ai-was-supposed-to-save-companies-money-instead-its-blowing-up-b...
3•1vuio0pswjnm7•30m ago•0 comments