🔀 Fork of Bluesky (https://github.com/bluesky-social/social-app) with minor adjustments for https://zio.blue
 
 
 
 
 
 
Go to file
Samuel Newman fff2c079c2
[Videos] Video player - PR #2 - better web support (#4732)
* attempt some sort of "usurping" system

* polling-based active video approach

* split into inner component again

* click to steal active video

* disable findAndActivateVideo on native

* new intersectionobserver approach - wip

* fix types

* disable perf optimisation to allow overflow

* make active player indicator subtler, clean up video utils

* partially fix double-playing

* start working on controls

* fullscreen API

* get buttons working somewhat

* rm source from where it shouldn't be

* use video elem as source of truth

* fix keyboard nav + mute state

* new icons, add fullscreen + time + fix play

* unmount when far offscreen + round 2dp

* listen globally to clicks rather than blur event

* move controls to new file

* reduce quality when not active

* add hover state to buttons

* stop propagation of videoplayer click

* move around autoplay effects

* increase background contrast

* add subtitles button

* add stopPropagation to root of video player

* clean up VideoWebControls

* fix chrome

* change quality based on focused state

* use autoLevelCapping instead of nextLevel

* get subtitle track from stream

* always use hlsjs

* rework hls into a ref

* render player earlier, allowing preload

* add error boundary

* clean up component structure and organisation

* rework fullscreen API

* disable fullscreen on iPhone

* don't play when ready on pause

* debounce buffering

* simplify giant list of event listeners

* update pref

* reduce prop drilling

* minimise rerenders in `ActiveViewContext`

* restore prop drilling

---------

Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
Co-authored-by: Hailey <me@haileyok.com>
2024-08-07 18:47:51 +01:00
.bundle Initial commit 2022-06-07 17:50:05 -05:00
.github bskyogcard: support emoji, more languages, long starter pack names (#4668) 2024-06-27 13:02:29 -04:00
.husky Make `lint-staged` work in more envs (#4532) 2024-06-16 13:42:15 +03:00
__e2e__ Release 1.89 prep (#4822) 2024-07-24 15:23:31 -07:00
__mocks__ Use Sentry only for errors (#1776) 2023-11-07 04:30:00 +00:00
__tests__/lib Starter Packs (#4332) 2024-06-21 21:38:04 -07:00
assets [Videos] Video player - PR #2 - better web support (#4732) 2024-08-07 18:47:51 +01:00
bskyembed [Embeds] stop adding tracking params to non-bsky.app links (#4167) 2024-05-23 03:52:46 +01:00
bskylink offer a json response for grabbing short links (#4671) 2024-06-27 11:31:24 -07:00
bskyogcard bskyogcard: support emoji, more languages, long starter pack names (#4668) 2024-06-27 13:02:29 -04:00
bskyweb bskyweb: optional basic auth password middleware (#4759) 2024-08-02 15:57:50 -07:00
code-signing add expo-updates github action (#3270) 2024-03-19 11:18:22 -07:00
docs Clarify some things in OTA docs (#4367) 2024-06-04 18:55:18 -07:00
eslint Unconditionally polyfill Intl.PluralRules for native (#4554) 2024-06-18 17:27:40 +03:00
jest Add `PlatformInfo` module (#4877) 2024-08-05 12:21:34 -07:00
lib/react-compiler-runtime Add React Compiler (#4161) 2024-05-22 18:46:45 +01:00
modules Add `PlatformInfo` module (#4877) 2024-08-05 12:21:34 -07:00
patches Add `PlatformInfo` module (#4877) 2024-08-05 12:21:34 -07:00
plugins referrers for all platforms (#4514) 2024-07-11 18:43:10 -07:00
scripts Starter Packs (#4332) 2024-06-21 21:38:04 -07:00
src [Videos] Video player - PR #2 - better web support (#4732) 2024-08-07 18:47:51 +01:00
web Let React app replace preload (#3900) 2024-05-07 18:29:21 -05:00
.buckconfig Initial commit 2022-06-07 17:50:05 -05:00
.easignore fix bad bool check in action (#3885) 2024-05-06 20:13:12 -07:00
.editorconfig Lint native files (#4768) 2024-07-11 18:15:35 -07:00
.env.example add bundle identifiers to app-info (#3861) 2024-05-04 16:33:10 -07:00
.eslintrc.js Unconditionally polyfill Intl.PluralRules for native (#4554) 2024-06-18 17:27:40 +03:00
.gitignore bskyogcard: support emoji, more languages, long starter pack names (#4668) 2024-06-27 13:02:29 -04:00
.nvmrc feat(nvm): add support for nvm & minor actions housekeeping (#2979) 2024-02-26 17:35:06 -08:00
.prettierignore Add React Compiler (#4161) 2024-05-22 18:46:45 +01:00
.prettierrc.js Add state management 2022-06-09 13:03:25 -05:00
.ruby-version Improve lightbox... and update to React Native 0.71.0 (#49) 2023-01-17 20:40:02 -06:00
.watchmanconfig Initial commit 2022-06-07 17:50:05 -05:00
Dockerfile Add og meta tags to starter pack detail (#4585) 2024-06-24 21:06:53 -04:00
Dockerfile.bskylink Bsky short link service (#4542) 2024-06-21 12:41:06 -04:00
Dockerfile.bskyogcard bskyogcard: support emoji, more languages, long starter pack names (#4668) 2024-06-27 13:02:29 -04:00
Dockerfile.embedr go version for embedr (#4632) 2024-06-24 21:56:32 -04:00
Gemfile Improve lightbox... and update to React Native 0.71.0 (#49) 2023-01-17 20:40:02 -06:00
LICENSE Update copyright year in LICENSE (#2606) 2024-01-25 12:15:40 -08:00
Makefile rebased embedr (#3511) 2024-04-13 12:20:06 -07:00
README.md Update README.md (#4394) 2024-07-08 19:02:26 -07:00
app.config.js referrers for all platforms (#4514) 2024-07-11 18:43:10 -07:00
babel.config.js Upgrade to Expo 51 and React Native 0.74 (#3980) 2024-05-29 02:15:35 +01:00
eas.json add an apk to production build outputs for Obtanium release support (#4317) 2024-06-03 17:32:58 -07:00
google-services.json.example Add example google-services file (#1545) 2023-09-28 12:22:23 -07:00
index.js E2E 🟢 (#2092) 2023-12-05 14:50:56 -06:00
index.web.js Mark bundle start time on web (#3147) 2024-03-08 04:13:36 +00:00
lingui.config.js Alphabetise languages by language code (#3350) 2024-04-04 10:51:54 -07:00
metro.config.js Let Metro handle import/export instead of Babel (#1772) 2023-10-30 21:54:23 +00:00
package.json [Video] Authed video upload (#4885) 2024-08-07 16:56:12 +01:00
tsconfig.check.json [APP-786] Native notifications (#1095) 2023-08-23 16:28:51 -07:00
tsconfig.e2e.json E2E runner fixes (#2428) 2024-01-04 17:33:57 -08:00
tsconfig.json exclude bskyweb bskyembed and web-build (#3790) 2024-05-01 15:29:30 +01:00
webpack.config.js migrate to `expo-linear-gradient` (#3420) 2024-04-04 21:22:13 -07:00
yarn.lock [Video] Authed video upload (#4885) 2024-08-07 16:56:12 +01:00

README.md

Bluesky Social App

Welcome friends! This is the codebase for the Bluesky Social app.

Get the app itself:

Development Resources

This is a React Native application, written in the TypeScript programming language. It builds on the atproto TypeScript packages (like @atproto/api), code for which is also open source, but in a different git repository.

There is a small amount of Go language source code (in ./bskyweb/), for a web service that returns the React Native Web application.

The Build Instructions are a good place to get started with the app itself.

The Authenticated Transfer Protocol ("AT Protocol" or "atproto") is a decentralized social media protocol. You don't need to understand AT Protocol to work with this application, but it can help. Learn more at:

The Bluesky Social application encompasses a set of schemas and APIs built in the overall AT Protocol framework. The namespace for these "Lexicons" is app.bsky.*.

Contributions

While we do accept contributions, we prioritize high quality issues and pull requests. Adhering to the below guidelines will ensure a more timely review.

Rules:

  • We may not respond to your issue or PR.
  • We may close an issue or PR without much feedback.
  • We may lock discussions or contributions if our attention is getting DDOSed.
  • We're not going to provide support for build issues.

Guidelines:

  • Check for existing issues before filing a new one please.
  • Open an issue and give some time for discussion before submitting a PR.
  • Stay away from PRs like...
    • Changing "Post" to "Skeet."
    • Refactoring the codebase, e.g., to replace MobX with Redux or something.
    • Adding entirely new features without prior discussion.

Remember, we serve a wide community of users. Our day-to-day involves us constantly asking "which top priority is our top priority." If you submit well-written PRs that solve problems concisely, that's an awesome contribution. Otherwise, as much as we'd love to accept your ideas and contributions, we really don't have the bandwidth. That's what forking is for!

Forking guidelines

You have our blessing 🪄 to fork this application! However, it's very important to be clear to users when you're giving them a fork.

Please be sure to:

  • Change all branding in the repository and UI to clearly differentiate from Bluesky.
  • Change any support links (feedback, email, terms of service, etc) to your own systems.
  • Replace any analytics or error-collection systems with your own so we don't get super confused.

Security disclosures

If you discover any security issues, please send an email to security@bsky.app. The email is automatically CCed to the entire team and we'll respond promptly.

Are you a developer interested in building on atproto?

Bluesky is an open social network built on the AT Protocol, a flexible technology that will never lock developers out of the ecosystems that they help build. With atproto, third-party integration can be as seamless as first-party through custom feeds, federated services, clients, and more.

License (MIT)

See ./LICENSE for the full license.

P.S.

We ❤️ you and all of the ways you support us. Thank you for making Bluesky a great place!