frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

What about using rel="share-url" to expose sharing intents?

https://shkspr.mobi/blog/2025/08/what-about-using-relshare-url-to-expose-sharing-intents/
24•edent•2h ago

Comments

nashashmi•1h ago
I was thinking A button can also be an alternative with all data sent as post, but apparently the button attributes don’t include any ability to specify form values. This has to be done via JS or via additional tags (which is still an option).
geocar•59m ago
One thing I really don't like about it is the implication that the url and the share-button could refer to different things. I feel like browser vendors probably care about knowing whether users use the share button or copy/paste the URL, but hypothetically they know already and I don't feel like most (any?) websites need that information -- it might correlate to a sophistication-level of the user and be used for targeting by scammers, and that could be bad.

For me, I use history.replaceState to change the url after I've got my campaign tracking to the share link, this way the browser's built-in share button does all the work for me. I can detect trivial-reload by checking the cookie I dropped when the page came in, so I don't mis-attribute shares. It is a shame I cannot do this so easily without JavaScript, but I'm sure I can actually buy non-JavaScript users from Google (and other ad platforms) so I'm not sure it's worth worrying about.

chrismorgan•55m ago
There’s already a better spec from 2016, which has even been shipping in the Chromium family since 2021:

https://w3c.github.io/web-share-target/

https://developer.mozilla.org/en-US/docs/Web/Progressive_web...

Use that, and the browser/native platform integration is already there, and ShareOpenly becomes more of stopgap measure.

The only real problem is that you can’t feature-detect share_target support—so you can’t detect if the user is able to add a web app to the user agent’s share targets.

As for ShareOpenly using these things, see https://shareopenly.org/share/?url=https://example.com, and it requires the user to paste a value in once, and then by the looks of it it will remember that site via a cookie. Not great, but I guess it works. But I’m sceptical anyone will really use it.

quectophoton•37m ago
> The only real problem is that you can’t feature-detect share_target support

I didn't know this existed, so the first thing I did is check the caniuse website, and yeah not even they have info about the Web Share Target API[1][2]. As of writing this comment, they only have info about the Web Share API[3].

[1]: https://github.com/Fyrd/caniuse/issues/4670

[2]: https://github.com/Fyrd/caniuse/issues/4906

[3]: https://caniuse.com/web-share

uberman•55m ago
I don't care for the dash myself. I would have chosen something more like rel="shareable"
cxr•47m ago
Only tangentially related to the main subject, but the post ends with:

> Extensions to the predefined set of link types may be registered on the microformats page for existing rel values.

Please don't. WHATWG's tendency to self-anoint and all its idiosyncrasies notwithstanding, the IANA maintains the link relation registry[1]. Use the procedure prescribed in the RFCs.

1. <https://www.iana.org/assignments/link-relations/link-relatio...>

rs186•16m ago
The article is proposing a technical solution to a business problem.

I have no doubt this proposal or any other similar proposal would work well in the 90s or early 2000s. Let's go one step further and let browsers work with all those third party website and figure all the details for sharing, and websites never embed anything.

But you see, that's not the problem. These share buttons are often trojans on websites. Facebook tracks you via those share buttons even if you have never had a Facebook account. And people come up with various solutions to tackle that -- adblockers just block network traffic, while a small amount of website owners create a separate switch which you can toggle and then share with Facebook. Isn't all of that stupid? I don't see why Facebook, Instagram will be eager to opt in to this solution and make the experience good.

biggestfan•15m ago
Does anyone even use share buttons? I always just copy the link, and it seems that anyone I see sharing things does the same. It feels more like a way for the social media companies to advertise/track, and those sites have been sending less and less traffic for years, so I wonder why every site still has them.
blahgeek•9m ago
Does this mean that, when the user clicks a "share to social.network" button in random.com, the browser would first request the full html page of social.network (in the background) only to parse the rel="share-url" link? Seems a bad design.

Heroic dog crosses busy street to get owners emergency help in Pittsburgh

https://www.theguardian.com/us-news/2025/aug/04/pittsburgh-hero-dog-emergency-help-owners
1•PaulHoule•13s ago•0 comments

A fix for a divergence issue in a popular SQLite CRDT extension

https://github.com/sqliteai/sqlite-sync/blob/main/docs/PriKey.md
1•marcobambini•28s ago•0 comments

Show HN: Twins of Caduceus – A high dexterity twin-stick snake game

https://mordenstar.com/projects/twins-of-caduceus/
1•vunderba•1m ago•0 comments

Open Source vibe coding platform

1•ainiro•1m ago•0 comments

Show HN: Prisma-Prefixed-IDs – Stripe-Like Prefixes for Prisma JS

https://github.com/pureartisan/prisma-prefixed-ids
1•prageeths•2m ago•0 comments

Deep Learning Tuning Playbook

https://github.com/google-research/tuning_playbook
1•sonabinu•2m ago•0 comments

SQLite-Vector adds support for float16 and bfloat16 (CPU, NEON, AVX2 and SSE2)

https://github.com/sqliteai/sqlite-vector
1•marcobambini•2m ago•0 comments

PHP: A fractal of bad design (2012)

https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/
1•utf_8x•3m ago•0 comments

Show HN: Goo is go plus oh my features

https://github.com/pannous/goo
1•singularity2001•3m ago•0 comments

Building software on top of an LLM is hard, but not that hard

https://reedtaylorbarnes.com/blog/building-with-llms/
1•ketzo•3m ago•0 comments

Janito 2.33.0

1•joaompinto•3m ago•0 comments

Britain's Pub Culture Faces a Mortal Threat: The Single-File Queue

https://www.wsj.com/world/britains-pub-culture-faces-a-mortal-threat-the-single-file-queue-0b6688af
1•impish9208•3m ago•1 comments

So you want to move some data from A to B in AWS

https://simonam.dev/aws-s3-to-efs/
1•furkansahin•5m ago•0 comments

Improving Our Nation Through Better Design

https://www.whitehouse.gov/presidential-actions/2025/08/improving-our-nation-through-better-design/
1•keepamovin•5m ago•0 comments

Flying the Apollo 11 Moon Landing with the Original AGC Code [video]

https://www.youtube.com/watch?v=r_eBGSe5zEQ
1•mariuz•6m ago•0 comments

Speculation around 3I/ATLAS, an interstellar traveler approaching this December

https://www.clickworlddaily.com/2025/08/the-silent-shape-approaching-december.html
1•jonalgarve•7m ago•0 comments

Sshuttle: Where transparent proxy meets VPN meets SSH

https://github.com/sshuttle/sshuttle
1•warrenm•9m ago•0 comments

You Feel Like Shit

https://philome.la/jace_harr/you-feel-like-shit-an-interactive-self-care-guide/play/index.html
1•surprisetalk•9m ago•0 comments

I guess I was wrong about AI persuasion

https://dynomight.net/persuasion/
1•surprisetalk•9m ago•0 comments

Why is choral music harder to appreciate?

https://marginalrevolution.com/marginalrevolution/2025/08/why-is-choral-music-harder-to-appreciate.html
1•surprisetalk•9m ago•0 comments

ShipGoo001

https://en.wikipedia.org/wiki/ShipGoo001
1•surprisetalk•10m ago•0 comments

Nvidia Urges Taiwan to Embrace Nuclear Power Ahead of Referendum

https://www.bloomberg.com/news/articles/2025-08-22/nvidia-urges-taiwan-to-embrace-nuclear-power-ahead-of-referendum
2•keepamovin•10m ago•0 comments

MoQ: Refactoring the Internet's real-time media stack

https://blog.cloudflare.com/moq/
2•englishm•13m ago•0 comments

Georgism

https://en.wikipedia.org/wiki/Georgism
3•tomrod•14m ago•0 comments

I quit my job to build my own startup

https://www.paritydeals.com/blog/i-quit-my-job-to-build-my-own-startup/
2•geojacobm6•15m ago•0 comments

Ancient bones suggest humans interbred with Neanderthals 100k years earlier

https://apnews.com/article/israel-archaeology-neanderthals-sapiens-evolution-773d0cf2e142871cdbb047dc72e7417b
1•gmays•19m ago•0 comments

FBI searches home and office of ex-Trump national security adviser John Bolton

https://apnews.com/article/trump-fbi-bolton-patel-records-home-search-d02cca9e51360115262727ce45be3d65
3•throw0101a•19m ago•0 comments

Show HN: Implement BLAKE3 with Awk

https://github.com/chirsz-ever/awk-hashsum
1•chirsz•21m ago•0 comments

American Citizens Abroad

https://www.americansabroad.org/
2•Propelloni•21m ago•1 comments

Show HN: AIMless – a 10 KB single file P2P chat app with zero dependencies

https://github.com/ImZackAdams/AIMless
1•NyxBNC•23m ago•0 comments