Modoterra's custom React component registry.
modocn is a Vite + React + TypeScript site that showcases and serves a
shadcn/ui-compatible registry of custom React components. The current wave of
components focuses on chat, streaming, virtualization, and markdown-rich UI,
but the product is broader than AI chat alone.
Site:
https://modocn.mdtrr.com
Repository:
https://github.com/modoterra/modocn
This repo is for:
- custom React components Modoterra wants to publish and reuse
- source-available registry blocks teams can own after install
- richer interaction patterns that are usually harder than commodity UI
This repo is not just:
- a chat demo
- an AI-only component site
- a thin marketing shell around npm packages
Install dependencies:
npm installStart the app:
npm run devBuild the registry and site:
npm run buildBuild registry output only:
npm run registry:buildExample install command:
npx shadcn@latest add https://modocn.mdtrr.com/r/chat-full.jsonOther blocks are served from the same pattern:
https://modocn.mdtrr.com/r/<name>.json
The repo is prepared for GitHub Pages with a custom domain.
Implemented in-repo:
- GitHub Actions workflow:
.github/workflows/deploy-pages.yml - custom domain file:
public/CNAME - SPA fallback for client-side routing:
public/404.html - production build includes fresh registry payloads via
npm run registry:build
In GitHub for modoterra/modocn:
- Enable GitHub Pages for the repository
- Use GitHub Actions as the Pages source
- Ensure the
Deploy Pagesworkflow can run onmain
Point modocn.mdtrr.com to GitHub Pages using the standard custom-domain DNS
records for your Pages host.
Once DNS is correct, GitHub should detect the custom domain from CNAME.
npm run build does two important things:
- regenerates the shadcn registry payloads
- builds the docs/demo site
That means the hosted /r/*.json endpoints stay aligned with the current
source instead of drifting behind the docs.
The current component collection includes:
chat-boxchat-inputchat-messagechat-messageschat-fullstreaming-texttransport-openai
The current demos include:
- chat composition
- streaming presets
- virtualization proof
modocn is the public product name.
It is intended to read as a Modoterra-branded component surface and leaves room for the registry to grow beyond the initial chat-heavy collection.