How zyronce-ai/tools works
NayraTools is a React-based AI toolkit for ecommerce sellers, with public marketing and blog pages alongside protected seller tools. The principal workflow is a seller submitting tool input, the frontend calling a Supabase Edge Function (optionally streaming output), and the tool presenting the result. README capabilities include listing generation, keyword research, competitor analysis, banners, and other AI and image utilities. Several routes and calls are evidenced in excerpts; other feature links are documented or inferred, so those edges are marked unverified.
Main entry points: App.tsx Application Router · AmazonListingGenerator.tsx Listing Generator · FakeReviewDetector.tsx Review Detector · ai-stream.ts Streaming Client
Components 23
Web Experience
- Application Router
src/App.tsx - Tool Discovery
src/pages/LandingPage.tsx - Seller Blog
src/pages/Blog.tsx - UI Primitives
src/components/ui/button.tsx - SEO Metadata
src/components/SEO.tsx - Structured Data
src/components/JsonLd.tsx - Theme Provider
src/components/ThemeProvider.tsx - Toast State
src/hooks/use-toast.ts
Identity and Plans
- Auth Context
src/hooks/useAuth.tsx - Firebase Auth
src/lib/firebase.ts - Plan Presentation
src/components/PricingSection.tsx
Seller Tools
- Listing Generator
src/pages/AmazonListingGenerator.tsx - AI Chat
src/pages/ChatBot.tsx - Review Detector
src/pages/FakeReviewDetector.tsx - Other Seller Tools
src/pages - Streaming Client
src/lib/ai-stream.ts
AI Backend
- Edge Tool Functions
supabase/functions - Listing Function
supabase/functions/generate-amazon-listing/index.ts - Keyword Function
supabase/functions/product-keywords/index.ts - Startup Guide Function
supabase/functions/startup-guide/index.ts - AI Call Layer
supabase/functions/_shared/ai-call.ts
Other components
- Seller
- Supabase Functions API
Connections 23
- Seller → Application Router: opens
src/App.tsx - Application Router → Tool Discovery: routes to
src/App.tsx - Application Router → Listing Generator: routes to
src/App.tsx - Application Router → AI Chat: routes to
src/App.tsx - Application Router → Review Detector: routes to
src/App.tsx - Application Router → Other Seller Tools: routes to
src/App.tsx - Seller → Seller Blog: browses
src/pages/Blog.tsx - Tool Discovery → Plan Presentation: links plans
src/pages/LandingPage.tsx - Review Detector → Streaming Client: sends reviews
src/pages/FakeReviewDetector.tsx - Streaming Client → Supabase Functions API: posts and streams
src/lib/ai-stream.ts - Listing Generator → Listing Function: requests listing
- Listing Function → AI Call Layer: calls AI
supabase/functions/generate-amazon-listing/index.ts - Keyword Function → AI Call Layer: calls AI
supabase/functions/product-keywords/index.ts - Startup Guide Function → AI Call Layer: calls AI
supabase/functions/startup-guide/index.ts - Streaming Client → Edge Tool Functions: targets function
src/lib/ai-stream.ts - Edge Tool Functions → Supabase Functions API: served through
- Application Router → Auth Context: provides auth
src/App.tsx - Auth Context → Firebase Auth: observes sign-in
src/hooks/useAuth.tsx - Application Router → Theme Provider: wraps routes
src/App.tsx - Application Router → Structured Data: renders schema
src/App.tsx - Listing Generator → UI Primitives: uses controls
src/pages/AmazonListingGenerator.tsx - Seller Blog → SEO Metadata: sets metadata
src/pages/Blog.tsx - Review Detector → Toast State: reports status
src/pages/FakeReviewDetector.tsx