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/

A week of debugging the Notion MCP in Claude

https://automato.substack.com/p/build-task-manager-claude-live-artifacts
1•andrewstetsenko•1m ago•0 comments

Mobile Observability for AI Agents

https://blog.bitdrift.io/post/query-reality-ai-observability
1•karinakarina3•2m ago•0 comments

Five AI Agent Failures in 36 Days. Zero Times the Agent Caught It

https://grith.ai/blog/36-days-5-ai-agent-security-failures-0-self-detections
1•edf13•2m ago•0 comments

FDA finds 'significant violations' committed by major manufacturer

https://www.dailymail.com/health/article-15769673/FDA-warning-manufacturer-pain-relievers-ADHD-dr...
2•Bender•2m ago•1 comments

US judges weigh risks as AI seeps into judicial work

https://www.reuters.com/legal/government/us-judges-weigh-risks-ai-seeps-into-judicial-work-2026-0...
2•1vuio0pswjnm7•3m ago•1 comments

Show HN: I built a zero-tracking news hub to escape doomscrolling and clickbait

1•blazeeofsun•3m ago•0 comments

Trump Fired the National Science Board. Here's Why That Matters

https://www.forbes.com/sites/johndrake/2026/04/25/trump-fired-the-entire-national-science-board-h...
1•pseudolus•4m ago•0 comments

PgBackRest is archived, what now?

https://percona.community/blog/2026/04/28/pgbackrest-is-archived-what-now/
1•nikolay_sivko•4m ago•0 comments

VibeLens: Visualize, personalize, and audit your AI agent sessions

https://github.com/CHATS-lab/VibeLens
1•yejh•5m ago•0 comments

Another US state wants to force registration for all e-bikes

https://electrek.co/2026/04/27/another-us-state-wants-to-force-registration-for-all-e-bikes/
1•Bender•5m ago•0 comments

Open routines, local AI workflow automation

https://open-routines.com/
1•lbreakjai•5m ago•0 comments

CATL says sodium batteries are mainstream-ready, signs 60 GWh deal

https://electrek.co/2026/04/27/catl-sodium-ion-battery-60gwh-energy-storage-deal/
1•Bender•6m ago•0 comments

Show HN: Rhythmguard – spacing scale enforcement for CSS and Tailwind

https://github.com/PetriLahdelma/stylelint-plugin-rhythmguard
1•PetriLahdelma•6m ago•0 comments

Architectural Requirements for Agentic AI Containment

https://arxiv.org/abs/2604.23425
1•Mitchellrichard•6m ago•0 comments

PAVO-Bench – 50K voice turns and an 85K-param router for ASR→LLM→TTS

https://github.com/vnmoorthy/pavo-bench
1•vnmoorthy•7m ago•0 comments

The medieval habit of 'two sleeps'

https://www.bbc.com/future/article/20220107-the-lost-medieval-habit-of-biphasic-sleep
1•smusamashah•7m ago•0 comments

Language Models Are Few-Shot Learners, They Just Can't Remember

https://www.aravindjayendran.com/writing/few-shot-learners-cant-remember
1•maxaravind•8m ago•1 comments

Data Lineage in DuckDB: How Duck_lineage Tracks Every Query

https://ilum.cloud/blog/data-lineage-in-duckdb-how-duck_lineage-tracks-every-query/
1•tanelpoder•9m ago•1 comments

Attack of the Killer Script Kiddies

https://www.theverge.com/ai-artificial-intelligence/915660/mythos-script-kiddies-hackers-attack-c...
1•Brajeshwar•10m ago•0 comments

Network Stats for Q1 2026: Neocloud Traffic Trends

https://www.backblaze.com/blog/network-stats-for-q1-2026-neocloud-traffic-trends/
1•LaSombra•10m ago•0 comments

Reporters at this news site are AI bots. OpenAI's appears to be funding it

https://www.modelrepublic.org/articles/the-reporters-at-this-news-site-are-ai-bots.-openai%E2%80%...
2•speckx•12m ago•0 comments

Show HN: I built a WhatsApp bot to help you remember birthdays

https://bub.club
1•jonnyburch•14m ago•0 comments

IBM Bob

https://bob.ibm.com
2•psim1•14m ago•2 comments

They said AI would kill SaaS boilerplates, but it's doing the opposite

https://wasp.sh/blog/2026/04/23/14k-stars-open-saas-ai-era
1•matijash•14m ago•0 comments

AI and Coder Employment: Compiling the Evidence [pdf] [Federal Reserve]

https://www.federalreserve.gov/econres/feds/files/2026018pap.pdf
1•ryan_j_naughton•15m ago•0 comments

Golang heap profiling without pprof enabled or eBPF

https://coroot.com/blog/zero-config-go-heap-profiling/
1•nikolay_sivko•15m ago•0 comments

No Idle GPUs: Managing Research Compute at Runway

https://runwayml.com/news/no-idle-gpus-managing-research-compute-at-runway
1•itunpredictable•15m ago•0 comments

Panama's ocean lifeline vanishes for the first time in 40 year

https://www.sciencedaily.com/releases/2026/04/260426012253.htm
1•pseudolus•16m ago•0 comments

Tight Curves and Wide Horizons: The Return of Highway 1

https://www.nytimes.com/2026/04/28/travel/california-highway-1.html
1•mitchbob•17m ago•1 comments

Show HN: VoiceGoat – A vulnerable voice agent for practicing LLM attacks

https://github.com/redcaller/voice-goat
5•xmhatx•17m ago•1 comments