Hacker News

Subscribe to Hacker News feed
Hacker News RSS
Updated: 40 min 17 sec ago

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

Sun, 06/15/2025 - 8:52am

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( '/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 URL: https://news.ycombinator.com/item?id=44282064

Points: 1

# Comments: 0

Categories: Hacker News

Show HN: Aicosts.ai – Track and optimize your AI spending across 50 platforms

Sun, 06/15/2025 - 8:43am

Hey HN,

I'm a solo SWE building AICosts.ai after working on multiple projects where managing AI costs became a nightmare across multiple clients.

Between OpenAI, Claude, Blotato, ElevenLabs, n8n workflows, Make workflows, and dozens of other AI tools, I was spending hours each month just figuring out what I was actually spending and on what.

So basically I built AICosts.ai to solve this: one location for me to track my entire AI stack (GPT, Claude, Gemini, automation tools like Zapier/Make/n8n)in one place.

It helps me compare costs across providers, set billing alerts, and track which AI workflows are actually worth the spend.

Been using it personally for awhile and it saved me both time and money, and gave me more transparency, so thought I should build a quick, scrappy (design could be much better too tbh) MVP to get some feedback on it.

Would love your feedback on the approach (especially from anyone else juggling multiple AI bills) and/or any solutions you currently use to track spending across multiple AI tools/services.

Comments URL: https://news.ycombinator.com/item?id=44282031

Points: 1

# Comments: 0

Categories: Hacker News

Show HN: Solve This OA For Me. Tool that drafts office action responses

Sun, 06/15/2025 - 8:42am

Hi, I built a tool that generates draft responses to patent office actions in minutes instead of hours.

The problem: Patent attorneys and agents spend hours responding to each office action by reading rejections, crafting arguments, and amending claims with track changes. It's tedious, expensive, and the backlog keeps growing. What it does: - Upload office action + patent docs (or paste text) - AI analyzes rejections and prior art - Generates arguments addressing each rejection - Creates amended claims with track-change visualization - Exports formatted response ready for USPTO Try it: https://solvethisoaforme.chyuang.com You can test with sample docs or your own. Currently free while I figure out the product. It's not good enough for a perfect response, but it's definitely a good first draft. Would love some feedback from people in this field.

Comments URL: https://news.ycombinator.com/item?id=44282026

Points: 1

# Comments: 0

Categories: Hacker News

Show HN: Garry Tan's Golden Shadow – Save Your Startup AI Coach

Sun, 06/15/2025 - 8:40am

I made Golden Shadow, a micro-app based on Garry's latest YouTube video, Save Your Startup, Unleash Your Golden Shadow (https://www.youtube.com/watch?v=ftJ9cyYrLbY).

AI reflection coach for Jung's exercise. Reflection questions and experiments are personalized based on your responses.

Planning on creating a holistic self-improvement app that addresses issues not solved before in complete personal growth.

Disclaimer: This may save your startup and unleash your golden shadow.

Comments URL: https://news.ycombinator.com/item?id=44282018

Points: 2

# Comments: 1

Categories: Hacker News

Show HN: Semcache – I built a semantic cache in Rust

Sun, 06/15/2025 - 7:43am

Have a look at my semantic caching project!

It's built to easily integrate in existing LLM workflows, you can use it as a proxy where the cache forwards missed requests without modification to a specified upstream, automatically updating it's cache with the response.

You can also use it as a cache-aside cache with a provided python library.

It works by computing embedding vectors of input queries, and matches them to seen query + response pairs using a vector store.

Everything is in-memory, so it should be blazing fast :)

Comments URL: https://news.ycombinator.com/item?id=44281814

Points: 3

# Comments: 0

Categories: Hacker News

The Story of Stuxnet

Sun, 06/15/2025 - 7:23am
Categories: Hacker News

Show HN: Tool shows why 1.3B people can't use your website

Sun, 06/15/2025 - 7:20am

I vibe coded a tool that simulates 9 different disabilities so developers can experience what 1.3B people face daily online. The ADHD simulation alone will change how you design interfaces. It's free and takes 2 minutes to try.

Comments URL: https://news.ycombinator.com/item?id=44281733

Points: 3

# Comments: 0

Categories: Hacker News

Datalog in Rust

Sun, 06/15/2025 - 7:18am
Categories: Hacker News

Pages