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

Comments

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

LocalDom: Generate APIkey for Local LLM

1•ndukaaniemeka•39s ago•0 comments

Show HN: OpenHuman, an AI agent with a subconscious loop

https://github.com/tinyhumansai/openhuman
1•enamakel•1m ago•0 comments

YouTuber 'invisible' to America's army of cameras with anti-surveillance device

https://www.pcgamer.com/hardware/youtuber-goes-invisible-to-americas-army-of-cameras-with-his-usd...
1•evo_9•1m ago•0 comments

Frontier AI labs taking open-source and releasing it as a product

1•ainthusiast•2m ago•0 comments

LocalForge – Self-hosted LLM control plane with ML routing

https://github.com/al1-nasir/LocalForge
1•al1nasir•2m ago•0 comments

How we fixed prompt injection for all models on Fireworks

https://fireworks.ai/blog/safe-tokenization-preventing-prompt-injection-on-fireworks
1•smurda•3m ago•0 comments

Human drivers keep crashing into Waymos

https://www.understandingai.org/p/human-drivers-keep-crashing-into-454
2•speckx•5m ago•0 comments

Marathon training: Why hot baths might help you run faster

https://theconversation.com/marathon-training-why-hot-baths-might-help-you-run-faster-276796
2•PaulHoule•5m ago•0 comments

Cory Doctorow Admits Using a Slop-Machine to Produce His Drone of Propaganda

https://backlit.neocities.org/doctorow-admits-using-a-slop-machine-to-produce-his-propaganda
1•airhangerf15•5m ago•0 comments

Roo Code pivots to cloud-based agent, says IDEs aren't the future of coding

https://thenewstack.io/roo-code-cloud-ides-ai-coding/
1•Brajeshwar•5m ago•0 comments

Show IH: Knowledge Core

https://www.indiehackers.com/post/show-ih-knowledge-core-ecdf1646af
2•Ameya0•6m ago•0 comments

Show HN: Nimble.css minimal classless CSS library for great-looking default HTML

https://leftium.github.io/nimble.css/
2•Leftium•7m ago•0 comments

ChatGPT vs. a specialized medical AI on 5 clinical cases (verbatim outputs)

https://wizey.one/blog/2026/04/17/wizey-vs-chatgpt-5-clinical-cases-experiment/
2•wizeyone•8m ago•1 comments

Show HN: Reducing a 66-node dependency cycle to 13 in Scrapy

https://pvizgenerator.com/showcase/2026-04-scrapy-scc-refactor
2•pvizgenerator•8m ago•0 comments

High Intensity Functional Training: A Scoping Review (2025)

https://pmc.ncbi.nlm.nih.gov/articles/PMC12550923/
2•wslh•8m ago•0 comments

Browser using agents relying on expensive residential proxies?

2•maxalbarello•8m ago•0 comments

Anthropic: Using large language models to scale scalable oversight

https://www.anthropic.com/research/automated-alignment-researchers
1•theorchid•10m ago•0 comments

Show HN: Turning a Gaussian Splat into a Videogame

https://blog.playcanvas.com/turning-a-gaussian-splat-into-a-videogame/
2•yak32•11m ago•0 comments

'Staggering' number of people believe unproven claims about vaccines, raw milk

https://www.nature.com/articles/d41586-026-01285-2
3•voxadam•11m ago•1 comments

Teaching AI models to say "I'm not sure"

https://news.mit.edu/2026/teaching-ai-models-to-say-im-not-sure-0422
2•danroth27•12m ago•0 comments

The Sycophancy Problem: Why your AI is a Polite Liar (and how to fix it)

https://kampff.substack.com/p/the-sycophancy-problem-why-your-ai
2•Weatherill•12m ago•0 comments

A 95%-accurate AI agent fails 64% of the time on 20-step tasks

https://kenoticlabs.com/insights/ai-agent-failure
3•SamuelTanguturi•12m ago•0 comments

Paperback – generative UI, rendered on device – no pixel stream, no server GPU

https://bigballi.com/Paperback/
2•BigBalli•12m ago•0 comments

Mike Stonebraker Turing Award Winner: Postgres, Disagreeing with Google [video]

https://www.youtube.com/watch?v=YPObBOwIrHk
2•wrqvrwvq•12m ago•0 comments

Bitwarden CLI Compromised in Ongoing Checkmarx Supply Chain

https://socket.dev/blog/bitwarden-cli-compromised
4•tosh•12m ago•0 comments

Pentagon wants $54B for drones, more than most nations' military budgets

https://arstechnica.com/ai/2026/04/pentagon-wants-54b-for-drones-more-than-most-nations-military-...
3•voxadam•13m ago•0 comments

Show HN: Gova, a declarative GUI framework for Go

https://github.com/NV404/gova
3•vaibhavacharya_•14m ago•0 comments

Show HN: Claude Code skills for building LLM evals

https://github.com/latitude-dev/eval-skills
2•paulaq•14m ago•0 comments

OpenAI website has a full timeline of Elon Musk-related events

https://openai.com/elon-musk/
2•matthieu_bl•14m ago•0 comments

How to hit your Claude weekly limit so you can go outside and touch grass

https://jola.dev/posts/how-to-run-out-of-usage
2•shintoist•15m ago•2 comments