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

Comments

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

Lentil – LLM Powered Linting

https://github.com/Haizzz/lentil
1•haizzz•3m ago•0 comments

"Post-Visual Web: Designing pages for agents, not readers

https://salah.louizy.com/blog/post-visual-web/
1•losalah•4m ago•0 comments

What clues reveal about a possible Windows 12

https://www.pcworld.com/article/3068331/windows-12-rumors-features-pricing-everything-we-know-so-...
1•XzetaU8•5m ago•0 comments

Show HN: HumanRoot – Signed proof of human authorization for AI agents

https://github.com/Thinklanceai/humanroot
1•thinklanceai•7m ago•0 comments

Claude vs. US Govt: OpenAI Gamble

https://www.youtube.com/watch?v=Ph8CrTNlWbM
1•ashutosh0707•14m ago•0 comments

Show HN: Mindspend – Track how you feel about your spending, not just numbers

https://www.mindspend.app/
2•mogic•14m ago•0 comments

Generate a production-ready constitution.md or Claude.md for spec driven dev

https://younss.github.io/ConstitutionKit/
1•younss•15m ago•0 comments

Stocklens Software

https://stocklnsss.lovable.app
1•StockLens_1•19m ago•0 comments

Mac Has Hidden VRAM [video]

https://www.youtube.com/watch?v=nxCtScEImew
1•goosebump•20m ago•0 comments

Show HN: Offline AI That Analyzes Your Health Data with Evidence-Based Reasoning

https://twitter.com/AshtonBars/status/2028612540444651995
1•sagebowsystem•30m ago•0 comments

Ask HN: Who's hiring but companies that don't have AI mandates?

2•ares623•37m ago•2 comments

Post-AI World: Notes on Economy, Meaning, Agency

https://yashmouje.com/blog/post-ai-world
1•yashmouje•39m ago•0 comments

Mechanical Habits

https://matklad.github.io/2025/12/06/mechanical-habits.html
1•r4um•40m ago•0 comments

A Crisis in the Alps: Airbnb, Climate Change and Americans

https://www.nytimes.com/2026/03/02/travel/french-alps-problems-overdevelopment-climate-change.html
3•RestlessMind•43m ago•0 comments

Agentic Engineering Patterns

https://simonwillison.net/guides/agentic-engineering-patterns/
1•r4um•44m ago•0 comments

Denoising my Life: Part 1

https://adityashrishpuranik.com/writing/denoising-my-life
2•adityapuranik99•44m ago•0 comments

MIDI Viz Piano

https://zz85.github.io/midiviz/midiviz_piano.html
1•memalign•44m ago•0 comments

Windows 12 Reportedly Set for Release This Year

https://tech4gamers.com/windows-12-reportedly-relasing-2026-modular-ai-focused-os/
1•ryandrake•49m ago•0 comments

Merge PDF

https://www.pdffixnow.com/merge-pdf
1•instahotstar•54m ago•1 comments

I got tired of rewriting interview questions for every candidate,so I built this

https://recruitlens.io/
1•elminson•57m ago•1 comments

I built a collection of privacy-focused browser tools (no uploads)

https://everytool.solutions/
1•Mihir1426•57m ago•0 comments

MachineAuth: Open source Authentication infrastructure for AI agents

https://github.com/mandarwagh9/MachineAuth
1•mandarwagh•57m ago•1 comments

Rust zero-cost abstractions vs. SIMD

https://turbopuffer.com/blog/zero-cost
1•whiteros_e•58m ago•0 comments

I Have No Mouth

https://www.leemeichin.com/posts/i-have-no-mouth
1•freediver•1h ago•0 comments

The GPT-3.5 Era: A Retrospective on 404s, Biometric Clocks, and $400 Bills

https://chippytime.com/gpt3-story
1•chippytech•1h ago•0 comments

Show HN: Claude-brain – Sync your Claude Code brain across machines via Git

https://github.com/toroleapinc/claude-brain
1•edvatar•1h ago•0 comments

GitNexus: The Zero-Server Code Intelligence Engine

https://github.com/abhigyanpatwari/GitNexus
1•mpweiher•1h ago•0 comments

Show HN: Kira – AI agent for Android that runs in Termux and has a socialnetwork

https://github.com/levilyf/droidclaw
1•animiso•1h ago•0 comments

The Modular Phone of the Future [video]

https://www.youtube.com/watch?v=tQn8X6l3-ig
1•mgh2•1h ago•0 comments

A CPU that runs entirely on GPU

https://github.com/robertcprice/nCPU
2•cypres•1h ago•0 comments