Loading repository data…
Loading repository data…
weareinreach / repository
InReach is the world’s first open source verified LGBTQ+ resource platform.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
InReach is the world’s first tech platform matching LGBTQ+ people facing persecution and discrimination with safe, verified resources.
The InReach App is available on web (desktop and mobile), and native iOS and Android. Over 9,000 services across the U.S. are currently listed, with new verified services added every day by trained volunteers. InReach’s open-source technology instantly matches LGBTQ+ people in need with independently verified safe housing, medical and mental health care, immigration and other legal help, meal assistance, education and employment, translation, community and spiritual support, and more critical services. InReach is a comprehensive, digital one-stop-shop for all intersectional community needs, with listed verified services for LGBTQ+ asylum seekers, refugees and other immigrants, BIPOC communities, transgender folks, youth and caregivers, and more. The InReach App is free for everyone – including lawyers, case managers, social workers, and other service providers and community organizations searching for affirming resource referrals for LGBTQ+ clients.
This project uses pnpm to manage packages. To install, run the command:
npm -g install pnpm
or follow the instructions on pnpm's installation page.
Docker (& docker compose) are used for local databases. Instructions to install Docker can be found here
To install the required packages & dependencies:
pnpm install
InReach/
├── @types/ # Shared TypeScript types/overrides
├── apps/
│ ├── app/ # InReach Application
│ └── web/ # InReach Main Site
├── docker/ # Docker compose file for local DB instance
├── lambdas/
│ ├── cognito-messaging/ # AWS Lambda to generate Cognito emails
│ └── cognito-user-migrate/ # AWS Lambda for user migration
├── packages/
│ ├── analytics/ # Analytic event handling
│ ├── api/ # tRPC API route definitions
│ ├── auth/ # NextAuth settings
│ ├── config/ # Other shared configs
│ ├── crowdin/ # Crowdin API/OTA
│ ├── db/ # Prisma DB schema & other db scripts
│ ├── env/ # Environment variable validation
│ ├── eslint-config/ # Custom ESlint configuration
│ ├── ui/ # React components shared between apps
│ └── util/ # Misc utility scripts/modules
└── patches/ # Patched npm packages
To start the development live servers:
pnpm dev:app # Starts Next.js for the InReach WebApp
pnpm dev:web # Starts Next.js for inreach.org (future project)
pnpm dev:ui # Starts Storybook for UI component development
Next.js based projects will be available at http://localhost:3000
Storybook will be available at http://localhost:6006
InReach integrates with Crowdin to manage multilingual translations for both common UI content and dynamic org-data.
common, landingPage, services) are static JSON files. Updates are made via PR merges after Crowdin export.orgn_* namespaces) are dynamic and always live. They are fetched via the OTA (Over-The-Air) system, ensuring the latest translations are immediately available in the app.OTA Flow:
manifest.json) that tracks the latest version of each namespace./api/i18n/load with the requested language (lng) and namespaces (ns).The Crowdin integration in InReach involves a set of packages and files that handle fetching translations from Crowdin, caching them, and serving them to the app. Below is a structured list of the key code files controlling this integration.
@weareinreach/crowdin)| File | Purpose |
|---|---|
ota/index.ts | Fetches OTA manifests from Crowdin and downloads translation files or keys. |
ota/edge.ts | Provides edge-compatible functions for OTA, suitable for Next.js Edge runtime. |
cache/index.ts | Handles Redis caching of translations to reduce repeated network calls. |
api/index.ts | REST API wrapper for Crowdin interactions (if needed). |
@weareinreach/app)| File | Purpose |
|---|---|
src/pages/api/i18n/load.ts | Next.js API Edge route that serves translation data to the app. It reads from Redis cache and falls back to OTA for missing keys. |
@weareinreach/db)| File | Purpose |
|---|---|
prisma/data-migrations/* | Static migration jobs that run once to update translation keys or other data in the database. |
prisma/dataMigrationRunner.ts | Runner that executes all pending migration jobs against the Prisma database. |
ota) downloads translations and keys, using Redis cache to minimize network calls.i18n/load.ts) fetches translations for requested languages and namespaces, reading from cache or OTA as needed.data-migrations) is updated only for static migration jobs via dataMigrationRunner.ts. OTA updates for org-data happen dynamically at runtime; static translations are applied once via migrations.Crowdin Usage Overview (from Billing info)
Implications:
See the open issues for a list of proposed features (and known issues).
Reach out to the maintainer at one of the following places:
If you want to say thank you or/and support active development of InReach:
Together, we can make InReach better!
First off, thanks for taking the time to contribute! Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make will benefit everybody else and are greatly appreciated.
Please read our contribution guidelines, and thank you for being involved!
The original setup of this repository is by InReach.
For a full list of all authors and contributors, see the contributors page.
InReach follows good practices of security, but 100% security cannot be assured. InReach is provided "as is" without any warranty. Use at your own risk.
For more information and to report security issues, please refer to our security documentation.