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/

NIST IR 8547 Final: What changed and what it means for post-quantum migration

https://quantumgate.ae/blog/nist-ir-8547-final-pqc-migration/
1•teleforce•45s ago•0 comments

Show HN: ToHD – Free in-browser video upscaler running Real-ESRGAN on WebGPU

https://tohd.video/
1•flreey•2m ago•0 comments

OONI: Open Observatory of Network Interference

https://ooni.org
1•fanf2•4m ago•0 comments

RFC 4422: Simple Authentication and Security Layer (SASL) (2006)

https://www.rfc-editor.org/info/rfc4422/
1•locknitpicker•4m ago•0 comments

Show HN: Fitrail – Local-first fitness and sleep tracker with route privacy

https://fitrail.lyfmail.com
1•ajaykumarc•5m ago•0 comments

Possible Security Breach at Ionos

https://wirtschaft-tv.com/nachrichten/hinweise-auf-sicherheitsvorfall-bei-ionos-cloud.html
1•schaum•6m ago•1 comments

Earth just shattered a worrying temperature record–mere days after setting it

https://www.scientificamerican.com/article/earth-just-shattered-a-worrying-temperature-record-mer...
2•robtherobber•9m ago•0 comments

Show HN: Developer tools that run in the browser, nothing uploaded

https://xutil.in/
1•RohitPModani•10m ago•0 comments

Get in losers, we're building AI

https://geohot.github.io//blog/jekyll/update/2026/12/01/get-in-losers-were-building-ai.html
11•trulyrandom•14m ago•0 comments

Ask HN: How do you do review in the age of agents?

1•jaapz•17m ago•1 comments

Show HN: On-chain E2E encrypted messaging on Ethereum

https://0xtalks.org/
2•dappbuilder•19m ago•0 comments

How Immutable Is Your Immutable Root of Trust?

https://danielmangum.com/posts/how-immutable-rot/
2•hasheddan•21m ago•0 comments

Kirocrew Release v0.14.0

https://github.com/kirodotdev/KiroCrew/releases/tag/v0.14.0
1•syrgian•22m ago•1 comments

Benchmark results mean nothing, all that matters is the production harness

https://deepsense.ai/blog/openai-for-enterprise-agents-architecture-reliability-and-cost-in-2027/
3•nvmdbljstm•28m ago•0 comments

Git in the JupyterLite Terminal

https://notebook.link/blog/git2cpp/
1•runningmike•30m ago•0 comments

The PSF Security Roadmap for Python and PyPI

https://pyfound.blogspot.com/2026/11/psf-security-roadmap-2027.html
1•runningmike•34m ago•0 comments

Speedy Cutover Service, filmed live at Glendale CA central office, 1984 [video]

https://www.youtube.com/watch?v=saRir95iIWk
2•martyfunkhouser•35m ago•1 comments

Cafe(s): Your Agent Is Only as Good as Its Context

https://queue.acm.org/doi/10.1145/3847288
3•kiyanwang•36m ago•2 comments

Show HN: Real-time audio converter on the web

https://variation.app
1•khongchai•36m ago•0 comments

Kiro Crew

https://kiro.dev/crew/
1•trueduke•37m ago•0 comments

Show HN: Onshore – open-source data residency and data sovereignty solution

https://github.com/Onshore-HQ/onshore
1•ezehremigius•40m ago•0 comments

After the trace: what 1,085 Reddit comments reveal about debugging AI agents

https://traceroot.ai/blog/2026-10-06-after-the-trace-reddit-agent-debugging
1•ztan56•41m ago•0 comments

Toyota's top-selling car in Europe will become an EV, following the Corolla

https://electrek.co/2026/11/30/toyotas-top-seller-europe-become-ev-after-corolla/
1•cisc•41m ago•0 comments

Rebuilt StreetReaderAI Is Now Open Source

https://makeabilitylab.cs.washington.edu/news/rebuilt-streetreaderai-is-now-open-source/
1•01-_-•41m ago•0 comments

Nightshift: Plan, execute and review coding-agent work as files

https://github.com/orwa-mahmoud/nightshift
3•zachshallbetter•43m ago•0 comments

Design for Understandability – Schuster on Software

https://jschuster.org/blog/2026/11/19/design-for-understandability/
1•kiyanwang•43m ago•0 comments

How do you become known as a good engineer?

https://www.approachwithalacrity.com/p/how-do-you-become-known-as-a-good
2•kiyanwang•46m ago•0 comments

How Tyranny Works

https://www.theguardian.com/commentisfree/2026/nov/30/trump-silence-media
1•KingOfMyRoom•46m ago•0 comments

Megaspeed records reveal $13B in Nvidia deals with Alibaba unit

https://www.reuters.com/world/china/megaspeed-records-reveal-13-billion-nvidia-deals-with-alibaba...
4•01-_-•46m ago•0 comments

R/ClaudeCode: The files are editable

https://www.reddit.com/r/ClaudeCode/comments/1y65hxs/the_files_are_editable/
2•TechTechTech•47m ago•0 comments