Skip to content

๐Ÿฐ 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 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:

LayerTech Stack
UINuxt 4, Nuxt UI v4, Tailwind CSS
AuthBetter Auth, better-sqlite3
DBDrizzle ORM, Turso (LibSQL)
AIGoogle Gemini 2.0 Flash, AI SDK
SchedulerFullCalendar, Twitter API, LinkedIn API
EmailMJML
ContentNuxt 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!

Released under the MIT License.