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/

Set-OutlookSignatures v4.26.0 support for M365 sovereign clouds

https://set-outlooksignatures.com/
1•explicitcons•1m ago•1 comments

Show HN: TrustScan – Simplify privacy policies and audit GDPR compliance

https://trustscan.dev
1•hafizjavid•2m ago•0 comments

Every business will have AGI by 2027

https://nuggetz.ai/articles/every-business-will-have-agi-by-2027
2•ezisezisezis•5m ago•0 comments

Show HN: Marketing Content Generator AI-powered multi-channel content platform

https://devpost.com/software/marketing-content-generator-ch4p2q
1•gaborishka•5m ago•0 comments

Show HN: I built a mini PowerBI for tech comps with no dev experience with Codex

https://gotham-web.onrender.com/
1•muhneesh•8m ago•0 comments

Fontcrafter: Turn Your Handwriting into a Real Font

https://arcade.pirillo.com/fontcrafter.html
1•rendx•9m ago•0 comments

Show HN: cursor-tg – Run Cursor Cloud Agents from Telegram

https://github.com/tb5z035i/cursor-tg
1•tb5z035i•11m ago•0 comments

MoltBrowser MCP

https://github.com/Joakim-Sael/moltbrowser-mcp
2•geobotPY•12m ago•1 comments

Show HN: FretBench – I tested 14 LLMs on reading guitar tabs. Most failed

https://fretbench.tymo.ai/blog/i-asked-14-ai-models-to-read-guitar-tabs/
1•jmcapra•13m ago•0 comments

Show HN: NirvaCrop – Offline Python tool for batch video cropping

https://nirvasoft.gumroad.com/l/ffdoc
1•Ashwiniakash•13m ago•1 comments

A sneak preview behind an embedded software factory. I suspect "rad" is back

https://ghuntley.com/rad/
1•ghuntley•21m ago•0 comments

Sumi – Open-source voice-to-text with local AI polishing

1•alkd•21m ago•0 comments

Show HN: U-Claw – An Offline Installer USB for OpenClaw in China

https://www.u-claw.org/
1•17vibe•23m ago•0 comments

Replaced by a Goldfish

https://clawd.it/posts/10-replaced-by-a-goldfish/
2•patrikgro•26m ago•0 comments

Why AI Agents Need Email Guardrails

https://molted.email/blog/why-ai-agents-need-email-guardrails
1•spacesh1psoda•26m ago•0 comments

SQLite: Query Result Formatting in the CLI

https://www.sqlite.org/climode.html
1•thunderbong•28m ago•0 comments

Seedance2.0 and OmniVideo: AI video creation from text and images – experiences?

1•hongxiao•29m ago•0 comments

Kairos – real-time AI that cross-verifies news before answering (Python, 90KB)

1•joshuaveliyath•31m ago•0 comments

A short guide to email opening lines

https://www.economist.com/business/2026/03/05/a-short-guide-to-email-opening-lines
1•petethomas•34m ago•0 comments

MiniMax Music 2.5 – AI Music Generation Model for Fast Song Creation

https://www.minimax-music.com/minimax-music-2-5
2•cy20251210•34m ago•1 comments

Is Europe's AI Darling Mistral Becoming a Consultant?

https://www.bloomberg.com/news/newsletters/2026-03-03/europe-s-ai-darling-mistral-looks-more-like...
2•flawn•36m ago•1 comments

How I built a free flight simulator that runs in the browser

https://worldflightsim.com/blog/free-flight-simulator-browser
1•fmfamaral•37m ago•0 comments

Show HN: OpenCode Benchmark Dashboard

https://github.com/grigio/opencode-benchmark-dashboard
1•grigio•39m ago•0 comments

Show HN: Supaguard – AI agent that writes and repairs Playwright tests

https://supaguard.app
2•maddhruvhn•43m ago•0 comments

Ka'ak, and the Case for the Ancient Arabic Origins of the Bagel (2023)

https://www.seriouseats.com/kaak-ancient-bagel-arabic-origins
2•notagoodidea•44m ago•0 comments

Show HN: Simple spec driven development for Claude

https://tinyspec.dev/
1•natedaines•45m ago•0 comments

We Stopped Using the Mathematics That Works

https://gfrm.in/posts/why-decision-theory-lost/index.html
2•slygent•49m ago•0 comments

QGIS 4.0 Visual Changelog [video]

https://www.youtube.com/watch?v=wTK1exokBA8
1•marklit•49m ago•0 comments

A simple rule set that fixes Claude Code's worst habits

https://github.com/akinalpfdn/claude-ground
2•akinalpfdn•50m ago•0 comments

Show HN: CiderStack – Run macOS CI runners on your own Mac mini cluster

https://github.com/ciderstack/Brew
2•ciderdev•52m ago•0 comments