Top
Best
New

Posted by redbell 11/3/2025

App Store web has exposed all its source code(www.reddit.com)
284 points | 138 comments
dzonga 11/4/2025|
sourcemaps should be enabled -- that's how people learn.

a lot of people learned to code on the web via viewsource - now we are obfuscating the code

zerr 11/5/2025||
Probably due to usage of fat front end frameworks which also include whole business logics.
namegulf 11/6/2025||
sourcemaps are not for learning, it's for debugging
embedding-shape 11/6/2025|||
Some sites want to ship small bundles to the client by default, sourcemaps enables that + you get to introspect it because it's downloaded only when requested. Literally best of both worlds :)
samdoesnothing 11/6/2025||
I love shipping source maps for my stuff bc it lets other developers take a peek and I love doing that with other peoples sites :)
samtheprogram 11/6/2025||||
Idk why you are getting downvoted.

To elaborate on your comment, if you just ship sourcemaps in production, that means you can ship minified code and track down what _actual_ source that you _aren't_ shipping to users is getting called, is in stack traces, etc.

I'm not aware of a point of sourcemaps otherwise.

silverwind 11/6/2025|||
Yep, sourcemaps are essential to get usable error stack traces, and that's their only purpose.
firecall 11/6/2025||
You mean it's no longer built with WebObjects!

https://en.wikipedia.org/wiki/WebObjects

themafia 11/6/2025|
Java has it's place but it was delivered in such a way that it created an immense amount of collateral damage and lasting technical debt.
pavlov 11/6/2025|||
WebObjects was originally written in Objective-C.

Now that's a fine language for a server. It combines the type safety of Ruby, the memory safety of C, and the terseness of Java.

(I'm joking, mostly... Actually I was a big fan of Obj-C for desktop apps. Fond memories of times when I didn't have to care about servers and ever-changing web frameworks.)

firecall 11/6/2025|||
I was kinda trying being funny or sarcastic or something like that :-)

And amusing to myself how many people actually remember or know what WebObjects was!

karel-3d 11/6/2025||
All I know about is it the great box art. It always looked so cool and mysterious to me as a young developer.

The same with everything called "XSan" and "Mac OS X Server". I don't know what any of it was, but the box art was always so cool.

redbell 11/5/2025||
OP here..

Here's the original post by the author of the repo himself: https://old.reddit.com/r/webdev/comments/1onnzlj/app_store_w...

Imustaskforhelp 11/6/2025|
The github link in the reddit post is taken by DMCA
redbell 11/6/2025||
Yes, but the full source code was archived here: https://archive.softwareheritage.org/browse/origin/directory...
4cidBurn 11/6/2025||
Oh great, thanks for the link!
ChrisMarshallNY 11/5/2025||
As a frequent user of the backend (Connect), I am skeptical that this is source that you want to reproduce (unless you're a scammer).
numpy-thagoras 11/6/2025|
The source code had a very elegant and systematic use of intents (including prefetched intents) and a dependency injection container.

The pattern itself is a little bit different, has some conceptual overhead, but it's also fairly clean and scaleable.

ChrisMarshallNY 11/6/2025||
Yeah, it was a bit of a joke.

I’ve been staring at Apple source code (the stuff they let The Great Unwashed see), for almost forty years.

It’s always been very polished, well-structured, well-documented, succinct, and beautifully written.

It’s been an inspiration for my own work. I have always striven to emulate them.

That’s why it’s so shocking for me to encounter the terrible quality of the Connect backend. It’s quite painful, and disappointing.

JimDabell 11/6/2025||
I remain convinced App Store Connect is the project they put interns on. It also explains why they keep redesigning / reimplementing it, then losing interest and leaving it part-finished and incoherent. It’s because the interns working on it go back to school.
paulddraper 11/6/2025||
I remember when all websites “exposed” their source code.
johanbcn 11/6/2025|
And some webmasters were pretty keen on interfering with the context menu and your shortcut keys in order to prevent you to see it (and failing).
aitchnyu 11/6/2025||
Is there any reason sourcemaps are a genuine problem? I'm out of touch with the JS world, but I wonder if code is shared between server and client and server code may show in sourcemaps.
dominicrose 11/6/2025|
If obfuscating code is a necessity then sourcemaps are a necessity as well, they should just not be available in production.
madeofpalk 11/6/2025|||
That's if your goal is to obfuscate code.

Often though, Javascript is hard to read not because it's been obfuscated, but because its been transpiled and/or minified for smaller network payloads.

I can understand why some don't want to ship their sourcemaps to prod, but also it really doesn't matter all that much.

dominicrose 11/7/2025||
If your goal isn't to obfuscate code as you said you still need to do some kind of transformation so sourcemaps are necessary. It's possible to debug code that's been converted from ES2025 to ES3 without them but it's really annoying to have to do that.

Let's be honest, when a company makes a website they want you to see the website not the code. Of course front-end code is less private in nature but still, showing it could expose some vulnerabilities.

prmoustache 11/6/2025|||
When can it be a necessity?
vbezhenar 11/6/2025||
Told ya: https://news.ycombinator.com/item?id=30337690

This issue is very wide-spread.

embedding-shape 11/6/2025||
> It exposes all your frontend source code for everyone. If you don't want to open source your frontend, you might want to remove those source maps from public access.

I wonder how much difference LLMs today have on being able to turn minified JS into something easily readable? JSNice already worked pretty well and I guess that was comparatively naive. You won't really stop anyone motivated to reverse-engineer it by not providing source maps, but you'll definitely stop at least some curious people from understanding how websites work. Your frontend also doesn't suddenly turn "open source" just because you shared the original source via source maps, that part sounds kind of FUD.

lanyard-textile 11/6/2025|||
Oof! You certainly did, I remember reading this and not thinking that much of it at the time.
paulddraper 11/6/2025||
What’s the issue?
namegulf 11/6/2025||
Still not sure What was the excitement about.

Was it, HTML, CSS & Javascript?

Yaina 11/6/2025|
It's written in Svelte, which personally I'm excited about just because it means that a pretty big tech company is using it :)

And the "leak" is fun for me because you can see how they write their components haha

icar 11/6/2025|||
Apple Music web is written in Svelte as well. At least last time I checked.
tbolt 11/6/2025||
Last I checked it was Ember. That was several years ago though.
qn9n 11/6/2025||
They updated Podcasts and Music to Svelte in the last couple of years.
arvinsim 11/6/2025||||
Can you tell me what is the number 1 feature that Svelte has over the incumbents like React?
scosman 11/6/2025|||
Not so much features as design.

Svelte files look like HTML+TS files. You aren’t learning some abstraction to HTML, you are just using HTML. But it adds the modern bits you need: reactivity, loops, components, routing, etc. Nothing react doesn’t have, but the devex is great.

Other benefits:

- your app is compiled. You don’t ship the framework to clients, they just get a minimal compiled app.

- The rendering modes are pretty great. Any page can be server side rendered, or client side, with per page flags. You also can easily setup SSR for the first page, and CSR for later pages - both the fastest option. It will even pre-fetch the next page when you hover a link, making most nav instant.

troupo 11/6/2025||||
Radically simpler reactivity that doesn't require 20 different hooks to do the same thing.

Same goes for most modern frameworks (Solid, Vue, Preact) and even old ones experiencing a renaissance like Angular.

flowerthoughts 11/6/2025|||
(Not a user, just evaluated it previously. Please correct what I got wrong.) They compile the reactivity statically, so instead of tracking effects at runtime, they generate code for it. I'd guess it means slightly more JS to download, but less initialization in runtime.

However, they recently added runtime reactivity to be more flexible, so it seems to me they are becoming VueJS.

no_wizard 11/6/2025|||
I wonder what the heck @jet is. Never heard of that before. Must be an internal lib?
zb3 11/5/2025||
In case you want to save sources with the ability to fetch all possible lazy chunks, last year I made a tool to do exactly that: https://github.com/zb3/getfrontend

(note it won't work on apps.apple.com because apple has removed these sourcemaps)

OCTAGRAM 11/4/2025|
There was Cappucino by ex-Apple employees, and actual Apple devs had SproutCore. So where did they go? Why some unknown libraries?
afavour 11/5/2025||
It's using Svelte, I wouldn't exactly call that unknown. Why maintain your own library when a third party one does exactly what you need?
frou_dh 11/5/2025|||
Unsurprisingly there are many frameworks/initiatives that end up falling by the wayside over the years, e.g. MacRuby was being lined up to supersede Objective-C for app development at one point.
stephen_g 11/6/2025||
Didn’t SproutCore become Ember [1]? Just my vague recollection, not sure if that was the case though. Anyway, Ember is still used and maintained, despite not being very well known.

1. https://emberjs.com/

russelg 11/6/2025||
I don't know if it's still true, but Apple Music was indeed Ember at a point.
More comments...