Simon Willison on Nostr: For almost any file format you can think of (PDFs, xlsx, shapefiles, etc) there are ...
For almost any file format you can think of (PDFs, xlsx, shapefiles, etc) there are robust, high quality JavaScript libraries for handling them on npm - and the chances are that your user's laptop has more available RAM and CPU than your server does, so provided you trust your users, having their browser do that initial processing work actually makes a lot of sense
Published at
2024-03-24 15:29:43Event JSON
{
"id": "8dc3ca88483575d59166b06cfb1f5ecde59930ae889e64f3a7f86fbe4306ec66",
"pubkey": "8b0be93ed69c30e9a68159fd384fd8308ce4bbf16c39e840e0803dcb6c08720e",
"created_at": 1711294183,
"kind": 1,
"tags": [
[
"e",
"55de9edc9a7f729de5c2ee0b6fc4a89d40fd341c64d333d21b4bfcc544a15f19",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://fedi.simonwillison.net/users/simon/statuses/112151375586857923",
"activitypub"
]
],
"content": "For almost any file format you can think of (PDFs, xlsx, shapefiles, etc) there are robust, high quality JavaScript libraries for handling them on npm - and the chances are that your user's laptop has more available RAM and CPU than your server does, so provided you trust your users, having their browser do that initial processing work actually makes a lot of sense",
"sig": "6fd7f59cffb6753b62123af6fc2e39d3eb7efaf793730d46aa312292edb75b0f66f4ca6b4da2e2fabadae65070150310d8240e4af959bb434af1dd8901ef8430"
}