frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: Open-source P2P file transfer

https://github.com/nihaocami/berb
45•goodpanda•1d ago
I have decided to open source this project to increase trust even further.

In case you have seen my previous posts, this is an update for berb.app, a WebRTC file sharing app. My goal is simple: send files between devices in real-time without installing crap or uploading to any servers.

Comments

pwn0•1d ago
Very cool. Do you mind adding license and contributing information to the project?
rapnie•1d ago
A LICENSE file would be better, yes. But the package.json at least says it is ISC-licensed.
goodpanda•22h ago
Thx for the suggestion. Just added a license but don't really have a good contributing guideline yet. Would love to discuss any feature requests/bugs if you open an issue.
fabrice_d•1d ago
Is it doing the ICE offer/answer exchange over websocket hosted on your server?
globalnode•1d ago
Im not a js programmer but index.js has the line: "Signaling server running on http://localhost:${PORT}" -- is that what you're talking about? I think you're talking about the initial connection right?

util.js also contains "copyToClipboard = (value) => {", not sure why that would be needed.

and googletagmanager for tracking error/diagnostics I think? its hard to understand this code without learning the language lol.

Also in privacy.html: "To initiate a peer-to-peer connection, Berb uses a temporary signaling server to exchange network metadata (such as IP addresses, session descriptions, and ICE candidates)."

goodpanda•22h ago
Thx for the analysis! copyToClipboard is for copying the session link so it can be opened on your other device.

As for analytics, you are exactly right. I need to know if people are using the app the way it was intended and soon need to add more events for errors. Though perhaps it is something I can maintain on a separate repo? idk, the goal for me was to truly make everything on berb.app open source. no hiding anything

goodpanda•22h ago
Yes, that's pretty much the only thing the server does. And maintain an in-memory state of connections. Room for improvement for sure.
howtofly•1d ago
My understanding is that the signaling server could be used as the perfect place to perform MITM attack. The README does not mention how berb addresses this concern at all.
notpushkin•1d ago
Do you have a proposal? (Showing file hashes could help, perhaps?)
goodpanda•22h ago
Oh I would love some more details if you think that's the case. With Berb only two clients can connect really. So let's say you somehow guess a peer ID, which is very tough, and connect to a random user. You can technically send a file but they can easily ignore it since they didn't initiate the transfer. That being said, I can definitely add a way to verify the file is legit like the suggestion in the reply with hashes.
howtofly•5h ago
Should users trust the signaling server? IIRC, the signaling server can easily intervene SDP offer/answer so that it can intercept user files or instruct users to send files wherever it wants.
satvikpendem•1d ago
Are you familiar with Iroh's sendme?

https://github.com/n0-computer/sendme

Alifatisk•1d ago
Is there a website for sendme? Or is this a cli tool?
satvikpendem•23h ago
https://www.iroh.computer/sendme
goodpanda•22h ago
This looks very interesting. I will def take a look. thx
opengears•1d ago
also check out localsend https://localsend.org/
goodpanda•22h ago
This looks cool. However my goal with Berb is pretty much browser to browser only. Although if people keep asking for other features, I might consider a desktop/mobile app.
evbogue•20h ago
Connecting browsers directly is a fascinting area to explore in web development. It always goes a little haywire when punching thru NAT and I wish there was more research into what the best methods are.

https://github.com/dmotz/trystero is a one tool I've used to build these kinds of apps.

koolala•20h ago
Do you think the AT protocol could ever work for this? I wish we had one centeralized scriptable method that was popular to enable ubiquitous discovery.
evbogue•16h ago
atproto would be a great pull request for Trystero come to think of it
ranger_danger•9h ago
> No servers

Except an impressively large amount of people in the world are behind symmetrical or CGNAT and would require a TURN server.

Because of this, I've personally never gotten a single p2p/WebRTC site to work with another person.

fmajid•1h ago
There are many, many products to address this, like Mozilla's defunct Send, or the excellent but not self-hostable Wormhole.app. You will need to describe what is novel with Berb and why we should use it over other solutions, and no, using WebRTC is not sufficient.

My personal choice for this kind of situation is Wormhole-William, but it is not something my dad could use when he asks me to send the last year's worth of his granddaughter's photos to make a photobook of.

PSG(Soccer / Football) gave us a Business masterclass [video]

https://www.youtube.com/watch?v=rz9hbBzCR4U
1•riley-i•1m ago•0 comments

Space Forge raises $30M Series A to make chip materials in space

https://techcrunch.com/2025/05/31/space-forge-raises-30m-series-a-to-make-chip-materials-in-space/
2•severusdd•3m ago•0 comments

"If Anyone Builds It, Everyone Dies"

https://scottaaronson.blog/?p=8901
1•nsoonhui•7m ago•1 comments

Battle of Athens (1946)

https://en.wikipedia.org/wiki/Battle_of_Athens_(1946)
1•lifeisstillgood•10m ago•0 comments

For the love of God, stop calling your AI a co-worker

https://techcrunch.com/2025/06/01/for-the-love-of-god-stop-calling-your-ai-a-co-worker/
2•Sourabhsss1•15m ago•0 comments

Show HN: FLOX – C++ framework for building trading systems

https://github.com/eeiaao/flox
2•eeiaao•15m ago•0 comments

Ask HN: What do people think Jony Ive is building with OpenAI?

1•retube•15m ago•2 comments

Self-Host Like a Pro: Dokku, Hetzner and Cloudflare

https://catalins.tech/selfhost-with-dokku-hetzner-cloudflare/
1•taubek•15m ago•0 comments

Intel: Stumbling in the Spotlight

https://www.abortretry.fail/p/intel-stumbling-in-the-spotlight
1•rbanffy•16m ago•0 comments

Petabyte-Class E2 SSDs Poised to Disrupt Warm Data Storage – Storagereview.com

https://www.storagereview.com/news/e2-ssd-form-factor
1•rbanffy•17m ago•0 comments

SteamOS falls to lowest adoption level in years

https://www.neowin.net/news/steamos-falls-to-lowest-adoption-level-in-years-as-steam-on-linux-use-rises/
1•bundie•18m ago•0 comments

A tour of upcoming RFCs for the Hare programming language

https://harelang.org/blog/2025-06-02-planned-breaking-changes/
1•todsacerdoti•19m ago•0 comments

Created Chatbot with my professional data for recruiters who want to hire me

https://chinmay-muse-react.lovable.app/
1•cjaha22•20m ago•0 comments

'Blue Danube' waltz beamed at Voyager 1

https://www.theregister.com/2025/06/02/waltz_into_space_project/
1•samizdis•23m ago•0 comments

Selecting a Model Based on Stripe Conversion

https://cookbook.openai.com/examples/stripe_model_eval/selecting_a_model_based_on_stripe_conversion
1•tosh•24m ago•0 comments

The UI Revolution: How JSON Blueprints and Shared Workers Power Next-Gen AI UI

https://tobiasuhlig.medium.com/the-ui-revolution-how-json-blueprints-shared-workers-power-next-gen-ai-interfaces-60a2bf0fc1dc
1•Capstanlqc•27m ago•0 comments

What It takes to build an SaaS

https://tanvirbhachu.dev/blog/the-ai-saas-dream-is-a-lie
2•TimTan•28m ago•0 comments

Whatever Happened to Cheap EReaders?

https://shkspr.mobi/blog/2025/05/whatever-happened-to-cheap-ereaders/
23•blenderob•32m ago•14 comments

Business Insider recommended nonexistent books to staff as it leans into AI

https://www.semafor.com/article/06/01/2025/business-insider-recommended-nonexistent-books-to-staff-as-it-leans-into-ai
2•thm•35m ago•0 comments

A robotic arm made from human tissue

https://english.elpais.com/science-tech/2025-05-30/a-robotic-arm-made-from-human-tissue-science-advances-toward-living-muscle-prosthetics.html
1•belter•35m ago•0 comments

We Built an AI Data Team with Pydantic AI

https://pydantic.dev/articles/building-data-team-with-pydanticai
1•mritchie712•37m ago•0 comments

The peculiar bathroom habits of Westerners (2019)

https://www.bbc.com/future/article/20191004-the-peculiar-bathroom-habits-of-westerners
3•throw0101b•38m ago•0 comments

'Humanity deserves better': Jony Ive, Laurene Powell Jobs on tech's next chapter

https://www.ft.com/content/7f0a45b0-a3cc-4e1c-be71-1b7b42958d4d
4•thm•45m ago•2 comments

Beyond the Black Box: Interpretability of LLMs in Finance

https://arxiv.org/abs/2505.24650
9•ashater•45m ago•1 comments

AI is learning to escape human control

https://web.archive.org/web/20250602002441/https://www.wsj.com/opinion/ai-is-learning-to-escape-human-control-technology-model-code-programming-066b3ec5
2•matltc•47m ago•2 comments

Game engine for Gabriel Knight 3

https://github.com/kromenak/gengine/releases/tag/v0.3.0
1•BSDobelix•48m ago•0 comments

Show HN: Moodlets – A Micro Mood Logger

https://moodlets.pages.dev
2•jeminimerchant•51m ago•0 comments

Show HN: Fast Random Library for C++17

https://github.com/DmitriBogdanov/UTL/blob/master/docs/module_random.md
2•GeorgeHaldane•51m ago•0 comments

Show HN: Koro-koro – a pathing puzzle game

https://geonot.github.io/korokoro/
4•wildlogic•52m ago•1 comments

Selling small online business – advice needed

3•aWebys•53m ago•0 comments