Skip to content

afarhadi99/Spaces-Companion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Spaces Companion Logo

πŸŽ™οΈ Download and transcribe X Spaces effortlessly πŸŽ™οΈ

πŸ“ Overview Β Β β€’Β Β  πŸ’» Tech Stack Β Β β€’Β Β  πŸš€ Getting Started

πŸ“ Overview

Spaces Companion is a powerful platform that enables users to download spaces from X.com (formerly Twitter) and generate transcriptions. The platform is built with a modern tech stack and follows a separated backend-frontend architecture. The frontend is based on the next-saas-starter template, while the backend is powered by an Express API.

πŸ’» Tech Stack

  • βœ… Framework: Next.js with TypeScript
  • βœ… Database ORM: Drizzle
  • βœ… Database: PostgreSQL (Neon)
  • βœ… UI Components: shadcn/ui
  • βœ… Payments: Stripe Integration
  • βœ… Runtime: Node.js with Express
  • βœ… Automation: Puppeteer
  • βœ… Transcription: Groq (Whisper)

πŸš€ Getting Started

Backend Setup

  1. Navigate to the backend directory:
cd backend
  1. Create a .env file with the following variables:
TWITTER_USERNAME=
TWITTER_PASSWORD=
TWITTER_PHONE_NUMBER=
OUTPUT_PATH=./downloads
PORT=3000
DATABASE_URL=
FRONTEND_URL=http://localhost:3001

Note: You will need ffmpeg added to your environment variables [https://www.ffmpeg.org/download.html]. Note: It's recommended to create a new X account without two-factor authentication for the bot.

  1. Install dependencies and start the server:
npm install
npm build
npm link
npm start

Frontend Setup

  1. Navigate to the frontend directory:
cd frontend
  1. Create a .env file with the following variables:
POSTGRES_URL=
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=
BASE_URL=http://localhost:3001
AUTH_SECRET=
GROQ_API_KEY=
NEXT_PUBLIC_API_URL=http://localhost:3000
  1. Install dependencies and start the development server:
pnpm install
pnpm db:generate
pnpm db:seed
pnpm db:migrate
pnpm dev

The application should now be running at:

  • Frontend: http://localhost:3001
  • Backend: http://localhost:3000

About

Download and Transcribe X Spaces

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages