חלומות במגירה - Taking your dreams out of the drawer
megira publishes your Notion content to LinkedIn and X (Twitter) automatically.
Notion (Ready) → Scheduler → Publisher → X & LinkedIn
Status Flow: Idea → Ready → Scheduled → Published
- Write content in Notion with status
Idea - When ready, change status to
Ready - Scheduler picks it up and queues it for optimal posting times
- Publisher posts to X and/or LinkedIn
- Status becomes
Publishedwith links to the posts
- Notion-driven - Your content database is the source of truth
- Adaptive scheduling - Maintains a 7-day buffer, slows down when low on content
- Optimal times - Posts at 08:03, 12:35, 15:43, 17:30 (Israel time) with slight randomness
- Multi-platform - X (Twitter) and LinkedIn support
- Thread support - X threads via Reply Content field
- Immediate mode - Check "Immediate schedule?" to bypass the queue
Run Claude Code with browser automation enabled:
claude --chromeThen paste this prompt:
Help me set up megira for publishing my Notion content to X and LinkedIn.
I need you to:
1. Create two Notion databases (Content and Schedule) with the required fields
2. Set up a Cloudflare Worker with KV storage
3. Run the OAuth flows for X and LinkedIn APIs
4. Configure all the wrangler secrets
5. Deploy the worker
My preferences:
- Timezone: [YOUR_TIMEZONE, e.g., "America/New_York"]
- Posting times: [OPTIONAL - default is 08:03, 12:35, 15:43, 17:30]
Please guide me through each step, creating the Notion databases via browser
and helping me obtain the necessary API credentials.
Content Database:
- Title (title)
- Content (rich_text) - main post body
- Status (status) - Idea, Ready, Scheduled, Published
- Platforms (multi_select) - X, LinkedIn
- Reply Content (rich_text) - optional, for X threads
- Immediate schedule? (checkbox)
Schedule Database:
- Name (title)
- Content (relation) - links to Content DB
- Scheduled For (date)
- Platform (multi_select)
- Status (select) - Scheduled, Publishing, Published, Failed
- X Post URL (url)
- LinkedIn Post URL (url)
# X OAuth
npm run oauth:x
# LinkedIn OAuth
npm run oauth:linkedinwrangler secret put NOTION_TOKEN
wrangler secret put NOTION_DATABASE_ID
wrangler secret put NOTION_SCHEDULE_DB_ID
wrangler secret put X_CLIENT_ID
wrangler secret put X_CLIENT_SECRET
wrangler secret put X_ACCESS_TOKEN
wrangler secret put X_REFRESH_TOKEN
wrangler secret put LINKEDIN_ACCESS_TOKENnpm run deploy| Endpoint | Description |
|---|---|
GET / |
Health check |
GET /status |
Config status |
POST /schedule |
Trigger scheduling |
POST /publish |
Trigger publishing |
POST /reschedule |
Clear and reschedule all pending |
MIT