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•9mo 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•9mo ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•9mo 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•9mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

Creating a Lua sandbox for my LLM tool

https://caioaao.dev/blog/lua-sandboxing-repl/
1•caioaao•43s ago•0 comments

Big Breakfast Alters Appetite, Gut Health

https://www.cambridge.org/core/journals/british-journal-of-nutrition/article/big-breakfast-diet-c...
1•wjb3•1m ago•0 comments

Show HN: Good Til – Track warranties, scan receipts with AI, get claim letters

1•jelvibe25•2m ago•0 comments

I guess we're doing Moon factories now

https://caseyhandmer.wordpress.com/2026/02/10/i-guess-were-doing-moon-factories-now/
2•rmason•4m ago•0 comments

South Korean Police Lose Seized Crypto by Posting Password Online

https://gizmodo.com/south-korean-police-lose-seized-crypto-by-posting-password-online-2000728191
2•WarOnPrivacy•5m ago•1 comments

Show HN: LocalRAG – Ask AI about your own documents (iOS/Android)

https://localrag.app
2•snakaya•6m ago•0 comments

CUE is an exciting configuration language

https://bitfieldconsulting.com/posts/cuelang-exciting
2•teleforce•7m ago•0 comments

Working with memories can reduce fear of failure

https://medicalxpress.com/news/2026-02-memories-failure.html
3•1659447091•8m ago•0 comments

Reverse-Engineering the Wetware: Spiking Networks and the End of Matrix Math

https://metaduck.com/reverse-engineering-the-wetware-spiking-networks-td-errors-and-the-end-of-ma...
1•pgte•9m ago•0 comments

You Don't Have To

https://www.scottsmitelli.com/articles/you-dont-have-to/
1•marginalia_nu•10m ago•0 comments

WebMCP: Chrome 146 turns websites into AI agent tools

https://zeitraum.blog/en/post/019cab4c-a9f6-778f-be9a-d5833a972f41
2•gurkenkoenig•11m ago•1 comments

Medallion Architecture: Lessons from the Hard Way

https://medium.com/@parade4940/medallion-architecture-what-it-will-teach-you-the-hard-way-unless-...
1•Unviable3378•15m ago•0 comments

The World of Dreampolitik

https://novum.substack.com/p/the-world-of-dreampolitik
1•paulpauper•17m ago•0 comments

Anthropic and the Dow: Anthropic Responds

https://thezvi.substack.com/p/anthropic-and-the-dow-anthropic-responds
1•paulpauper•18m ago•0 comments

Show HN: PgQueuer – A PostgreSQL job queue that works without PostgreSQL

https://github.com/janbjorge/pgqueuer
1•jeeybee•19m ago•0 comments

Tools Say They Can Spot A.I. Fakes

https://www.nytimes.com/2026/02/25/technology/ai-detection-generated-photos-video.html
1•viewtransform•19m ago•1 comments

Are the Mysteries of Quantum Mechanics Beginning to Dissolve?

https://www.quantamagazine.org/are-the-mysteries-of-quantum-mechanics-beginning-to-dissolve-20260...
2•wjb3•24m ago•0 comments

Smart LED display lovers and enthusiasts

https://www.crowdsupply.com/meterbit-cybernetics/pixlpal
1•fustinus•24m ago•1 comments

The Colour of Production

https://lmika.org/2026/02/27/the-colour-of-production.html
1•captn3m0•25m ago•0 comments

Show HN: SwarmClaw – Orchestration dashboard for OpenClaw and AI agents

https://github.com/swarmclawai/swarmclaw
1•jamesweb•25m ago•0 comments

Securing Shell Execution Agents: From Validation to Custom DSLs

https://yortuc.com/posts/securing-shell-execution-agents/
1•xyortuc•26m ago•0 comments

Track your Claude Code ROI from the terminal

1•akshat2634•27m ago•0 comments

Kalshi voids some bets on Khamenei's ouster

https://www.theverge.com/tech/887210/kalshi-void-bets-khamenei-death
1•us321•27m ago•1 comments

Khamenei Trade

https://www.businessinsider.com/khamenei-prediction-markets-kalshi-polymarket-insider-trading-out...
1•us321•28m ago•0 comments

Brain, Think on Thyself

https://knowablemagazine.org/content/article/mind/2026/science-of-self-awareness-and-decision-making
3•wjb3•29m ago•0 comments

Ask HN: What's the best way to learn how Claude Code/codex works?

1•tabs_or_spaces•29m ago•0 comments

Scientists train human brain cells on a microchip to play Doom

https://www.dexerto.com/gaming/scientists-train-human-brain-cells-on-a-chip-to-play-doom-3326709/
4•Anon84•31m ago•1 comments

Show HN: A local AI news aggregator built with Vue 3, FastAPI, and Ollama

https://github.com/fanitarantsopoulou/ai-news-aggregator
2•ftarants•31m ago•1 comments

Show HN: Nopp – AI-generated interactive sales microwebsites

https://notpptx.com
2•rob-blaga•31m ago•0 comments

Show HN: Lightweight, S3-compatible object storage server with built-in web dash

https://github.com/eniz1806/VaultS3
2•open_source_new•31m ago•0 comments