Open-source directory for image model APIs. Browse providers, filter by features, and contribute.
Repo: https://github.com/swetha028-git/Openimage.api
- Provider directory with search, categories, and free-tier filter
- Clean UI with Playfair Display headings and glass UI cards
- Pink/light‑pink/white gradient cards (
glass-pink-mix) on Landing and Directory - “Contribute” and “Submit a provider” buttons linked to this repo
- Vite + React + TypeScript
- Tailwind CSS
- React Router
# Install deps
npm install
# Start dev server
npm run dev
# Build for production
npm run build
# Preview build
npm run preview- Brand name:
src/components/Header.tsx - Header brand gradient: adjust Tailwind gradient classes on the brand
<span> - Card gradient:
src/index.cssclass.glass-pink-mix - Directory cards:
src/components/ApiCard.tsx - Landing feature cards:
src/pages/Landing.tsx
This is a static SPA (React Router). Ensure unknown routes rewrite to index.html.
- Netlify
- Build:
npm run build• Publish:dist - Add
public/_redirectswith:/* /index.html 200
- Build:
- Vercel
- Build:
npm run build• Output:dist - Add
vercel.jsonwith:{ "rewrites": [{ "source": "/(.*)", "destination": "/index.html" }] }
- Build:
- Cloudflare Pages
- Build:
npm run build• Output:dist - Enable “Single‑Page Application”
- Build:
- GitHub Pages (project subpath)
- Set
baseinvite.config.ts(e.g.,'/Openimage.api/') - Add
public/404.htmlcopy ofindex.htmlas SPA fallback
- Set
- Add or edit providers in
src/data/apis.ts(type:ApiProvider) - Keep UI tweaks consistent with Tailwind utility classes
- Submit PRs to the repo above
MIT