🔀 Fork of Bluesky (https://github.com/bluesky-social/social-app) with minor adjustments for https://zio.blue
 
 
 
 
 
 
Go to file
lauren bf8db6172f
Add React Compiler (#4161)
* Install babel-plugin-react-compiler

* Install eslint-plugin-react-compiler

* Add and configure react-compiler-runtime

React Compiler uses a small cache function from React 19 at runtime.
Until it's possible to use R19 on RN, this adds a userspace
implementation to polyfill the cache function

* Add eslint-plugin-react-compiler to config

* @lingui/macro should run as the first plugin

@lingui recommends running their `macro` plugin [first in the
pipeline](https://lingui.dev/ref/macro). Normally with the React
Compiler, the compiler plugin should run first as we want to see the
original code as it was written. However, this sometimes causes
conflicts with other babel plugins.

In this case, it looks like the @lingui/macro plugin does some very
light transformation that the compiler can still understand and compile
correctly, so let's run it first.

Before this commit, the compiler would cause the @lingui/macro plugin to
crash because it seems like it would strip off the `extra.raw` property
off of StringLiterals which was being used
[here](1293412c5d/packages/macro/src/macroJsx.ts (L395)).
I need to figure out why the compiler is doing that but for now this
works and should be a safe change unless there were specific reasons
the macro plugin was placed 2nd to last.
2024-05-22 18:46:45 +01:00
.bundle Initial commit 2022-06-07 17:50:05 -05:00
.github Use build arg in docker action to correctly pass git commit SHA (#3940) 2024-05-09 17:29:25 -07:00
.husky set up lint-staged via husky 2023-07-13 15:35:56 -07:00
__e2e__ Release 1.83 (#4136) 2024-05-20 18:23:41 -07:00
__mocks__ Use Sentry only for errors (#1776) 2023-11-07 04:30:00 +00:00
__tests__/lib get a little more accurate with month length (#3981) 2024-05-13 08:39:34 -07:00
assets Switch to a more visually obvious button for the threadgate (#4139) 2024-05-20 19:51:34 -07:00
bskyembed rebased embedr (#3511) 2024-04-13 12:20:06 -07:00
bskyweb use four-digit years for RSS pubDate (#3907) 2024-05-08 09:33:38 -07:00
code-signing add expo-updates github action (#3270) 2024-03-19 11:18:22 -07:00
docs Replace e2e tests with Maestro (#3983) 2024-05-13 08:43:13 -07:00
eslint [Statsig] Make gate checks lazily (#3594) 2024-04-18 04:39:29 +01:00
jest Replace e2e tests with Maestro (#3983) 2024-05-13 08:43:13 -07:00
lib/react-compiler-runtime Add React Compiler (#4161) 2024-05-22 18:46:45 +01:00
modules Disable badge incrementing for DMs (#4088) 2024-05-17 16:05:32 -07:00
patches Implement prefersReducedMotion on native (#4039) 2024-05-16 12:01:26 +01:00
plugins Add push notification extensions (#4005) 2024-05-15 11:49:07 -07:00
scripts Add push notification extensions (#4005) 2024-05-15 11:49:07 -07:00
src Cleanup gates (#4170) 2024-05-22 18:19:07 +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
.env.example add bundle identifiers to app-info (#3861) 2024-05-04 16:33:10 -07:00
.eslintrc.js Add React Compiler (#4161) 2024-05-22 18:46:45 +01:00
.gitignore Add webpack analyzer, PR comments for webpack bundle size (#3383) 2024-04-03 19:31:29 -07: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 Use build arg in docker action to correctly pass git commit SHA (#3940) 2024-05-09 17:29:25 -07:00
Dockerfile.embedr Add kawaii mode (#3773) 2024-05-01 08:59:40 +01: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 Remove invite codes from README (#2988) 2024-02-27 01:24:14 +00:00
app.config.js Add push notification extensions (#4005) 2024-05-15 11:49:07 -07:00
babel.config.js Add React Compiler (#4161) 2024-05-22 18:46:45 +01:00
eas.json Add OTA updates support for `testflight` channel (#3291) 2024-04-03 15:14:44 -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 Add React Compiler (#4161) 2024-05-22 18:46:45 +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 Add React Compiler (#4161) 2024-05-22 18:46:45 +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 on 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, eg 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 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!