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•11mo 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/

The Liberating Effect of Uncertainty

https://nesslabs.com/liberating-uncertainty
1•speckx•48s ago•0 comments

I use obsidian for with my GitHub pages blog

https://darshanmakwana412.github.io/2026/03/a-system-of-journaling/
1•darshanmakwana•3m ago•0 comments

Artificial Conflict Resolution

1•stepan_pospisil•3m ago•0 comments

Show HN: lmcli - A sleek, sandboxed TUI for interacting with LLMs

https://codeberg.org/mlow/lmcli
1•wolttam•5m ago•0 comments

Mdterm v2.0.0 – A terminal-based Markdown browser

https://github.com/bahdotsh/mdterm
1•bahdotshxx•5m ago•0 comments

Show HN: I sell the boring part of vibe coding Claude and Cursor config files

https://vibeconfig.dev
1•nykodev•5m ago•0 comments

Spring Test Profiler

https://github.com/PragmaTech-GmbH/spring-test-profiler
1•saikatsg•6m ago•0 comments

I built an Elasticsearch MCP with multi-instance support and per-instance memory

https://github.com/iamnotagentleman/elasticsearch-hub-mcp
1•velieroglu•9m ago•0 comments

Before You Automate, Ask Whether You Should Even Be Doing It in the First Place

https://hunterwalk.com/2026/03/25/before-you-automate-it-ask-whether-you-should-even-be-doing-it-...
1•speckx•9m ago•0 comments

1.2TB of Postgres, Zero Regrets: Scaling a Rails Monolith on Heroku

https://www.youtube.com/watch?v=0uoYEksSbHY
1•lackoftactics•11m ago•1 comments

ChatGPT as cognitive crutch: Evidence from random trial on knowledge retention

https://www.sciencedirect.com/science/article/pii/S2590291125010186
1•jalev•12m ago•0 comments

How Iran is making a mint from the current war

https://www.economist.com/finance-and-economics/2026/03/29/how-iran-is-making-a-mint-from-donald-...
2•Jimmc414•13m ago•2 comments

BnBDetector – Detect Short-Term Rental Activity in Any Building

https://www.bnbdetector.com/en
1•mikecaps•13m ago•0 comments

Vulnerability Research Is Cooked

https://sockpuppet.org/blog/2026/03/30/vulnerability-research-is-cooked/
2•pedro84•15m ago•0 comments

Mockly – Search real UI flows from top apps, export to Figma or Claude Code

https://www.themockly.com/
1•fountaikkj•15m ago•0 comments

GIF Manga

https://ac-bu.info/kindolphin/
2•pppone•16m ago•0 comments

Build Apps for Multiple Apple PlatformsDev Talk [video]

https://www.youtube.com/watch?v=AXWxmpPqIsU
2•darryl_bayliss•16m ago•0 comments

Meta open-sources a model that predicts brain responses to images and video

https://ai.meta.com/blog/tribe-v2-brain-predictive-foundation-model/?_fb_noscript=1
3•driesdep•17m ago•0 comments

Which

https://shud.in/thoughts/which
2•latchkey•18m ago•0 comments

Life behind Russia's internet controls (2026, first-hand account)

https://mappingthefarright.substack.com/p/no-connection-in-the-land-of-despair
4•iurshina•19m ago•0 comments

Show HN: Duker News – Web3 community funding universal income on-chain

https://dukernews.xyz
3•kindkang2024•20m ago•0 comments

Woman who had sex with identical twins told it is 'not possible' to identify dad

https://news.sky.com/story/woman-who-had-sex-with-identical-twins-told-it-is-not-possible-to-iden...
5•qingcharles•20m ago•0 comments

Codex Plugin for Claude Code

https://github.com/openai/codex-plugin-cc
3•bigbossman•21m ago•0 comments

Passive Bistatic RADAR using the NISAR satellite signal

https://github.com/jmfriedt/NISAR_pbr
4•thatcherc•22m ago•0 comments

Ask HN: What trades can I learn at home?

4•spacebuffer•23m ago•1 comments

A sea of sparks: Seeing radioactivity

https://maurycyz.com/projects/spinthariscope/
7•maurycyz•23m ago•0 comments

The Trump-Class Battleship: Spectacle Wins Out over Combat Power

https://www.fpri.org/article/2026/01/the-trump-class-battleship-spectacle-wins-out-over-combat-po...
4•worik•23m ago•0 comments

Migration Atlas

https://migrationtrack.netlify.app/
2•gmays•24m ago•0 comments

It's time to give back to the world

https://www.fikrikarim.com/give-back/
2•karimf•26m ago•0 comments

Implantable 'living pharmacy' produces multiple drugs inside the body

https://news.northwestern.edu/stories/2026/03/implantable-living-pharmacy-produces-multiple-drugs...
5•gmays•27m ago•0 comments