[PR #222] [MERGED] Migrate facebook writer to fastapi backend #599

Closed
opened 2026-03-13 20:59:08 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AJaySi/ALwrity/pull/222
Author: @AJaySi
Created: 8/27/2025
Status: Merged
Merged: 8/31/2025
Merged by: @AJaySi

Base: mainHead: cursor/migrate-facebook-writer-to-fastapi-backend-9ced


📝 Commits (1)

  • 40d33de Add Facebook Writer API with models, routers, and migration summary

📊 Changes

53 files changed (+2972 additions, -0 deletions)

View changed files

FACEBOOK_WRITER_MIGRATION_SUMMARY.md (+209 -0)
backend/api/__pycache__/__init__.cpython-313.pyc (+0 -0)
backend/api/__pycache__/onboarding.cpython-313.pyc (+0 -0)
backend/api/facebook_writer/README.md (+227 -0)
backend/api/facebook_writer/models/__init__.py (+79 -0)
backend/api/facebook_writer/models/__pycache__/__init__.cpython-313.pyc (+0 -0)
backend/api/facebook_writer/models/__pycache__/ad_copy_models.cpython-313.pyc (+0 -0)
backend/api/facebook_writer/models/__pycache__/carousel_models.cpython-313.pyc (+0 -0)
backend/api/facebook_writer/models/__pycache__/engagement_models.cpython-313.pyc (+0 -0)
backend/api/facebook_writer/models/__pycache__/event_models.cpython-313.pyc (+0 -0)
backend/api/facebook_writer/models/__pycache__/group_post_models.cpython-313.pyc (+0 -0)
backend/api/facebook_writer/models/__pycache__/hashtag_models.cpython-313.pyc (+0 -0)
backend/api/facebook_writer/models/__pycache__/page_about_models.cpython-313.pyc (+0 -0)
backend/api/facebook_writer/models/__pycache__/post_models.cpython-313.pyc (+0 -0)
backend/api/facebook_writer/models/__pycache__/reel_models.cpython-313.pyc (+0 -0)
backend/api/facebook_writer/models/__pycache__/story_models.cpython-313.pyc (+0 -0)
backend/api/facebook_writer/models/ad_copy_models.py (+114 -0)
backend/api/facebook_writer/models/carousel_models.py (+51 -0)
backend/api/facebook_writer/models/engagement_models.py (+70 -0)
backend/api/facebook_writer/models/event_models.py (+61 -0)

...and 33 more files

📄 Description

Migrate the Facebook writer from the ToBeMigrated folder to a new FastAPI backend to provide a scalable REST API for future React UI integration.

This PR converts the existing Streamlit-based Facebook writer into a modular FastAPI backend. It introduces Pydantic models for request/response validation, a service layer for business logic and AI integration (using the gemini_provider), and FastAPI routers for 10 distinct Facebook content generation tools. This is the initial phase of a larger migration, focusing on isolating the backend components.


Open in Cursor Open in Web

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/AJaySi/ALwrity/pull/222 **Author:** [@AJaySi](https://github.com/AJaySi) **Created:** 8/27/2025 **Status:** ✅ Merged **Merged:** 8/31/2025 **Merged by:** [@AJaySi](https://github.com/AJaySi) **Base:** `main` ← **Head:** `cursor/migrate-facebook-writer-to-fastapi-backend-9ced` --- ### 📝 Commits (1) - [`40d33de`](https://github.com/AJaySi/ALwrity/commit/40d33de1ab849c5b29281b2ff1676881b639c829) Add Facebook Writer API with models, routers, and migration summary ### 📊 Changes **53 files changed** (+2972 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `FACEBOOK_WRITER_MIGRATION_SUMMARY.md` (+209 -0) ➕ `backend/api/__pycache__/__init__.cpython-313.pyc` (+0 -0) ➕ `backend/api/__pycache__/onboarding.cpython-313.pyc` (+0 -0) ➕ `backend/api/facebook_writer/README.md` (+227 -0) ➕ `backend/api/facebook_writer/models/__init__.py` (+79 -0) ➕ `backend/api/facebook_writer/models/__pycache__/__init__.cpython-313.pyc` (+0 -0) ➕ `backend/api/facebook_writer/models/__pycache__/ad_copy_models.cpython-313.pyc` (+0 -0) ➕ `backend/api/facebook_writer/models/__pycache__/carousel_models.cpython-313.pyc` (+0 -0) ➕ `backend/api/facebook_writer/models/__pycache__/engagement_models.cpython-313.pyc` (+0 -0) ➕ `backend/api/facebook_writer/models/__pycache__/event_models.cpython-313.pyc` (+0 -0) ➕ `backend/api/facebook_writer/models/__pycache__/group_post_models.cpython-313.pyc` (+0 -0) ➕ `backend/api/facebook_writer/models/__pycache__/hashtag_models.cpython-313.pyc` (+0 -0) ➕ `backend/api/facebook_writer/models/__pycache__/page_about_models.cpython-313.pyc` (+0 -0) ➕ `backend/api/facebook_writer/models/__pycache__/post_models.cpython-313.pyc` (+0 -0) ➕ `backend/api/facebook_writer/models/__pycache__/reel_models.cpython-313.pyc` (+0 -0) ➕ `backend/api/facebook_writer/models/__pycache__/story_models.cpython-313.pyc` (+0 -0) ➕ `backend/api/facebook_writer/models/ad_copy_models.py` (+114 -0) ➕ `backend/api/facebook_writer/models/carousel_models.py` (+51 -0) ➕ `backend/api/facebook_writer/models/engagement_models.py` (+70 -0) ➕ `backend/api/facebook_writer/models/event_models.py` (+61 -0) _...and 33 more files_ </details> ### 📄 Description Migrate the Facebook writer from the `ToBeMigrated` folder to a new FastAPI backend to provide a scalable REST API for future React UI integration. This PR converts the existing Streamlit-based Facebook writer into a modular FastAPI backend. It introduces Pydantic models for request/response validation, a service layer for business logic and AI integration (using the `gemini_provider`), and FastAPI routers for 10 distinct Facebook content generation tools. This is the initial phase of a larger migration, focusing on isolating the backend components. --- <a href="https://cursor.com/background-agent?bcId=bc-b48d49ae-123b-4662-b15a-bc2c3280489a"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-cursor-dark.svg"> <source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-cursor-light.svg"> <img alt="Open in Cursor" src="https://cursor.com/open-in-cursor.svg"> </picture> </a> <a href="https://cursor.com/agents?id=bc-b48d49ae-123b-4662-b15a-bc2c3280489a"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-web-dark.svg"> <source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-web-light.svg"> <img alt="Open in Web" src="https://cursor.com/open-in-web.svg"> </picture> </a> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-13 20:59:08 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ALwrity#599
No description provided.