cosmic-media-extension
                                
                                 cosmic-media-extension copied to clipboard
                                
                                    cosmic-media-extension copied to clipboard
                            
                            
                            
                        Search millions of high-quality royalty-free stock photos, images, and videos from popular online media services.
Cosmic Media
Search millions of high-quality, royalty-free stock photos, videos, images, and vectors from one convenient interface. Includes popular online media services: Unsplash, Pexels, Giphy, and Pixabay as well as OpenAI image generation from prompt. Try it here.
 
   
How to use it
You can use Cosmic Media to search and download media manually, or you can install it in your Cosmic project as an extension to save media directly in your project.
How to install in Cosmic
- Log in to Cosmic.
- Go to Project > Extensions.
- Find this extension and click "Install".
Service keys
The deployed app uses default API keys for Unsplash, Giphy, Pexels, Pixaby, and OpenAI. If you run into API rate-limit issues, you can update these to your own keys:
- unsplash_keyRegister for a key here.
- pexels_keyRegister for a key here.
- pixabay_keyRegister for a key here
- openai_keyRegister for a key here
- giphy_keyRegister for a key here
Using service keys
Keys can be provided to the app in one of the following ways:
- As query params in the URL. For example: ?unsplash_key=YOUR_UNSPLASH_KEY&pexels_key=YOUR_PEXELS_KEY
- Using the .envfile. See the.env.examplefile for env var format.
- If installed in Cosmic as an extension, go to Cosmic Media extension settings page by going to Extensions > Cosmic Media > Settings, find the Query Parameters section and update the following query params to your own keys:
 
Run locally
git clone https://github.com/cosmicjs/cosmic-media-extension
cd cosmic-media-extension
yarn
yarn dev
Built with
- shadcn/ui
- Next.js 13 App Directory
- Radix UI Primitives
- Tailwind CSS
- Icons from Lucide
- Dark mode with next-themes
- Tailwind CSS class sorting, merging and linting.
License
Licensed under the MIT license.