How rockbenben/chatgpt-shortcut works
AiShort is a multilingual AI-prompt discovery and management application. A visitor searches or browses prompts, copies one for use in an external AI tool, and—after login—can organize a collection, manage custom prompts, or participate in community sharing and discussion. The graph preserves those documented product branches and the sampled authentication, API, and collection layers. Some UI-to-service wiring and several documented capabilities were not sampled; those links are shown only where the README or source index supports them.
Main entry points: api Application APIs · client.ts HTTP client · HomePage.tsx Prompt home · index.tsx Tag and keyword search
Components 21
Prompt discovery
- Prompt home
src/components/HomePage.tsx - Tag and keyword search
src/components/SearchBar/index.tsx - Prompt cards
src/components/PromptCard/Base.tsx - One-click copy
src/hooks/useCopyToClipboard.ts
Accounts and collection
- Login interface
src/components/user/login.tsx - Authentication state
src/components/AuthContext.tsx - Authentication APIs
src/api/auth.ts - My Collection
src/components/user/MySpace.tsx - Collection items
src/components/user/myspace/useSpaceItems.ts - Custom tag manager
src/components/user/myspace/TagManagerModal.tsx - Custom prompts
src/hooks/useUserPrompt.tsx - Data import and export
src/components/user/account/useImportExport.tsx
Community features
- Community browsing
src/pages/community-prompts.tsx - Favorites and votes
src/hooks/useFavorite.tsx - Comments and replies
src/components/CommentComponent/usePollForAIReply.ts
Shared platform
- Application APIs
src/api - HTTP client
src/api/client.ts - Session cache
src/api/sessionCache.ts
Other components
- Visitor
- AI tool
- Strapi API
Connections 24
- Visitor → Prompt home: browses
README.md - Prompt home → Tag and keyword search: finds prompts
README.md - Tag and keyword search → Prompt cards: filters prompts
README.md - Prompt cards → One-click copy: copies prompt
README.md - One-click copy → AI tool: pastes into
README.md - Visitor → Login interface: signs in
README.md - Login interface → Authentication state: establishes session
- Authentication state → Application APIs: loads account data
src/components/AuthContext.tsx - Authentication APIs → HTTP client: sends auth requests
src/api/auth.ts - HTTP client → Session cache: clears on 401
src/api/client.ts - Visitor → My Collection: organizes collection
README.md - My Collection → Collection items: manages items
- Collection items → Custom tag manager: assigns custom tags
- Visitor → Custom prompts: creates prompts
README.md - Custom prompts → Application APIs: submits changes
src/hooks/useUserPrompt.tsx - Visitor → Data import and export: exports data
README.md - Visitor → Community browsing: discovers shared prompts
README.md - Community browsing → Favorites and votes: votes and favorites
- Favorites and votes → Application APIs: patches favorites
src/hooks/useFavorite.tsx - Visitor → Comments and replies: discusses prompts
README.md - Comments and replies → Application APIs: polls for replies
src/components/CommentComponent/usePollForAIReply.ts - Application APIs → HTTP client: uses HTTP client
src/api/auth.ts - HTTP client → Strapi API: requests API
src/api/client.ts - Visitor → Prompt home: chooses language
README.md