MCPcopy Index your code
hub / github.com/BrightID/BrightID

github.com/BrightID/BrightID @5.0.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release 5.0.2 ↗ · + Follow
916 symbols 3,377 edges 340 files 3 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

www.brightid.org

Unique Human Identity

BrightID allows you to prove to applications that you're only using one account.

Decentralized & Nonintrusive

The network consists of volunteers running nodes. Nodes host the social graph used for verification, but there's no personal information stored there.

Mobile App

ID creation and connections to people and apps are managed through the BrightID mobile app.

Contribute

Contributions to translations are welcome through weblate.

Integrating BrightID in your Project

This is a new React Native project, bootstrapped using @react-native-community/cli.

Getting Started

Note: Make sure you have completed the Set Up Your Environment guide before proceeding.

Step 1: Start Metro

First, you will need to run Metro, the JavaScript build tool for React Native.

To start the Metro dev server, run the following command from the root of your React Native project:

# Using npm
npm start

# OR using pnpm
pnpm start

Step 2: Build and run your app

With Metro running, open a new terminal window/pane from the root of your React Native project, and use one of the following commands to build and run your Android or iOS app:

Android

# Using npm
npm run android

# OR using pnpm
pnpm android

iOS

For iOS, remember to install CocoaPods dependencies (this only needs to be run on first clone or after updating native deps).

The first time you create a new project, run the Ruby bundler to install CocoaPods itself:

bundle install

Then, and every time you update your native dependencies, run:

bundle exec pod install

For more information, please visit CocoaPods Getting Started guide.

# Using npm
npm run ios

# OR using pnpm
pnpm ios

If everything is set up correctly, you should see your new app running in the Android Emulator, iOS Simulator, or your connected device.

This is one way to run your app — you can also build it directly from Android Studio or Xcode.

Step 3: Modify your app

Now that you have successfully run the app, let's make changes!

Open App.tsx in your text editor of choice and make some changes. When you save, your app will automatically update and reflect these changes — this is powered by Fast Refresh.

When you want to forcefully reload, for example to reset the state of your app, you can perform a full reload:

  • Android: Press the R key twice or select "Reload" from the Dev Menu, accessed via Ctrl + M (Windows/Linux) or Cmd ⌘ + M (macOS).
  • iOS: Press R in iOS Simulator.

Congratulations! :tada:

You've successfully run and modified your React Native App. :partying_face:

Now what?

  • If you want to add this new React Native code to an existing application, check out the Integration guide.
  • If you're curious to learn more about React Native, check out the docs.

Troubleshooting

If you're having issues getting the above steps to work, see the Troubleshooting page.

Learn More

To learn more about React Native, take a look at the following resources:

Extension points exported contracts — how you extend this code

SocialMediaVariationShared (Interface)
(no doc)
BrightID/types.d.ts
Locale (Interface)
(no doc)
BrightID/__mocks__/react-native-localize.ts
LogFileScreenProps (Interface)
(no doc)
BrightID/src/components/SideMenu/LogFileScreen.tsx
Section (Interface)
(no doc)
BrightID/src/components/Connections/ConnectionScreen.tsx
ConnectionStatsProps (Interface)
(no doc)
BrightID/src/components/PendingConnections/ConnectionStats.tsx
ExtendedRenderOptions (Interface)
(no doc)
BrightID/src/utils/test-utils.tsx
SettingsSlice (Interface)
(no doc)
BrightID/src/reducer/settingsSlice.ts

Core symbols most depended-on inside this repo

dispatch
called by 411
BrightID/src/NavigationService.ts
useDispatch
called by 54
BrightID/src/store/hooks.ts
navigateHome
called by 46
BrightID/e2e/testUtils.ts
uInt8ArrayToB64
called by 30
BrightID/src/utils/encoding.ts
b64ToUrlSafeB64
called by 29
BrightID/src/utils/encoding.ts
createFakeConnection
called by 29
BrightID/e2e/testUtils.ts
renderWithProviders
called by 28
BrightID/src/utils/test-utils.tsx
expectConnectionsScreen
called by 28
BrightID/e2e/testUtils.ts

Shape

Function 794
Method 72
Class 22
Enum 19
Interface 9

Languages

TypeScript99%
Kotlin1%
Java1%

Modules by API surface

BrightID/src/api/brightId.ts36 symbols
BrightID/e2e/testUtils.ts25 symbols
BrightID/src/reducer/appsSlice.ts23 symbols
BrightID/src/reducer/groupsSlice.ts21 symbols
BrightID/src/components/Onboarding/RecoveryFlow/recoveryDataSlice.ts21 symbols
BrightID/src/reducer/userSlice.ts16 symbols
BrightID/src/reducer/connectionsSlice.ts15 symbols
BrightID/src/components/Connections/ConnectionScreen.tsx15 symbols
BrightID/src/components/EditProfile/EditProfileScreen.tsx14 symbols
BrightID/src/components/Onboarding/RecoveryFlow/thunks/channelDownloadThunks.ts12 symbols
BrightID/__mocks__/react-native-localize.ts11 symbols
BrightID/src/utils/encoding.ts10 symbols

For agents

$ claude mcp add BrightID \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact