Skip to content

vero-code/forktopost

Repository files navigation

πŸ”± ForkToPost

Version License React TypeScript Gemini AI

ForkToPost is the ultimate submission generator for the DEV Weekend Challenge: Community. It helps you transform your GitHub repository into a compelling story that captures the attention of the DEV.to community.

Whether you're struggling to articulate your value proposition or just want to craft a professional, witty, and scannable post, ForkToPost uses Google's Gemini AI to weave your code into a winning narrative.

ForkToPost cinematic story example


πŸ“Ί Demo Video

Click to watch ForkToPost in action:

ForkToPost Demo Video


✨ Features

⚑ Built for the Weekend: Designed specifically to help DEV Challenge participants meet tight deadlines without sacrificing quality.

  • πŸ€– AI-Powered Narrative: Leverages gemini-3-flash-preview to analyze your repository and generate structured Markdown.
    Gemini AI narrative generation interface
  • πŸ”— GitHub Integration: Automatically fetch project names and README content by pasting a GitHub URL.
  • 🎨 Image Generation: Create cinematic visual metaphors for your projects using gemini-3.1-flash-image-preview.
  • πŸ–ΌοΈ Image Hosting: Automatically upload AI-generated images to ImgBB to ensure they appear as cover images on DEV.to.
  • πŸš€ Direct Publish: Publish your generated post directly as a draft to DEV.to with one click.
    Direct draft delivery to DEV.to dashboard
  • πŸ‘€ Profile Verification: Enter your API key to instantly see your DEV.to avatar and username, ensuring a secure and correct connection.
    DEV.to API profile synchronization
  • 🧠 Advanced Writing Toggles:
    • Add Empathy: Infuse your post with emotional resonance, focusing on the human struggle and the "aha!" moment.
    • Architecture Deep-Dive: Automatically generate a structured technical breakdown of your system.
  • 🎭 Immersive UI Themes: Four distinct visual experiences to match your project's vibe:
    • 🌊 Sea (Abyssal): A deep-sea, bioluminescent aesthetic with terminal-inspired elements.
    • 🌳 Forest (Enchanted): A warm, parchment-style design that feels like reading an ancient scroll.
    • ⚑ Technical (Terminal): A sleek, high-contrast dark mode for the minimalists.
    • πŸ’» Original (Modern): A clean, standard professional interface.
  • πŸ“ Dual Modes:
    • Custom Fields: Tailor every detail from target community to specific problems solved.
      Customizing AI parameters in ForkToPost
    • Template Mode: Paste a standard template and let the AI fill in the blanks. Supports automatic YouTube and Cloud Run embeds using Liquid tags ({% embed %}).
  • πŸ“‹ Stable Workspace: A side-by-side layout that keeps your post preview centered while providing tools (copy, publish, etc.) in a stable right sidebar.
  • πŸ“‹ One-Click Copy: Instantly copy your generated post and preview with a single click.
  • πŸ›‘οΈ Attribution: Every post includes a subtle credit footer: Generated with ForkToPost.

πŸ› οΈ Tech Stack


πŸ—οΈ Architecture

For a detailed deep-dive into the system design, data flow, and component breakdown, please refer to our ARCHITECTURE.md.

ForkToPost system architecture blueprint


πŸš€ Getting Started

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/forktopost.git
    cd forktopost
  2. Install dependencies:

    npm install
  3. Configure Environment: Create a .env file in the root directory:

    GEMINI_API_KEY=your_gemini_api_key_here
    MODEL_NAME_TEXT="gemini-3-flash-preview"
    MODEL_NAME_IMAGE="gemini-3.1-flash-image-preview"
  4. Start the development server:

    npm run dev

πŸš€ Deployment (Vercel)

The easiest way to deploy ForkToPost is via Vercel:

  1. Connect your GitHub Repository to a new Vercel project.
  2. Add Environment Variables: In your project settings, add:
    • GEMINI_API_KEY: Your Google AI Studio key.
    • MODEL_NAME_TEXT: gemini-3-flash-preview
    • MODEL_NAME_IMAGE: gemini-3.1-flash-image-preview
  3. Vite Proxy: The project includes a vercel.json file that automatically handles the API proxying for DEV.to, ensuring the direct publishing feature works in production.

🎭 The Alchemy (Themes)

Original Modern UI

Theme Aesthetic Vibe
Sea Bioluminescent Abyss "Submerged in the technical void."
Forest Ancient Wood "Code blossoms into stories."
Technical Cybernetic Grid "01_Technical_Submission_Protocol_Active."
Original Minimalist Modern "The ultimate DEV submission generator."

πŸ“œ License

Distributed under the MIT License. See LICENSE for more information.


Made with ✨ (and Gemini) for the DEV.to Community.