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/

Once Upon a Boot - Visual tracing of boot process

https://once-upon-a-boot.github.io/
1•pbou•1m ago•0 comments

Z80 Sans – a disassembler in a font (2024)

https://github.com/nevesnunes/z80-sans
1•pabs3•3m ago•0 comments

Show HN: MarkNote – Local-First Wysiwyg Markdown Editor (Tauri/Rust)

https://marknote.pages.dev/
1•cacao-cacao•3m ago•0 comments

Ytm-player: full-featured YouTube Music player for the terminal

https://github.com/peternaame-boop/ytm-player
1•handfuloflight•4m ago•0 comments

I left work early to get a hug from my wife

https://rxa.me/why/
2•regular-bob•5m ago•0 comments

Jensen Huang says Nvidia is pulling back from OpenAI and Anthropic

https://techcrunch.com/2026/03/04/jensen-huang-says-nvidia-is-pulling-back-from-openai-and-anthro...
2•jnord•7m ago•0 comments

Google Research Language Explorer

https://sites.research.google/languages/language-explorer/
1•gmays•10m ago•0 comments

Show HN: RecruitPhysician – An easier way to find physicians

https://recruitphysician.com/
1•healthtal•12m ago•0 comments

Codex 5.3 (Xhigh) Solved a 6 Month Old Bug in Ghostty

https://twitter.com/mitchellh/status/2029348087538565612
1•dunb•12m ago•0 comments

[satire] Claude Code build my open source project in 5 minutes

https://www.sammystraus.com/#satire-claude-code-build-my-entire-open-source-project-in-5-minutes
2•sammy0910•13m ago•4 comments

Built a tiny edge-based tracker for AI/LLM crawlers on my Astro blog

https://xergioalex.com/blog/tracking-invisible-ai-bot-analytics/
1•xergioalex•15m ago•0 comments

I Wail, for My Tailscale Fails: How My Packets Got Dropped Beyond the Pale

https://jusung.dev/posts/tailscale-wsl/
1•badeeya•15m ago•3 comments

Wikifunctions: Convert Malay Rumi to Jawi

https://www.wikifunctions.org/view/en/Z31670
1•altilunium•16m ago•0 comments

Paper for Water

https://earthchronicles.substack.com/p/paper-for-water
1•taguniversalm•20m ago•1 comments

GLP-1 drugs protect against new or worsening addictions, large study shows

https://www.reuters.com/business/healthcare-pharmaceuticals/glp-1-drugs-protect-against-new-or-wo...
2•0in•21m ago•0 comments

Show HN: MCPHound MCP servers together, create attack paths solo scanners miss

https://github.com/tayler-id/mcphound
1•tayler123•25m ago•0 comments

Show HN: Shinobi – 10-second security scanner for developers

https://github.com/AkrijSama/Shinobi
1•SolidDark•26m ago•0 comments

Computational Models of Interoception and Body Regulation (2021)

https://pmc.ncbi.nlm.nih.gov/articles/PMC8109616/
1•mbil•26m ago•0 comments

Apple Does Not Include a Charger with All New MacBooks in UK and EU

https://www.macrumors.com/2026/03/04/macbook-neo-no-charger-in-uk-or-eu/
3•WaitWaitWha•30m ago•1 comments

Dabao board features open-source hardware RISC-V MCU

https://www.cnx-software.com/2026/03/04/dabao-board-features-open-source-hardware-baochip-1x-risc...
2•MassPikeMike•31m ago•0 comments

Guard rails for AI agents and the developers who ship with them

https://devrail.dev
1•mate0grand3•31m ago•1 comments

Show HN: How ads should work on chatbots, and why no one has built it yet

https://www.june.kim/advertising-journey/
1•kimjune01•33m ago•2 comments

Tell HN: AI Lies About Having Sandbox Guardrails

3•benjosaur•33m ago•0 comments

Show HN: Nodepp – A C++ runtime for scripting at bare-metal speed

https://github.com/NodeppOfficial/nodepp
1•EDBC_REPO•34m ago•1 comments

Get Cited by Gemini, Claude, Perplexity,& ChatGPT, SEO Bot ( AI Skill Include)

https://github.com/JoinDataCops/react-prerender-datacops
2•simullab•35m ago•1 comments

Show HN: Multi platform/multi service (several REd for it) OCR daemon/texthooker

https://github.com/AuroraWright/owocr
1•AuroraWright•35m ago•0 comments

Show HN: Mount any OpenAPI/Swagger API (or non-API JSON) as a local filesystem

https://github.com/scottvr/apifusefs/blob/main/README.md
1•ycombiredd•38m ago•1 comments

The American, Israeli and Iranian Weapons Being Deployed in Middle East

https://www.bellingcat.com/news/2026/03/03/bombs-will-fall-everywhere-the-american-israeli-and-ir...
3•colinprince•40m ago•0 comments

US tech firms pledge at White House to bear costs of energy for datacenters

https://www.theguardian.com/us-news/2026/mar/04/us-tech-companies-energy-cost-pledge-white-house
8•geox•41m ago•6 comments

Just Use Postgres

https://amattn.com/p/just_use_postgres.html
3•todsacerdoti•41m ago•0 comments