filehost
بواسطة setdemos
Web & Frontend Developmentموجز
Upload files to lmfiles.com and return public download links via API.
الوصف
ما الذي تفعله هذه المهارة
lmfiles.com is a lightweight file hosting service with an HTTP API for uploading files and receiving public download links. It supports account registration, uploads up to 100 MB, metadata lookup, file listing, and deletion. Downloads are publicly accessible to anyone with the URL.
lmfiles.com offers a minimal, API-first interface without the IAM complexity or setup overhead of general-purpose cloud storage.
متى تستخدمها
- Sharing generated reports or exports from automated scripts
- Giving an LLM agent a public URL for a locally created file
- Hosting build artifacts without setting up cloud storage
- Passing large files between pipeline steps via URL
- Quickly distributing logs or data dumps to teammates
مثال على سير العمل
User asks: upload analysis.csv and give me a shareable link
- 1
Verifies LMFILES_API_KEY is set
- 2
POSTs analysis.csv to https://lmfiles.com/api/v1/files/upload with X-API-Key header
- 3
Parses file_id and url from the JSON response
- 4
Returns the public download URL to the user
Public download link: https://lmfiles.com/f/<file_id>
المتطلبات
- LMFILES_BOOTSTRAP_TOKEN environment variable (required for one-time account registration)
- LMFILES_API_KEY environment variable (obtained after registering an account)
التثبيت
clawhub install setdemos/filehostشغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.