aigc-vault-x-video-service
v1.0.1
Published
Local X/Twitter video resolver service for AIGC Vault.
Downloads
27
Maintainers
Readme
AIGC Vault X Video Service
Local helper service for AIGC Vault. It resolves X/Twitter status URLs with yt-dlp, downloads MP4 files to the user's machine, and exposes local file URLs for the browser extension.
Install
brew install node yt-dlp ffmpeg
npm install -g aigc-vault-x-video-serviceStart
aigc-vault-x-video-serviceThe default service URL is:
http://127.0.0.1:8899The default download directory is:
~/Movies/AIGC-Vault-X-VideosAuto-start on macOS
aigc-vault-x-video-service --installRemove auto-start:
aigc-vault-x-video-service --uninstallOptions
aigc-vault-x-video-service --host 127.0.0.1 --port 8899
aigc-vault-x-video-service --download-dir ~/Movies/AIGC-Vault-X-VideosIf you want another computer on the same network to access this service, start it with a LAN host such as:
aigc-vault-x-video-service --host 0.0.0.0Then set the AIGC Vault extension service URL to that computer's LAN address, for example:
http://192.168.1.23:8899API
GET /health
Returns service status.
POST /resolve-x-video
Body:
{
"url": "https://x.com/user/status/123",
"download": true
}Response:
{
"success": true,
"videoUrl": "http://127.0.0.1:8899/files/123.mp4",
"filePath": "/Users/name/Movies/AIGC-Vault-X-Videos/123.mp4",
"fileName": "123.mp4"
}Only x.com / twitter.com status URLs are accepted.
Notes
This service uses:
yt-dlp --cookies-from-browser chrome -S "res,ext:mp4:m4a" --merge-output-format mp4Chrome may ask for macOS Keychain permission when yt-dlp reads browser cookies. Enter the Mac login password and allow access.
