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•8mo ago

Comments

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

90% of PRs over 1k lines ship without any code review (800K PR analysis)

https://codepulsehq.com/research/code-review-study-2025
1•Warlax•1m ago•1 comments

Doin' It with a 555: One Chip to Rule Them All

https://aashvik.com/posts/555-revolution/
1•MonkeyClub•1m ago•0 comments

Train an MNIST classifier from scratch in WASM

https://paika.tech/assets/mnist-visualizer/index.html
1•cpaika•1m ago•0 comments

Drop-in XSLT replacement for browsers (Chrome Beta broke native XSLT)

https://spagu.github.io/XSLT-Processor/
2•pleaseforget•3m ago•1 comments

Show HN: Magpie – I built a CLI where AIs argue about my code

1•leo_e•3m ago•0 comments

Accessibility For Everyone is now free and online as a website

https://accessibilityforeveryone.site
1•Kerrick•4m ago•0 comments

Building a serverless, post-quantum Matrix homeserver

https://blog.cloudflare.com/serverless-matrix-homeserver-workers/
2•Vardor•4m ago•1 comments

Centrio – Turn Focus into Results

https://chromewebstore.google.com/detail/centrio-turn-focus-into-r/jhpeadhbngebmbepfkeghpkglfkbhmhc
1•asolovich•6m ago•1 comments

What Is Shadowrocket?

https://proxidize.com/blog/what-is-shadowrocket/
1•colinprince•7m ago•0 comments

Show HN: I query multiple LLMs in parallel because I don't trust any single one

https://www.usecouncil.app
1•jonnyhere•9m ago•0 comments

Claude Code skill for building ChatGPT Apps

1•victordg•9m ago•0 comments

‘Mother of all deals’: Details of the EU-India FTA

https://www.reuters.com/world/india/details-eu-india-trade-deal-tariffs-quotas-market-access-2026...
1•alephnerd•9m ago•0 comments

A Handbook for Building True Sovereignty [pdf]

https://hs-8271513.f.hubspotemail.net/hubfs/8271513/Marketing/Sovereign%20Individual%20Guide.pdf
1•janandonly•10m ago•0 comments

Access denied: Muslims worldwide are being 'debanked'

https://www.theguardian.com/world/2026/jan/27/muslims-being-debanked-banking-services-9-11-september
3•YeGoblynQueenne•11m ago•0 comments

Software Publishers' Revenue Per Employee is up ~30% since ChatGPT launch

https://www.factiq.com/blog/the-receipts-are-in-software-productivity-outpaced-other-sectors-sinc...
1•rishsriv•11m ago•1 comments

The Great Code Decoupling – The Coming AI Bifurcation in Software Quality

https://i2km.com/bifurcation.html
1•i2km•11m ago•1 comments

Fuzzing Lua in OSS-Fuzz

https://groups.google.com/g/lua-l/c/tTyuSALLuEM
1•todsacerdoti•12m ago•0 comments

The Craftsman and the Factory

https://n.survol.fr/n/lartisan-et-lusine
2•speckx•14m ago•0 comments

Estonia bets on artificial intelligence to offset demographic decline

https://estonianworld.com/technology/estonia-bets-on-artificial-intelligence-to-offset-demographi...
1•atlasunshrugged•14m ago•0 comments

Show HN: Simple terminal UI for cleaning macOS

https://github.com/2ykwang/mac-cleanup-go
2•immutable000•14m ago•0 comments

Claude Code Skills for Marketing

https://github.com/coreyhaines31/marketingskills
1•mpaepper•16m ago•0 comments

CedarDB: The fastest database you've never heard of

https://www.amplifypartners.com/blog-posts/the-fastest-database-youve-never-heard-of
4•itunpredictable•17m ago•1 comments

Show HN:AgentHub - Unified, Stateful SDK for All SOTA LLMs and Agent Executions

https://github.com/Prism-Shadow/AgentHub
1•PrismShadow•18m ago•1 comments

SS64 Command Line Reference

https://ss64.com/
1•thunderbong•20m ago•0 comments

Help us benchmark Agentic AI adoption patterns (Last day for Jan survey)

https://survey.actiindex.org/January2026/
1•7777777phil•20m ago•0 comments

Cloudflare Can't Save You from a DoS (I Checked)

https://nullrabbit.ai/research/cloudflare-dos-limitations
2•simonmorley•21m ago•0 comments

Technical benchmarks for CAAE optimization layer

1•zwmaronek•21m ago•2 comments

Change news.ycombinator to news.gcombinator to get copyable context

https://twitter.com/janwilmake/status/2015405833681621392
1•mpaepper•22m ago•7 comments

I built a Mac keyboard util to get stray thoughts, ideas, todos into Markdown

https://www.publicspace.net/BurstNotes/index.html
1•imperfectly•22m ago•0 comments

Show HN: Frigatebird – high performance OLAP database built on io_uring

https://github.com/Frigatebird-db/frigatebird
1•joeeverjk•23m ago•0 comments