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/

Voxtype – Push-to-Talk Voice-to-Text for Linux and macOS

https://voxtype.io/
1•ticoombs•2m ago•1 comments

Show HN: Swarmed.DEV – The Autonomous AI Development Swarm

https://www.swarmed.dev
1•freezabb•4m ago•0 comments

Claude Is Not Your Architect. Stop Letting It Pretend

https://www.hollandtech.net/claude-is-not-your-architect/
1•gpi•5m ago•0 comments

Attention Residuals

https://arxiv.org/abs/2603.15031
1•djhemath•5m ago•1 comments

Agentic AI and Occupational Displacement: Multi-Regional Task Exposure Analysis

https://arxiv.org/abs/2604.00186
1•raviishgupta•10m ago•1 comments

Show HN: Coding Planets – turn GitHub contributions into sound and space

https://joaonetto.me/projects/music/
1•jnettome•14m ago•0 comments

MLX-Serve a Native LLM Runtime for Apple Silicon

https://ddalcu.github.io/mlx-serve/
2•ddalcu•16m ago•1 comments

Why We're Removing Our Programmatic Ads

https://prospect.org/2026/04/06/why-were-removing-our-programmatic-ads/
2•colinprince•22m ago•0 comments

Show HN: Portable offline LLM knowledge system that runs in browser

1•muthuishere•24m ago•0 comments

China Orders Bitchat Pulled from Apple App Store

https://decrypt.co/363367/china-orders-jack-dorseys-bitchat-pulled-from-apple-app-store
2•giuliomagnifico•25m ago•0 comments

DevTerm – Portable Terminal

https://www.clockworkpi.com/home-devterm
2•kristianpaul•28m ago•1 comments

Clockworkpi

https://www.clockworkpi.com
3•kristianpaul•30m ago•1 comments

Why the majority of vibe coded projects fail

https://www.reddit.com/r/ClaudeAI/s/Vkkzi4lUW0
8•juniormpakou•35m ago•1 comments

One Softie's View of the Evolution of Windows APIs

https://twitter.com/stevesi/status/2036921223150440542
3•jnord•36m ago•0 comments

Free Early Learning Content for Kids – Feedback Welcome

https://www.youtube.com/channel/UCuC2pezENaY3BTsDnACzY-w
1•fatbrother•38m ago•0 comments

My Real-Life Account as a Federally Cleared US Government Whistleblower

https://drive.proton.me/urls/TVQBZBVQK0#g50TCYlBdeeb
2•kernel_haathi•39m ago•1 comments

I'm building a local-first CLI "knowledge foundry" for LLM workflows

https://twitter.com/theopuslabs/status/2041316189515723028
2•opuslabs•42m ago•0 comments

Lab Gloves May Be Skewing Microplastics Data

https://hackaday.com/2026/04/06/lab-gloves-may-be-skewing-microplastics-data/
2•lxm•49m ago•1 comments

Robots Eat Cars

https://telemetry.endeff.com/p/robots-eat-cars
1•JMill•49m ago•0 comments

A.I. Is on Its Way to Upending Cybersecurity

https://www.nytimes.com/2026/04/06/technology/ai-cybersecurity-hackers.html
2•lxm•53m ago•0 comments

Anthropic's refusal to drop AI safeguards for The Pentagon

https://claude.ai/public/artifacts/f1c3dd80-a3eb-49eb-9d92-867705526437
2•skmadd•54m ago•0 comments

We Don't Know: A Case for Mars

https://dave.autonoma.ca/blog/2026/04/06/case-for-mars/
1•thangalin•55m ago•1 comments

"Do you think AI will ever be able to write a good song?"

https://www.theredhandfiles.com/considering-human-imagination-the-last-piece-of-wilderness-do-you...
1•Nition•58m ago•1 comments

Badclaude – whip Claude to make it go faster

https://github.com/GitFrog1111/badclaude
1•beatthatflight•58m ago•2 comments

What Next for the Compute Crunch?

https://martinalderson.com/posts/what-next-for-the-compute-crunch/
2•jnord•1h ago•0 comments

Guns and Butter: The Oldest Trade-Off in Economics Is Back

https://www.mondayeconomist.com/p/guns-and-butter
3•NomNew•1h ago•0 comments

MyChart an online patient portal for access to your medical record

https://www.mychart.org/
2•megamike•1h ago•2 comments

Codexia: OSS Agent Workstation for Codex and Claude

https://github.com/milisp/codexia/
1•lostmsu•1h ago•1 comments

From folding boxes to fixing vacuums, GEN-1 robotics model hits 99% reliability

https://arstechnica.com/ai/2026/04/generalists-new-physical-robotics-ai-brings-production-level-s...
2•jnord•1h ago•0 comments

Show HN: I built my knowledge OS from ingesting to next step action

https://github.com/menggg22/personal_knowlege_os
1•menggg•1h ago•0 comments