frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•8mo ago

Comments

bastawhiz•8mo ago
Is this a problem that people actually have?
xeromal•8mo ago
Fun side project man!
primitivesuave•8mo 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•8mo 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•8mo ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•8mo 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•8mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

Vibe coding is a blight on open-source

https://old.reddit.com/r/webdev/comments/1qcxres/vibe_coding_is_a_blight_on_opensource/
1•doppp•5m ago•0 comments

Learning better decision trees – LLMs as Heuristics for Program Synthesis

https://mchav.github.io/learning-better-decision-tree-splits/
1•mchav•5m ago•0 comments

Divorce app to save you lawyers fee

https://replantlife.com/
1•cheroll•7m ago•1 comments

Meditation and Unconscious: A Buddhist Monk and a Neuroscientist (2022)

https://thereader.mitpress.mit.edu/meditation-and-the-unconscious-buddhism-neuroscience-conversat...
1•arunc•14m ago•0 comments

Do not give up your brain

https://cassidoo.co/post/good-brain/
1•gpi•15m ago•0 comments

Reality Is Breaking the "AI Revolution"

https://www.planetearthandbeyond.co/p/reality-is-breaking-the-ai-revolution
1•handfuloflight•21m ago•0 comments

Teen Jailed After Exploiting Refund Policy for $570k

https://www.vice.com/en/article/teen-jailed-after-exploiting-refund-policy-for-570000/
2•lnguyen•24m ago•1 comments

RubyShell: Ruby way to create shell scripts

https://github.com/albertalef/rubyshell
1•thunderbong•28m ago•0 comments

Ask HN: Convince me on why AI matters

1•moh20•30m ago•3 comments

New York proposal requires 3D printer manufacturers to prevent printing guns

https://www.tomshardware.com/3d-printing/new-york-state-takes-steps-to-ban-3d-printed-guns-propos...
3•josephcsible•33m ago•2 comments

Anatomy of an Excellent OpenCode Skill: Lessons from Cloudflare-Skill

https://medium.com/@jpcaparas/anatomy-of-an-excellent-opencode-skill-lessons-from-cloudflare-skil...
2•zenoware•33m ago•0 comments

The missed opportunity of constrained decoding

https://michaelorenstein.com/blog/zero-entropy-tokens/
2•killcoder•34m ago•2 comments

Show HN: I've Built a Python Playground

https://playcode.io/python-compiler
1•ianberdin•35m ago•0 comments

Trump Sets Fraudster Free from Prison for a Second Time

https://www.nytimes.com/2026/01/16/us/politics/trump-fraudster-pardon.html
1•duxup•36m ago•1 comments

Show HN: AI video generator (React output)– now with script gen and voice select

https://ai.outscal.com/
1•mayankkgrover•40m ago•0 comments

Global sports face challenges from 'AI slop' misinformation

https://www.reuters.com/sports/global-sports-face-challenges-ai-slop-misinformation-2026-01-17/
1•1vuio0pswjnm7•41m ago•0 comments

Show HN: Use Claude CLI to analyze its own protocol

https://github.com/mzhaom/claude-cli-protocol
1•keytalker•42m ago•0 comments

Counterfactual evaluation for recommendation systems

https://eugeneyan.com/writing/counterfactual-evaluation/
2•kurinikku•43m ago•0 comments

Google asks US judge to defer order forcing it to share data while it appeals

https://www.reuters.com/sustainability/boards-policy-regulation/google-asks-us-judge-defer-order-...
2•1vuio0pswjnm7•43m ago•0 comments

Anthropic opens up its Claude Cowork feature to anyone with a $20 subscription

https://www.engadget.com/ai/anthropic-opens-up-its-claude-cowork-feature-to-anyone-with-a-20-subs...
2•swolpers•50m ago•0 comments

The Pink Park Ranger Takedown: CCC vs. White Supremacy

https://canada.diplo.de/ca-en/about-us/vancouver/2751436-2751436
2•DyslexicAtheist•51m ago•2 comments

My daughter's boyfriend gave me a custom keyboard? I don't like it. What now?

2•0xWTF•53m ago•2 comments

A Nazi theorist's vision of a world divided has found a new advocate?

https://www.theguardian.com/commentisfree/2026/jan/16/nazi-theorist-vision-great-spaces-new-advoc...
1•KnuthIsGod•57m ago•0 comments

Show HN: CodeSyncer – Store AI coding context in code comments

https://github.com/bitjaru/codesyncer
1•bitjaru0402•57m ago•1 comments

I trained a 90-day weather AI on a single GPU using 150 years of data

https://github.com/consigcody94/lilith
1•sentinelowl•57m ago•1 comments

Remove Video Watermark, Logo and Subtitle

https://www.removewatermarker.com
1•ace520•57m ago•0 comments

AWS Duvet: a bidirectional link between implementation and specification

https://awslabs.github.io/duvet/
2•forks•1h ago•0 comments

Buffer Overflow in Qualcomm Snapdragon X65 Baseband

https://github.com/0verdu/X65_BufferOverflow
3•ggm•1h ago•0 comments

Open Claude Cowork Compatible with Any LLM API on Win/Linux/macOS

https://github.com/cowork-studio/OpenCowork
1•agi-hub•1h ago•0 comments

Build a Digital Clock from the 1980's

https://eightiesclock.mit.edu/
3•barishnamazov•1h ago•0 comments