Website · Docs · Components · npm
Animated React components and micro-interactions for Persian products.
Tarhak is a motion-first component registry you browse, preview, and install into a FarsiUI project. Each component is a focused interaction — menus, cards, carousels, forms — with animation that feels intentional, not decorative.
Components are added to your project with a CLI. You get the source, you own it, and you can change anything.
- Motion-first: built with Motion and Tailwind CSS
- Persian RTL: layouts and copy designed for right-to-left interfaces
- Live previews: every component has an interactive docs page
- Own the code: install into your repo — no locked UI runtime
- FarsiUI-ready: installs through the same registry / CLI model
- One command:
@tarhak/cliwires the registry and adds the component
Tarhak sits next to FarsiUI: FarsiUI covers the design system and primitives; Tarhak adds the animated pieces you drop in on top.
You need a FarsiUI project (npx farsiui@latest init). Then:
npx @tarhak/cli@latest add animated-data-tableSeveral at once:
npx @tarhak/cli@latest add discrete-tabs delete-button focus-testimonialsNo manual registry setup — the CLI configures @tarhak and installs the component.
Connect agent MCP (auto-detects Cursor / Claude / Codex / OpenCode):
npx @tarhak/cli@latest mcpBrowse everything at tarhak.ir and tarhak.ir/docs.
| Path | What it is |
|---|---|
app/ |
Next.js site: landing, docs, previews, API |
registry/default/ |
Component sources, demos, and controls |
content/docs/ |
Documentation MDX |
packages/cli/ |
@tarhak/cli published on npm |
mcp/tarhak-mcp-server/ |
MCP server for Cursor / agents |
public/r/ |
Generated registry JSON (/{name}.json) |
Requirements: Node.js 20+
git clone https://github.com/MiladJoodi/Tarhak.git
cd Tarhak
npm install
npm run devThen open http://localhost:3000.
| Command | Description |
|---|---|
npm run dev |
Start the site (port 3000) |
npm run build |
MCP + registry + sitemap + Next production build |
npm run build:registry |
Rebuild installable registry output |
npm run cli -- add <slug> |
Run the local CLI |
- Website — tarhak.ir
- Documentation — tarhak.ir/docs
- CLI on npm — @tarhak/cli
- FarsiUI — FarsiUI.ir · GitHub
- Sponsors — github.com/sponsors/MiladJoodi
Tarhak follows the same install model as FarsiUI and shadcn/ui: copyable components, CLI install, and registry-based delivery — focused on motion and micro-interactions for Persian products.
MIT · Milad Joodi
