api icon indicating copy to clipboard operation
api copied to clipboard

v2 api

Open dromzeh opened this issue 2 years ago • 2 comments

the v2 API no longer relies on indexing the CDN.

instead, we retrieve data directly from a database that stores comprehensive information about each asset.

  • asset's name, unique identifier, file path, tags, who it was uploaded by, uploaded date, file size, etc etc.

this approach allows for more efficient, precise & detailed search capabilities.

alongside this, the api also includes the following:

  • accounts [following, followers, etc]
  • favorite assets
  • saving assets to collections [w/ sharing]
  • users can upload their own assets
  • rewrite to hono

Ready to merge after wanderer-moe/site#230

dromzeh avatar Jun 23 '23 23:06 dromzeh

What made you switch over from D1 to Turso?

TKDev7 avatar Jul 18 '24 21:07 TKDev7

What made you switch over from D1 to Turso?

libsql has full compat with sqlite to begin with, significantly cheaper, actual support as you can't really get any out of CF unless you're paying them thousands a month + D1 also wasn't GA at the time

dromzeh avatar Jul 18 '24 21:07 dromzeh