frontpage.
newsnewestaskshowjobs

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•1y ago

Comments

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

Opendray – run Claude Code/Codex agents on your own box, drive from anywhere

https://github.com/Opendray/opendray
1•navidrast•30s ago•0 comments

Roblox takes newly release Steam games and rips them off

https://old.reddit.com/r/dataisbeautiful/comments/1uogveo/oc_peak_daily_players_the_steam_game_me...
1•MrBuddyCasino•2m ago•0 comments

Ente's business metrics are open now

https://ente.com/blog/open/
1•Cider9986•5m ago•0 comments

Dev Jr Developer

1•edoschenone•6m ago•0 comments

1-Minute Chess Puzzles – A rapid tactics game I built for Android

https://play.google.com/store/apps/details?id=io.hackersway.oneminutechess&hl=en_US
1•amitgajbhare•9m ago•0 comments

Ask HN: What's the most life-changing blog post you've ever read?

1•chistev•10m ago•0 comments

Building a High-Performance C++ Backtesting Framework

https://dolphindb.com/blogs/46
2•CrazyTomato•10m ago•0 comments

Cloud Agent Lessons

https://cursor.com/blog/cloud-agent-lessons
2•shahargl•12m ago•0 comments

Best Training Management Software

https://www.qualityze.com/training-management
1•qualityze-inc•13m ago•0 comments

Show HN: OCR-grab: Flameshot clone that adds OCR

https://github.com/talalalrwas/ocr-grab
1•tgol•14m ago•0 comments

He Earns $33 an Hour as a Costco Cashier. Now He's a Millionaire

https://www.wsj.com/business/retail/he-earns-33-an-hour-as-a-costco-cashier-now-hes-a-millionaire...
3•JumpCrisscross•15m ago•0 comments

Grok 4.5 Release (Technical)

https://cursor.com/blog/grok-4-5
1•linzhangrun•17m ago•1 comments

Automate Apps with No API

https://blog.mobilerun.ai/posts/how-to-automate-apps-with-no-api
1•Messyflame•21m ago•0 comments

Tooling for AI agents to build KiCad project from simple circuit description

https://github.com/oxplot/burn2kicad
1•oxplot•21m ago•0 comments

Game devs commit their dependencies. Maybe we should too

https://nathanflurry.com/thoughts/26-03-26-manage-packages-like-game-engines/
1•resiros•23m ago•0 comments

SQLite Is Dynamically Typed (2020)

https://www.zachocean.com/posts/sqlite-is-dynamically-typed/
1•downbad_•24m ago•0 comments

GitHub Actions degraded again

https://www.githubstatus.com/incidents/cstx3v63mklm
1•gruselhaus•26m ago•0 comments

Hand it your codebase. Not your secrets

https://agentjail.io/blog/announcing-v060/
1•LuD1161•27m ago•0 comments

SpreadsheetPreview: JavaScript component to display Excel files in browser

https://spreadsheetpreview.com/
1•robbiejs•29m ago•1 comments

CVE-2026-14440: Cloudflare Universal SSL CAA records supersede user CAA

https://nvd.nist.gov/vuln/detail/CVE-2026-14440
1•David_Osipov•30m ago•0 comments

The best WebAssembly runtime may still be no runtime at all

https://00f.net/2026/07/08/webassembly-compilation-to-c-2026/
1•goranmoomin•34m ago•0 comments

Engineering the J-Space: Beyond Chain of Thought

https://github.com/mlangford75-lgtm/mlangford75-lgtm
1•Mlangford75•34m ago•0 comments

Show HN: N3MO – Deterministic code intelligence via AST parsing, no embeddings

https://github.com/RajX-dev/N3MO
1•RajX_dev•34m ago•0 comments

Build your own agentic framework – the no-magic version

https://medium.com/@kirill89/build-your-own-agentic-framework-the-no-magic-version-8858d5ee94d0
1•k1r111•36m ago•0 comments

Claude "Honeycomb" spotted and pulled from Cursor, unannounced Anthropic model

https://twitter.com/chetaslua/status/2075064406116065416
2•alecavaz•37m ago•1 comments

$100k to keep CTFs competitive in the age of AI

https://osec.io/blog/save-ctfs-fund/
1•stuxf•40m ago•0 comments

Grok Is Back

https://www.vincentschmalbach.com/grok-is-back/
1•vincent_s•41m ago•0 comments

Decispher – System of record and action for engineering teams

https://decispher.com
6•cool_coder12•41m ago•0 comments

Google patched AI chatbot flaw that could expose customer conversations

https://www.axios.com/2026/07/07/varonis-google-ai-agent-chatbot-security?
2•crowd51•43m ago•0 comments

Mastodon, the Only Good Choice

https://www.tbray.org/ongoing/When/202x/2026/07/05/Choose-Mastodon
4•robin_reala•44m ago•0 comments