commits
it works for everyone on atproto except bluesky it should be Fine here
i hope
please be niceys
note: this isn't production ready, as it still stores CSAM and other illegal content
moderation is the next stage
will need to refactor the backfill directory bc Ho Boy Thats Bad
this doesnt include ingesting their blobs since that'll happen at request time
means currently dependent on bsky.network but in future this should change
- subdomain specific code (index handler and user
site handler) are now in /routes
- constants from index.ts are now defined in utils.ts
so they can be used by other files
- rkey <=> url functions are now in utils.ts
- new and old error/404 pages which were plaintext now
look nicer and have the atcities ascii logo
- designed the atcities logo. added in ascii
TODO: design and add a proper svg
- remove logic related to resolving pdses and fetching blobs
this will return in backfilling
- hardcoded list of backfilled data
- not connected
- doesnt even start up
options are:
- blob: object with blob record which is a blob itself
in future could be used for things like xml-ed xrpc
calls with processors and rss'd xml'd xrpc calls (for
ex: leaflet pubs as an rss feed)
anything else is lowk stupid lmfao
like you can set whatever mime type you want why would you not do that
Might make 404 redirect to sans / if it cant find a route tho and then falling back to 404
this makes no trailing slash the sane default but allows opt in trailing slash for certain urls
TODO:
- security headers for proper origin sandboxing
(users could store sensitive info + general namespace collisions bad)
- backfill and cdn to take load off of the main appview
this will populate a database which the appview does reads from
and will download any referenced routes (to a certain size per user)
and gc old routes
im stupid and didnt clock that route.ts was because my nsid ended in .route
- uses HOSTNAME env var for root domain, falling back to locahost
- uses PORT env var for port, falling back to 8000 (as non privileged)
- extracts subdomain from url and WILL match it, but not currently
- Returns "404 could not resolve domain" if not matched
- subdomain specific code (index handler and user
site handler) are now in /routes
- constants from index.ts are now defined in utils.ts
so they can be used by other files
- rkey <=> url functions are now in utils.ts
- new and old error/404 pages which were plaintext now
look nicer and have the atcities ascii logo
- designed the atcities logo. added in ascii
TODO: design and add a proper svg
- remove logic related to resolving pdses and fetching blobs
this will return in backfilling
TODO:
- security headers for proper origin sandboxing
(users could store sensitive info + general namespace collisions bad)
- backfill and cdn to take load off of the main appview
this will populate a database which the appview does reads from
and will download any referenced routes (to a certain size per user)
and gc old routes