How blcsntb/bluesky-expo works
Based on our review of the file tree and README, the Bluesky Social App is a full‐stack, cross-platform social application. It is primarily a React Native application (written in TypeScript) that covers mobile (iOS/Android) and web platforms. In addition to the mobile/web client code (in the src/ folder and several “bsky…” subdirectories like bskyembed, bskylink, bskyogcard), there is also a small Go-based web service (in the bskyweb folder) that serves the web version of the React Native app. External integration with the AT Protocol (via the @atproto packages) means that the app both consumes (and perhaps even contributes to) decentralized social media APIs.
Main Components
• Embeddable Modules: Separate out the “bskyembed”, “bskylink”, and “bskyogcard” directories as modular components that provide specialized functionality (e.g., embeddable content, link handling, og-card metadata). Show how these modules plug into or extend the main client.
• Web Service (bskyweb): Display the Go-based server component that serves the web build of the app and may handle backend functionalities like rendering templates, serving static assets, and acting as a lightweight API gateway.
• Build/CI/CD and Deployment: Although not “runtime” components, include components for automation (GitHub workflows, Dockerfiles, Makefile, etc.) which show the build pipeline, test suites (unit, E2E, mocks, jest), and deployment processes.
• Native Platform Bridges: For the mobile app, include any native modules (e.g., modules for notifications, bottom-sheet, expo modules) and plugins/extensions (like those in the plugins/ folder) that bridge to iOS/Android functionalities.
Relationships and Data Flows
• The web server (bskyweb) serves the React Native Web bundle (with static assets and HTML templates from the embedr-static and embedr-templates subdirectories) to web users.
• Shared module libraries (state, hooks, lib, and locale) to the client UI, indicating that these modules provide business logic, API communication, state management, and theming.
• Integration between native modules (iOS/Android code under modules/) and the React Native JavaScript layers. For example, show that modules like expo-background-notification-handler and bottom-sheet pass native events or data back to the JS layer.
• Optionally, include interaction flows from user input in the UI (compose screens, dialogs, modals) through data processing layers (e.g., state, API utilities) to the external AT Protocol endpoints.
Architectural Patterns and Design Principles
• Separation of concerns: distinct directories for UI (src/components, src/screens), state (src/state), and business logic (src/lib). This architecture adheres to common patterns found in React applications.
• Modular design: subprojects such as bskyembed, bskylink, and bskyogcard encapsulate isolated functionalities.
• That the project uses a multi-platform design—leveraging React Native for mobile, React for web, and Go for the lightweight server.
• Mention the use of modern CI/CD/CD practices (GitHub Actions workflows, linting and testing scripts) integrated within the repository.
Essential Elements
• Clear labels for each component (e.g., Mobile App UI, Web Service, AT Protocol Interface, etc.).