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: Minimap – a local UI for repo roadmap files

https://github.com/rore/minimap
1•margolis20•57s ago•0 comments

Show HN: Grantex–Open authorization protocol for AI agents-like OAuth for agents

https://github.com/mishrasanjeev/grantex
2•mishrasanjeev•1m ago•0 comments

Ask HN: How many books have you read in 2026 so far and which was your favorite?

1•chistev•4m ago•0 comments

Patience – 3Sec Hold Game:)

https://3sec.site/
1•casultra•5m ago•1 comments

UFO Sighting in the Lower East Side

https://cinemasojourns.com/2026/03/14/ufo-sighting-in-the-lower-east-side/
1•jjgreen•8m ago•0 comments

Costs and Benefits from the New Energy Crisis

https://paulkrugman.substack.com/p/costs-and-benefits-from-the-new-energy
1•rbanffy•10m ago•0 comments

Show HN: AgentMailr – dedicated email inboxes for AI agents

https://www.agentmailr.com/
3•kumardeepanshu•11m ago•1 comments

Show HN: Subagent-reuse, an MCP to reuse Claude Code subagent context

1•h1r1ms•12m ago•2 comments

CrackArmor: Critical AppArmor Flaws Enable Local Privilege Escalation to Root

https://blog.qualys.com/vulnerabilities-threat-research/2026/03/12/crackarmor-critical-apparmor-f...
2•campuscodi•17m ago•0 comments

Am I right or am I right? Phrase

https://en.wiktionary.org/wiki/am_I_right_or_am_I_right
1•marysminefnuf•20m ago•0 comments

Ask HN: Is documentation a solved problem or are we all just pretending?

2•hariprasadr•22m ago•0 comments

Ask HN: What breaks first when your team grows from 10 to 50 people?

1•hariprasadr•24m ago•1 comments

Show HN: An OpenClaw skill to access Grok without an API Key

https://github.com/aquarius-wing/grok-scraper
1•lwy8wing•31m ago•1 comments

IBM, sonic delay lines, and the history of the 80×24 display

https://www.righto.com/2019/11/ibm-sonic-delay-lines-and-history-of.html
3•rbanffy•33m ago•0 comments

Ask HN: What are the hardest parts of working with the Web Audio API?

1•alexgriss•34m ago•0 comments

Ask HN: Why do the majority of vibecoded projects fail?

4•keepamovin•34m ago•2 comments

Those who 'circle back' and 'synergize' also tend to be crap at their jobs

https://www.theregister.com/2026/03/15/corporate_jargon_research/
1•beardyw•35m ago•1 comments

PHP-community: a faster-moving, community-driven PHP

https://blog.daniil.it/2026/03/15/php-community-a-faster-moving-community-driven-php/
2•danogentili•38m ago•0 comments

From Demo JWT to Production JWT: Adding Proper Audience Validation in .NET

https://www.aaronpina.com/from-demo-jwt-to-production-jwt-adding-proper-audience-validation/
1•aaronpina•40m ago•0 comments

A Terminal UI (TUI) Alternative to GHelper for Asus ROG / TUF Laptops on Linux

https://github.com/Ichihiroy/ghelper-for-linux
2•ichihiroy•41m ago•1 comments

Microslop

https://www.s-config.com/microslop/
3•ColinWright•44m ago•0 comments

Show HN: Realtime Chat with Curl Command

https://chat.est.im/hackernews
1•est•47m ago•0 comments

Manufacturing IoT Hardening browser sessions for factory kiosks and Smart TVs

https://andonalert.net/dev-blog/hardening-long-lived-browser-sessions-for-factory-iot
2•SolarpunkRachel•51m ago•1 comments

A Visual Introduction to Machine Learning

https://r2d3.us/visual-intro-to-machine-learning-part-1/
35•vismit2000•53m ago•1 comments

Show HN: Calendly alternative where LLM decides which slots to show

https://buxo.ai
4•paragarora•53m ago•0 comments

Show HN: React Native formatting in Node, powered by real Clang-format binaries

https://github.com/lumirlumir/npm-clang-format-node
1•beenzinozino•57m ago•0 comments

How to use storytelling to fit inline assembly into Rust

https://www.ralfj.de/blog/2026/03/13/inline-asm.html
1•birdculture•59m ago•0 comments

Never Go Full Kelly

https://www.lesswrong.com/posts/TNWnK9g2EeRnQA8Dg/never-go-full-kelly
1•pinkmuffinere•59m ago•0 comments

In the AI age, nothing is forgotten

https://yadin.com/notes/unforgettable/
1•dryadin•59m ago•0 comments

How to Explore London's Museums and Galleries

https://londonist.com/london/museums-and-galleries/how-to-explore-london-s-museums-and-galleries
1•zeristor•1h ago•0 comments