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/

AgentMeter – Know what your AI coding agents cost

https://github.com/aussiealex/agentmeter
1•aussiealex27•34s ago•0 comments

Slixmpp 1.16.0 – XMPP/Jabber Library for Python – SleekXMPP

https://blog.mathieui.net/en/slixmpp-1-16.html
1•neustradamus•2m ago•0 comments

AgentsView

https://www.agentsview.io/
1•flippant•2m ago•0 comments

A Small Japanese Island Built a Community That Keeps Bringing Visitors Back

https://www.youtube.com/undefined
1•Akiko_Tsuka•2m ago•0 comments

Searching for startup ideas on the Google Workspace Marketplace, pt 2 (2025)

https://developerwithacat.com/blog/052025/google-workspace-marketplace-startups-part2/
1•mmarian•2m ago•0 comments

I Am Open Sourcing Hissab Calculator App, Skills, CLI and NPM

https://github.com/rawbytess/hissab
2•prenx4x•2m ago•0 comments

Show HN: A Bluesky client for PICO-8

https://picosky.vinnymac.dev/
2•vinnymac•4m ago•0 comments

Show HN: Time Progress Bar in macOS menu bar

https://timegauge.minilabs.cc/
1•introvertmac•6m ago•0 comments

Making extensions work on file: URLs in Firefox 153

https://utcc.utoronto.ca/~cks/space/blog/web/Firefox153AddonsOnFileUrls
1•speckx•8m ago•0 comments

Building an HTML-first site doubled our users overnight

https://mohkohn.co.uk/writing/html-first/
2•edent•9m ago•0 comments

Show HN: A Chrome extension that redirects only the YouTube homepage

https://github.com/rogulia/block-youtube-home-chrome-extension
1•rogulia•9m ago•1 comments

Show HN: A personality test with no questions – an AI watches your picks instead

https://app.olima.ai
1•alassanediop•9m ago•0 comments

Show HN: SNItch – fuzz the TLS SNI field to discover hidden virtual hosts

https://github.com/cirosec/SNItch
1•flixf•10m ago•0 comments

How R you using agents?

1•lillyjust•13m ago•1 comments

The Productive Sovereign: An AI Framework for Living Outside the System

https://greggbarbers.substack.com/p/the-productive-sovereign-an-ai-framework
1•taivare•13m ago•1 comments

Show HN: Tempis, a canvas-based timeline component for large datasets

https://tempis.dev/
1•nikkorn•15m ago•0 comments

Why Audiobooks Are Now a Major Piracy Target

https://www.plagiarismtoday.com/2026/06/09/why-audiobooks-are-now-a-major-piracy-target/
1•speckx•15m ago•0 comments

Claude Fable 5 System prompt

https://xcancel.com/elder_plinius/status/2064478648057610422#m
1•FergusArgyll•16m ago•0 comments

Biotech's AI Revolution Will Be Won in the Lab

https://www.tamiola.com/blog/biotechs-ai-revolution-will-be-won-in-the-lab
1•ktamiola•16m ago•0 comments

Show HN: LoopGain – Cut agent API spend by measuring when loops stop improving

https://github.com/loopgain-ai/loopgain
1•fitz2882•17m ago•1 comments

Support systems interpret and reinforce autistic masking: Visibility logic

https://www.tandfonline.com/doi/full/10.1080/09687599.2026.2659101
1•aleken•18m ago•0 comments

Show HN: RiskKernel, kill -9 an AI agent and resume it without paying twice

https://riskkernel.com/
2•prashar32•18m ago•0 comments

Valve removes Steam Gift Cards from stores due to scammers

https://help.steampowered.com/en/faqs/view/78E3-7431-1E88-AD59
2•HelloUsername•18m ago•0 comments

Acquiring a startup: what to do AFTER the deal closes: Dan Moore from FusionAuth

https://scalingdevtools.com/podcast/episodes/dan-moore-20b5f6a6-a30f-4ee8-82a4-64eacb40027f
1•mooreds•19m ago•0 comments

AI as "Co-Founder": GenAI for Entrepreneurship

https://arxiv.org/abs/2512.06506
1•reqo•20m ago•0 comments

Show HN: Hades – Unity context graph for Claude Code

https://github.com/TheArcForge/Hades
1•mikekuharuk•21m ago•0 comments

LLMs and Almost Good Code

https://entropicthoughts.com/llms-and-almost-good-code
1•gsky•23m ago•0 comments

TikFilmer – Create your AI movie from a single idea

https://tikfilmer.com/
1•aaron7yu•25m ago•0 comments

Google Gemini Is Down

https://www.techradar.com/news/live/gemini-down-june-2026
4•axsaucedo•26m ago•2 comments

State of AI coding spend: benchmarks from 800 developers and $2.3M of usage

https://www.viberank.app/blog/state-of-ai-coding-2026
1•nikshepsvn•27m ago•0 comments