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/

Show HN: My colleague said my prompts were unreadable. I built a prompt builder

https://flompt.dev/
1•hkonte•5s ago•0 comments

AAP: A portable, composable spec for AI agents taking action in the world

https://github.com/agentactionprotocol/aap
1•mooreds•30s ago•0 comments

How to Create a White Label Conversational AI?

https://www.youtube.com/watch?v=fI0qy0lnAWQ
1•alexander9866•57s ago•0 comments

Show HN: I built an app to manage chores where real-life tasks become RPG quests

https://chorebound.com
1•devarx•1m ago•0 comments

ChernoffOT – Infrastructure Telemetry as Chernoff Faces

https://github.com/ashinvinod/chernoffOT
1•ashv•2m ago•1 comments

Mitra 15

https://en.wikipedia.org/wiki/Mitra_15
1•JPLeRouzic•5m ago•0 comments

Minecraft mod "The Aether" announced new alpha release, Aether II [video]

https://www.youtube.com/watch?v=uysbzFmZto4
1•Alifatisk•9m ago•0 comments

Nobody Gets Promoted for Simplicity

https://terriblesoftware.org/2026/03/03/nobody-gets-promoted-for-simplicity/
3•aamederen•13m ago•1 comments

Age Signaling and Interface Documentation and Design for Kicksecure

https://www.kicksecure.com/wiki/Age-api
1•fsflover•15m ago•0 comments

Stop using pickle already. Seriously, stop it

https://mina86.com/2026/pickle-should-be-a-war-crime/
1•benrutter•16m ago•0 comments

Show HN: Cross-platform system tray utility for GitHub PR notifications

https://github.com/coder/pr-buddy/releases/tag/v0.1.5
1•ibetitsmike•18m ago•0 comments

Show HN: I replaced Portainer and btop with a single Go binary for my homelab

https://github.com/Higangssh/homebutler
2•swq115•19m ago•0 comments

ODF is just the first of the advantages of LibreOffice

https://blog.documentfoundation.org/blog/2026/02/27/odf-is-just-the-first-of-lo-advantages/
2•breve•20m ago•0 comments

Researchers are developing a rewritable DNA hard drive

https://showme.missouri.edu/2026/mizzou-researchers-developing-a-rewritable-dna-hard-drive/
1•giuliomagnifico•21m ago•0 comments

Chat at your own risk Data brokers are selling deeply personal bot transcripts

https://www.theregister.com/2026/03/03/chatbot_data_harvesting_personal_info/
3•Bender•21m ago•1 comments

MIT boffins aim to build injectable mini-organs that fill in for a damaged liver

https://www.theregister.com/2026/03/03/need_more_liver_mit_boffins/
2•Bender•21m ago•0 comments

Show HN: An MCP server for the docs of any repo that uses Sphinx

https://github.com/AUrbanec/sphinxdocs_mcp
1•btcalex•22m ago•0 comments

Users fume over Outlook.com email 'carnage'

https://www.theregister.com/2026/03/04/users_fume_at_outlookcom_email/
15•Bender•22m ago•5 comments

Ask HN: How do C-level come up with % on their bold predictions?

1•freitzzz•26m ago•1 comments

Repair Shop Software

https://motara.tech/
1•vymukkat•29m ago•1 comments

Bending Emacs Episode 13: agent-shell + Claude Skills + Charts [video]

https://www.youtube.com/watch?v=HJQ86HuSIJI
1•xenodium•30m ago•0 comments

Show HN: I made free website that lets you make fullstack websites in minutes

https://nstantpage.com/
1•nightwishh•31m ago•0 comments

Policy Analysis Market

https://en.wikipedia.org/wiki/Policy_Analysis_Market
1•Anon84•32m ago•0 comments

Ask HN: Is there a willowvoice for TTS on Mac?

1•fiiico•32m ago•0 comments

DIY Home Network with OpenBSD, OpenWrt, and Pi-Hole

https://btxx.org/posts/diy-home-network/
1•bradley_taunt•32m ago•0 comments

Rtings.com: Revamping Our Membership Program

https://www.rtings.com/company/revamping-our-membership-program
1•incognitojam•34m ago•0 comments

Facing Its Third Data Center, an Iowa County Rolls Out Extensive Zoning Rules

https://insideclimatenews.org/news/01032026/iowa-county-data-center-ordinance/
3•ourmandave•34m ago•0 comments

Accenture down to buy Downdetector as part of $1.2B deal

https://www.theregister.com/2026/03/03/accenture_buys_ookla_downdetector_ziff_davis/
1•pseudolus•35m ago•0 comments

The 'Recycling' Scam in the UK [video]

https://www.youtube.com/watch?v=pShQxuoPZ_w
1•robtherobber•35m ago•0 comments

Open-Source secure runtime for Agents: Orkia

https://orkia.io/
1•snooziu•38m ago•0 comments