>mir
// open source cli tool

share code snippets from your terminal

publish and install reusable code snippets — including full directory structures — with a single command from your terminal.

~/projects/my-app
$ npx @tbsten/mir install @tbsten/react-hooks
resolving dependencies...
downloading @tbsten/react-hooks@2.1.0
extracting files...
[done] installed to ./src/hooks/
src/hooks/
├── use-debounce.ts
├── use-local-storage.ts
├── use-media-query.ts
└── index.ts

$ explore snippets

// discover and install community-shared code snippets

$
// filters:sort: popular

// showing 5 snippets

react-hook

// A set of useful React hooks for common tasks

↓ --

react-component

// React component boilerplate with TypeScript

↓ --

express-router

// Express router with CRUD endpoints

↓ --

nextjs-page

// Next.js App Router page with layout

↓ --

vitest-setup

// Vitest configuration and test utilities

↓ --