YouStars: Browsing GitHub Starred Repositories with React Native
A concept mobile app that visualises the GitHub starred repositories of any user — built with React Native and TypeScript, consuming the GitHub REST API on iOS and Android.
GitHub's starred repositories are a form of personal curation. Over years of using the platform, a developer's stars accumulate into something that resembles a bibliography — a record of tools, libraries, projects, and ideas that caught their attention. YouStars is an app that treats those stars as a first-class data source.
The premise is simple: enter a GitHub username and browse what they have starred, with proper metadata, language badges, and direct links to each repository.
The Concept App Pattern
YouStars was built as a concept app — a project whose primary purpose is to explore a technology, not to solve a business problem. This is a pattern I find valuable. Without product constraints or stakeholder deadlines, a concept app lets you go deep on a specific technical area and produce something you can share and discuss.
In this case, the technology under exploration was React Native with TypeScript. At the time, React Native's reputation for performance and developer experience was mixed. I wanted to form my own view, and the best way to do that is to build something real.
Consuming the GitHub API
The GitHub REST API is well-documented, rate-limited (60 unauthenticated requests per hour, 5,000 with authentication), and returns richly structured JSON. For a concept app, the unauthenticated limit is sufficient.
The stars endpoint — GET /users/{username}/starred — returns paginated arrays of repository objects with fields including name, description, language, stargazer count, last pushed date, and owner information. YouStars fetches these pages incrementally as the user scrolls, implementing infinite scroll with a loading indicator at the bottom of the list.
TypeScript in React Native
Adding TypeScript to a React Native project in 2022 required some configuration that is now handled automatically by the create-react-native-app template. The type definitions for React Native are maintained in the @types/react-native package, and the GitHub API responses are typed against the @octokit/types definitions.
The discipline of typing API responses pays dividends quickly. The GitHub repository object has many optional fields (no description, no homepage, not yet pushed), and TypeScript's strict null checks force you to handle every case explicitly rather than discovering them at runtime.
Cross-Platform Considerations
React Native renders using native platform components, so the same TypeScript code produces a genuinely native experience on both iOS and Android. The list view uses React Native's FlatList, which is a performant, native-scrolling list component. The header search bar maps to the native iOS search controller on iOS and a Material Design text input on Android.
One platform difference that required explicit handling: iOS status bar styling. On iOS, the status bar overlaps the app content by default; on Android, it does not. A Platform.select call in the container component handles this.
What I Took Away
React Native's bridge architecture (in the version used at the time) introduced some performance caveats for heavy animations, but for a data-driven list application like YouStars, it was more than adequate. The developer experience — hot reload, the Metro bundler, the React DevTools integration — was excellent.
Most importantly, working in React Native with TypeScript confirmed that the React mental model (components, hooks, unidirectional data flow) translates naturally to mobile UI, regardless of the rendering target.
The simulation and source code are available on GitHub.