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/

Open Source AI Research Collaboration Platform

https://station-house.net/
1•stationhouse•12m ago•1 comments

I am building Threadz. Human first AI writing app

1•shoebilyas_hanz•16m ago•1 comments

Show HN: TabVault – Export Chrome Tab Groups to Obsidian as Markdown

https://github.com/aryamantepal/tabvault
1•aryamantepal•18m ago•0 comments

Tinker – a lightweight WoW addon manager

https://tinker.lukeed.com/
1•lukeed•20m ago•1 comments

Ask HN: What do you use to get the latest technical AI news?

1•tini-giang•21m ago•1 comments

Open Source Web Operating System Terminal Velocity

https://republicka.life/terminal-velocity.html
1•BardPresident•23m ago•0 comments

Turn prompts into images and editable SVGs with GPT Image 2.6

https://reapi.ai/models/gpt-image-2-6
1•andrew06124•25m ago•0 comments

Unlocking any car from X brand in most of the world

https://shubs.io/unlocking-any-car-from-x-brand-in-most-of-the-world/
2•infosecau•26m ago•0 comments

Debezium Postgres WAL Subscription Monitoring

https://turbolytics.io/blog/debezium-wal-growth-postgres/
1•dm03514•41m ago•0 comments

Peering over the Waterfall

https://ben.bolte.cc/posts/2026-11-08-agi/
1•codekansas•41m ago•0 comments

Money that pays people to preserve and evolve the heritage of their land

https://gno.cash/
1•jaekwon•44m ago•2 comments

The Last Man (1805)

https://www.weslpress.org/9780819566089/the-last-man/
1•debo_•44m ago•0 comments

Earning Report in Simple Language

https://plainearnings.github.io/plainearnings/
1•tripolony•45m ago•0 comments

OpenAGPS – The New Kid on the Block

https://sunweavers.net/blog/node/161
1•edward•45m ago•0 comments

Show HN: Velorki - open-source bike navigation that works with just your phone

https://velorki.com
2•morrk0r•47m ago•0 comments

Tell HN: A flood of reports of Opus 5.5 being nerfed

4•b--l•47m ago•2 comments

Google Soft 404 for a page titled What is a 404 Error?

https://mojodojo.io/blog/google-soft-404-for-a-page-titled-what-is-a-404-error
1•zenincognito•49m ago•0 comments

Cruise ship pianist rescued after nine hours treading water miles from shore

https://www.theguardian.com/us-news/2026/nov/08/royal-caribbean-cruise-ship-pianist-rescue
4•mellosouls•51m ago•1 comments

Fictitious Investigation by Springer Nature's Research Integrity Team

https://utie-instruments.com/springer-nature-research-integrity.html
1•TazeTSchnitzel•52m ago•1 comments

I'm Not Convinced the AI Bubble Exists

https://matteoraso.github.io/im-not-convinced-the-ai-bubble-exists.html#im-not-convinced-the-ai-b...
3•matteoraso•52m ago•0 comments

Anybody Have Proxy Links?

1•WxfflessLol•57m ago•1 comments

When Writers Lose Faith in Free Speech

https://www.theatlantic.com/ideas/2026/11/philip-roth-political-novelists/689337/
1•tkgally•1h ago•0 comments

I shipped a CLI and what I run is a proxy

https://avelino.run/mcp-cli-became-a-proxy/
1•neiesc•1h ago•0 comments

Veda: The Agentic Native Hobby OS

https://github.com/vahmoh/Veda
1•vahmoh25y•1h ago•0 comments

Herb Sutter: When a language's creator and its owners strongly disagree [pdf]

https://isocpp.org/files/papers/P4454R0.pdf
27•acossta•1h ago•3 comments

Micron – a Pascal/Oberon-derived systems language with the power of C

https://github.com/rochus-keller/Micron/blob/master/Readme.md
3•birdculture•1h ago•0 comments

How to Build the Future: Paul Graham and Amjad Masad [video]

https://www.youtube.com/watch?v=Q78dJ0vkWe8
1•gmays•1h ago•0 comments

Avatar Web Integration

https://www.lee-ai.com/
3•eschwalme•1h ago•1 comments

Astryx: An open source design system that's customizable and agent ready

https://github.com/meta/astryx
2•pierreneter•1h ago•1 comments

Email Encryption

https://computer.rip/2026-07-19-email-encryption.html
2•pierreneter•1h ago•0 comments