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/

Claude Code and Codex Sandbox Untrusted Code

https://medium.com/@Koukyosyumei/how-claude-code-and-codex-sandbox-untrusted-code-ba39b493046a
2•syumei•1m ago•1 comments

Pkgxray

https://github.com/adamsjack711-ux/pkgxray
1•jadamsl•2m ago•0 comments

Peppa Pig studio wants to clone child actors' voices with AI indefinitely

https://www.gadgetreview.com/peppa-pigs-ai-voice-clause-draws-nearly-1000-industry-objections
3•yayitswei•4m ago•1 comments

Show HN: A benchmark for the failure modes of agent memory

https://github.com/Kausha3/agent-memory-bench
1•Pankhi123•4m ago•0 comments

Sony Drops Studio Canal Movies from PS Store

https://www.playstation.com/en-gb/legal/psvideocontent/
1•tau255•5m ago•0 comments

What Happens When AI Agents Refuse to Work Until They're Paid

https://blog.owulveryck.info/2026/06/25/from-isolated-agents-to-agentic-mesh-orchestrating-sdlc-w...
3•owulveryck•12m ago•0 comments

'Careless People' author claims Meta surveilled her for 12mos to enforce silence

https://fortune.com/2026/06/26/meta-wynn-williams-surveillance-gag-order-lawsuit-2026/
7•1vuio0pswjnm7•13m ago•0 comments

Grok Is More Important Than Clean Air, DOJ Says

https://www.motherjones.com/environment/2026/06/grok-doj-justice-naacp-clean-air-act-gas-turbine-...
5•Planktonne•15m ago•0 comments

Roach PHP – The complete webscraping toolkit for PHP

https://roach-php.dev/docs/introduction/
1•ms7892•15m ago•0 comments

Wikipedia Cofounder Larry Sanger Banned from Site for 'Canvassing'

https://www.404media.co/wikipedia-cofounder-larry-sanger-banned-from-site-for-canvassaing/
2•donohoe•16m ago•0 comments

The prime your computer finds while you sleep

https://primecrunch.com/blog/3/the-prime-your-computer-finds-while-you-sleep
2•andyhedges•18m ago•0 comments

Show HN: Kiso, an open-source publishing engine for Open Knowledge Format

https://oak-invest.github.io/kiso/
1•straumat•19m ago•0 comments

Should European housing politics be Americanized?

https://worksinprogress.co/issue/should-european-housing-politics-be-americanized/
1•JumpCrisscross•19m ago•0 comments

OpenZL

https://openzl.org/
1•enz•22m ago•0 comments

Datavessel – ecommerce and marketing agents of new age

https://www.datavessel.io/
1•djr4•23m ago•0 comments

NSA's SIGINT Enabling Project includes sabotaging cryptographic standards

https://nsa.2026.action.cr.yp.to/
3•rasengan•25m ago•1 comments

The $546,000 Door

https://housingimpact.substack.com/p/the-546000-door
1•JumpCrisscross•25m ago•0 comments

Stroustrup's Rule (2024)

https://buttondown.com/hillelwayne/archive/stroustrups-rule/
1•bmacho•25m ago•0 comments

EV demand powers Europe car market in May, Chinese rivals expand share

https://www.reuters.com/world/china/ev-demand-powers-europe-car-market-may-chinese-rivals-expand-...
1•JumpCrisscross•27m ago•0 comments

Smooth-Maximum, the most useful function [video]

https://www.youtube.com/watch?v=6Qb6QtC6QMs
1•raphlinus•27m ago•0 comments

Show HN: HSON / Hson-Live

https://github.com/neutralica/hson-live
1•neutralica•27m ago•0 comments

Show HN: Formidable – local-first docs from YAML templates, with a REST API

https://github.com/petervdpas/Formidable2
1•petervdpas•28m ago•0 comments

Rich Harris on AI and Svelte [video]

https://www.youtube.com/watch?v=SKjXE_wfdDY
1•IcyFoxe•29m ago•0 comments

Show HN: Quizingo Vocabulary, a daily 3x3 English word association game

https://www.quizingo.app/vocabulary
1•coder97•30m ago•0 comments

Zoryn Local-first speech-to-text for macOS, audio never leaves your Mac

https://zoryn.ai
1•sudeepdalal•35m ago•0 comments

Murmur: A Speaker with a World Inside

https://www.murmur.living/
1•gehwartzen•37m ago•0 comments

Everyone feared AI taking over; the real danger is AI serving just the few

4•PhilipDaineko•39m ago•2 comments

Reef: Paste bash into fish. It just works

https://github.com/ZStud/reef
2•thunderbong•43m ago•0 comments

Update Your Secure Boot Cert Before It Expires

https://nochan.net/b/Internet-Crap/20260621-Update-Secure-Boot-Cert-Before-It-Expires/
2•Bender•44m ago•1 comments

Shard your locks: benchmarking 6 Golang cache designs

https://strebkov.dev/posts/shard-your-locks/
1•fanf2•45m ago•0 comments