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

Comments

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

The Musidex: A physical music library for the streaming era

https://hannahilea.com/blog/musidex/
1•zdw•1m ago•0 comments

I'm Glad the Internet Wasn't Watching My Worst Breakup

https://yinsuboaster.substack.com/p/im-glad-the-internet-wasnt-watching
1•areoform•1m ago•0 comments

Show HN: High-performance Hex editor in C# with a custom DSL for binary patching

https://github.com/pumpkin-bit/EUVA
1•falkerdev•2m ago•1 comments

Unsinkable metal tubes could lead to resilient ships and floating platforms

https://techxplore.com/news/2026-01-unsinkable-metal-tubes-resilient-ships.html
1•PaulHoule•3m ago•0 comments

Cloud Deployment Headaches in AI Era

https://z11.dev
1•Omakidx•3m ago•1 comments

Stop Calling Optimization "Innovation."

https://werd.io/stop-calling-optimization-innovation/
1•speckx•4m ago•0 comments

Chief: Delightfully Simple Agentic Loops

https://www.geocod.io/code-and-coordinates/2026-02-18-introducing-chief/
1•mjwhansen•5m ago•0 comments

New Tool Makes 3D Printed PCBs, Fast

https://hackaday.com/2026/02/19/new-tool-makes-3d-printed-pcbs-fast/
1•greesil•5m ago•0 comments

We built a free tool that audits how AI agents see your website

https://clarvia.dev/
1•lr001328•5m ago•1 comments

Show HN: Tauri2 Any WebApp Wrapper

https://github.com/AtmanActive/Tauri2_Any_WebApp_Wrapper
1•atmanactive•5m ago•0 comments

Ambani Joins Adani, Tata with Plans to Invest $110B in AI

https://www.bloomberg.com/news/articles/2026-02-19/ambani-s-reliance-to-invest-110-billion-in-ai-...
1•newusertoday•5m ago•0 comments

Made codex app run on Windows

https://twitter.com/i/status/2024433646661451875
1•SubratGupta•6m ago•1 comments

Show HN: Use SQL to Query Your Claude/Copilot Data via DuckDB

https://duckdb.org/community_extensions/extensions/agent_data
1•axsaucedo•6m ago•0 comments

Mass Call: Laid-Off Tech Workers and Allies

https://wwwrise.org/
3•burkaman•6m ago•1 comments

The Relaxation Paradox: Why Zoning Out Doesn't Always Restore Your Energy

https://www.scotthyoung.com/blog/2026/02/17/relaxation-paradox/
1•samuel246•9m ago•0 comments

Repeating Prompts

https://daoudclarke.net/2026/02/19/repeating-prompt
1•daoudc•9m ago•0 comments

High-speed video system uses sensors, infrared illumination to track insects

https://phys.org/news/2024-01-high-speed-video-sensors-infrared-illumination.html
1•mhb•10m ago•0 comments

Clerk Is Down?

https://status.clerk.com
2•sarreph•10m ago•0 comments

The Pillars of Agent Security

https://sibylline.dev/articles/2026-02-15-agentic-security/
1•CuriouslyC•10m ago•0 comments

How Claude Code agent teams work under the hood

https://www.claudecodecamp.com/p/claude-code-agent-teams-how-they-work-under-the-hood
1•aray07•11m ago•0 comments

The Missing Semester of Your CS Education (2026)

https://missing.csail.mit.edu/?#
2•anishathalye•13m ago•1 comments

The Mythical Agent-Month

https://wesmckinney.com/blog/mythical-agent-month/
2•eddyzh•13m ago•0 comments

Important PSA: Regarding sitewide rules and automated admin moderation

https://old.reddit.com/r/WhitePeopleTwitter/comments/1k9e9vl/important_psa_regarding_sitewide_rul...
1•embedding-shape•15m ago•2 comments

Freelancer Empathy

https://seths.blog/2026/02/freelancer-empathy/
2•speckx•15m ago•0 comments

An intuitive approach for understanding electricity [video]

https://www.youtube.com/watch?v=X_crwFuPht4
1•thunderbong•15m ago•0 comments

A Parallel Internet

https://k2xl.substack.com/p/a-parallel-internet
2•k2xl•16m ago•0 comments

Blue Owl Halts Redemptions on Private Credit Retail Fund

https://www.bloomberg.com/news/articles/2026-02-18/blue-owl-loan-sale-raises-1-4-billion-for-inve...
2•zerosizedweasle•18m ago•3 comments

AIP – How my AI agent built a decentralized identity protocol for agents

https://github.com/The-Nexus-Guard/aip
1•the_nexus_guard•19m ago•1 comments

I Obtained Mew in Pokémon Red on a Real Game Boy

https://vaguilar.com/2026/02/18/how-i-obtained-mew-in-pokemon-red-on-a-real-game-boy/
2•vaguilar•19m ago•0 comments

Sub-$200 Lidar Could Reshuffle Auto Sensor Economics

https://spectrum.ieee.org/solid-state-lidar-microvision-adas
1•mhb•19m ago•0 comments