๐ฐ The MagicSync Castle โ Understanding Our Building Blocks! โ
Welcome to the secret behind MagicSync! Think of our project like a big castle with many rooms. Each room has a special job! Let's explore!
๐จ The Design Room โ @local-monorepo/ui โ
The UI Layer is like the decoration team that makes everything look beautiful!
What It Does โ
- Makes all the buttons, colors, and layouts!
- Gives everyone a consistent look (like a school uniform!)
- Uses Nuxt UI v4 โ the best toolkit for pretty interfaces!
- Has Tailwind CSS โ like having a magic paint box!
Superpowers โ
- โ Pre-made components (like LEGO blocks!)
- โ Dark and light modes (for day and night!)
- โ Smooth animations (everything moves nicely!)
- โ Works on all screen sizes!
๐ The Gatekeeper โ @local-monorepo/auth โ
The Auth Layer is like the security guard at the castle entrance!
What It Does โ
- Checks who you are (are you really YOU?)
- Keeps bad guys out!
- Manages passwords and secret codes
- Uses Better Auth โ a super trustworthy security system!
Superpowers โ
- โ Login and registration
- โ Session management (keeps you logged in!)
- โ Server protection (only allowed people enter!)
- โ Works with the Database to remember everyone!
๐๏ธ The Treasure Room โ @local-monorepo/db โ
The Database Layer is like the giant treasure chest that stores everything!
What It Does โ
- Stores all your posts, users, and settings
- Remembers everything forever (until you delete it!)
- Uses Drizzle ORM โ a super organized librarian!
- Uses Turso โ a fast and reliable storage!
Superpowers โ
- โ Never forgets your data!
- โ Super fast (like a race car!)
- โ Keeps everything organized
- โ Can handle millions of treasures!
๐ค The Innovation Lab โ @local-monorepo/ai-tools โ
The AI Tools Layer is like the mad scientist lab where magic happens!
What It Does โ
- Uses AI to help create content!
- Generates ideas and improve posts!
- Has a teleprompter for videos!
- Analyzes your growth!
Features โ
๐ง Growth Strategy Dashboard
- Today's/This Week/This Month to-do lists
- 5 golden rules always visible
- 7/30/90 day action plans (saved for you!)
๐ฌ Content Pipeline
- Idea brainstorming (20+ ideas at once!)
- Hook variations (4 proven types + custom!)
- AI Health Check (Gemini 2.0 Flash analyzes your script!)
- Teleprompter (with camera, speed control, focus mode!)
- Edit checklist (3 quick checks!)
- Upload to platforms!
๐ Data Analytics
- Input your post stats
- Get instant recommendations!
- "LOW CTR?" โ Make thumbnail brighter!
- "LOW RETENTION?" โ Cut the intro!
๐ผ๏ธ The Art Gallery โ @local-monorepo/assets โ
The Assets Layer is like a beautiful art gallery where images, icons, and files hang on the walls!
What It Does โ
- Stores all images, icons, and static files
- Makes them available to every other room!
- Keeps everything organized!
Superpowers โ
- โ One place for ALL your media!
- โ Shared across the whole castle!
- โ Fast loading (no waiting!)
โฐ The Time Tower โ @local-monorepo/scheduler โ
The Scheduler Layer is like a magical clock that posts things at the perfect time!
What It Does โ
- Decides WHEN to send your posts!
- Manages a queue (like a line at the bakery!)
- Talks to social media platforms!
- Uses FullCalendar for the visual calendar!
Connected Platforms โ
- ๐ฆ Twitter/X
- ๐ผ LinkedIn
- ๐ธ Instagram (via API)
- ๐ Facebook
- ๐ต TikTok
- ๐ฌ YouTube
- And more!
๐ The Bulk Post Office โ @local-monorepo/bulk-scheduler โ
The Bulk Scheduler Layer is like a super efficient post office that can handle thousands of letters at once!
What It Does โ
- Reads CSV files (magic spreadsheets!)
- Creates hundreds of posts instantly!
- Perfect for planning big campaigns!
Superpowers โ
- โ Upload a list of 500 posts in seconds!
- โ CSV format (easy to create in Excel!)
- โ Smart validation (no mistakes!)
- โ Works with testing (Vitest + Playwright!)
๐ค The Connector โ @local-monorepo/connect โ
The Connect Layer is like the friendly ambassador who makes friends with other social platforms!
What It Does โ
- Handles OAuth (the "Login with Facebook" buttons!)
- Manages API connections to all platforms!
- Stores access tokens securely!
Superpowers โ
- โ One-click social connections!
- โ Secure token storage!
- โ Multi-platform support!
๐ The Story Room โ @local-monorepo/content โ
The Content Layer is like the library where blog posts and stories live!
What It Does โ
- Uses Nuxt Content to manage static content!
- Creates beautiful documentation!
- Manages the knowledge base!
Superpowers โ
- โ Markdown support (easy writing!)
- โ Beautiful code highlighting!
- โ Fast page loads!
๐ง The Message Bird โ @local-monorepo/email โ
The Email Layer is like a postal pigeon that sends important emails!
What It Does โ
- Sends transactional emails!
- Uses MJML for beautiful email templates!
- Welcomes new users, resets passwords, and more!
Email Types โ
- โ Welcome emails
- โ Password resets
- โ Notifications
- โ New follower alerts
๐ฆ The Template Shop โ @local-monorepo/templates โ
The Templates Layer is like having a collection of pre-made greeting cards!
What It Does โ
- Stores post templates!
- Makes creating posts faster!
- Keeps your brand consistent!
Superpowers โ
- โ Reusable formats!
- โ Brand consistency!
- โ Quick content creation!
๐ฐ The Main Castle โ @local-monorepo/site โ
The Site Layer is like the big castle that brings everything together!
What It Does โ
- Extends ALL other layers!
- This is what users actually see and use!
- The final product that makes magic happen!
What It Includes โ
- Everything from every layer!
- All the pages users visit!
- The main application!
๐ The Library โ @local-monorepo/doc โ
The Documentation Layer is like the rulebook and map for adventurers!
What It Does โ
- Built with VitePress (super fast documentation!)
- This very documentation you're reading!
- Guides, tutorials, and references!
๐ฏ How They All Work Together! โ
User visits the Site ๐ฐ
โ
Auth checks who you are ๐
โ
Database shows your data ๐๏ธ
โ
AI helps create content ๐ค
โ
Scheduler posts at the right time โฐ
โ
Connect talks to social platforms ๐ค
โ
Email sends confirmation ๐ง
โ
Stats show how it went! ๐๐ง For Developers โ
If you're a developer wanting to contribute:
| Layer | Tech Stack |
|---|---|
| UI | Nuxt 4, Nuxt UI v4, Tailwind CSS |
| Auth | Better Auth, better-sqlite3 |
| DB | Drizzle ORM, Turso (LibSQL) |
| AI | Google Gemini 2.0 Flash, AI SDK |
| Scheduler | FullCalendar, Twitter API, LinkedIn API |
| MJML | |
| Content | Nuxt Content |
Now you understand the MagicSync castle! Each room has a special job, and together they make the magic happen! ๐ฐโจ
Ready to explore more? Check out our Installation Guide!