frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

DARPA program sets distance record for power beaming

https://www.darpa.mil/news/2025/darpa-program-distance-record-power-beaming
1•gnabgib•2m ago•0 comments

Introducing: GitHub Device Code Phishing

https://www.praetorian.com/blog/introducing-github-device-code-phishing/
1•cyberbender•3m ago•0 comments

Let's Talk About ChatGPT-Induced Spiritual Psychosis

https://default.blog/p/lets-talk-about-chatgpt-induced-spiritual
1•greenie_beans•5m ago•0 comments

We built an AI that finds stale docs and suggests updates

https://resilientdocs.com/
1•hpen•6m ago•0 comments

KAIST Succeeds in Real-Time CO2 Monitoring Without Batteries or External Power

https://news.kaist.ac.kr/newsen/html/news/?mode=V&mng_no=47450
2•gnabgib•13m ago•0 comments

Chinese brain implant reaches landmark clinical trial with operation on amputee

https://www.scmp.com/news/china/science/article/3314461/chinese-brain-implant-reaches-landmark-clinical-trial-operation-amputee
1•Gaishan•18m ago•0 comments

Fake bands and artificial songs are taking over YouTube and Spotify

https://english.elpais.com/culture/2025-06-15/fake-bands-and-artificial-songs-are-taking-over-youtube-and-spotify.html
1•geox•19m ago•0 comments

Tetris founder's family village is collapse-proof, remote offgrid-topia [video]

https://www.youtube.com/watch?v=iz0iSxks-Dw
1•chrsw•23m ago•0 comments

A Job Board for Creatives

https://creativefuego.com/jobs
3•calebro•30m ago•1 comments

Argumentative System Service

https://github.com/DiogoNeves/ass
2•handfuloflight•31m ago•0 comments

Radio pulses detected coming from ice in Antarctica

https://www.psu.edu/news/research/story/strange-radio-pulses-detected-coming-ice-antarctica
2•zdw•31m ago•0 comments

DARPA sets new records for sending power wirelessly

https://newatlas.com/military/darpa-sets-new-records-sending-power-without-wires/
3•Gaishan•33m ago•1 comments

Apple's Widget Backdoor

https://www.youtube.com/watch?v=NdJ_y1c_j_I
2•martialg•34m ago•0 comments

SMPlayer – graphical mpv and MPlayer front end for Windows and Linux

https://www.smplayer.info/en/info
2•rfl890•39m ago•0 comments

Observations from one year of solo work

https://newsletter.seanblanda.com/archive/observations-from-one-year-of-solo-work-plus-a/
2•herbertl•39m ago•0 comments

Time Machine

https://cinemasojourns.com/2025/06/15/time-machine/
3•jjgreen•44m ago•0 comments

CKWatson: A puzzle game that simulates chemical kinetics

https://github.com/ckwatson/ckwatson
3•tslmy•55m ago•0 comments

Show HN: I coded this AI visibility tool in VR (Meta Quest 3) – meet Winglytics

https://www.winglytics.com/
3•ogulcanunal1•59m ago•0 comments

Implementing Temporal in Rust, the new date/time API for JavaScript

https://boajs.dev/blog/2025/06/15/temporal-impl-1
3•nekevss•1h ago•1 comments

Generals.io

https://generals.io/
4•davidnc•1h ago•0 comments

Incant – add magic spells to your code

https://github.com/montyanderson/incant
2•montyanderson•1h ago•0 comments

MKStack – AI-Powered Nostr App Build with Dork AI

https://soapbox.pub/tools/mkstack/
2•janandonly•1h ago•0 comments

Hook-Engine a TypeScript-First Webhook Engine with Built in Adapters, CLI

https://github.com/ALPHACOD3RS/hook-engine
2•naolketema•1h ago•1 comments

Walmart plans to expand drone deliveries to three more states

https://www.cnbc.com/2025/06/05/walmart-expands-drone-deliveries.html
2•JumpCrisscross•1h ago•0 comments

United shuts down Starlink Wi-Fi on regional jets

https://thepointsguy.com/news/united-starlink-wifi-issues/
3•JumpCrisscross•1h ago•0 comments

Datafari: Self-Hosted Open Source Enterprise Search Platform Made in France

https://www.datafari.com/en/index.html
3•kadrek•1h ago•1 comments

Feeling cautiously optimistic about American democracy

https://www.noahpinion.blog/p/feeling-cautiously-optimistic-about
5•paulpauper•1h ago•0 comments

Neither Robot nor Baby

https://arnoldkling.substack.com/p/neither-robot-nor-baby
2•paulpauper•1h ago•0 comments

David Attenborough at 99: 'I will not see how the story ends'

https://www.thetimes.com/life-style/celebrity/article/david-attenborough-book-extract-age-99-lj3rd2fg7
29•herbertl•1h ago•17 comments

Copenhagen is adapting to a warmer world with rain tunnels and 'sponge parks'

https://www.npr.org/2025/06/13/nx-s1-5340710/copenhagen-climate-change-solutions-flooding
3•Geekette•1h ago•0 comments
Open in hackernews

Show HN: Socket-call – Call socket.io events like normal JavaScript functions

https://github.com/bperel/socket
2•bperel•9h ago
Hello HN,

I built a Typescript library (named socket-call, for lack of a more sexy name) whose goal is to be able to call socket.io events as regular functions.

So you declare your server-side like so:

... const listenEvents = (services: UserServices) => ({ login: async (username: string) => { services._socket.data.user = { username }; console.log(`User ${username} logged in`); setInterval(() => { services.showServerMessage(`You're still logged in ${username}!`) }, 1000); return `You are now logged in ${username}!`; }, }); ...

and then on the client side you call them like normal async Javascript functions (and you can also create client-side event handlers):

... const user = socket.addNamespace<UserEmitEvents, UserListenEvents>( '/user' );

user.login(username.value).then((message) => { console.log('Server acked with', message); });

user.showServerMessage = (message) => { console.log('Server sent us the message', message); }

I use this library for my own projects and would be interested to receive feedback about it :-)

Comments

klabb3•9h ago
This link 404s for me. Is the repo public?
bperel•1h ago
Yes, the link is wrong. The correct URL is https://github.com/bperel/socket-call
jqpabc123•9h ago
404 - Page not found

The link should be:

https://github.com/bperel/socket-call

bperel•1h ago
Indeed the link is wrong, thanks for the correction :-) Unfortunately I can't update my post