Project ko “portfolio-grade” kya banata hai
API call to sab karte hainRecruiter ya interviewer ko yeh nahi dikhna chahiye ki tumne fetch() chalaya. Use dikhna chahiye ki tumne failure, scale aur security ke baare mein socha. Yeh 6 cheezein har project mein daalo:
Map, localStorage ya SWR — rate limit bhi bachta hai.mapper layer likho jo response ko clean objects mein badle.Reusable pattern — teen projects mein kaam aayega
Open-Meteo, TMDB aur PokéAPI ke search box mein yahi pattern lagao:
Quick comparison
phone pe side-scroll karo →| API | Key? | Free limit | Commercial use | Attribution | Level |
|---|---|---|---|---|---|
| Open-Meteo | No key | <10,000/day, 5,000/hr, 600/min | Nahi — free tier non-commercial only | Required (CC BY 4.0 link) | Beginner |
| TMDB | Free key (Bearer token) | Daily cap nahi; soft ceiling ~50 req/s | Non-commercial free; commercial ke liye TMDB se baat | Required (logo + notice) | Intermediate |
| PokéAPI | No key | Koi hard limit nahi; cache karna fair-use rule hai | Educational/open project | Nahi, par be nice | Beginner |
| NASA | Free key (DEMO_KEY test ke liye) | DEMO_KEY: 30/hr, 50/day · own key: 1,000/hr | Mostly open data; APOD images pe copyright ho sakta hai | Credit do | Intermediate |
| GitHub | Optional (public data) | 60/hr per IP → 5,000/hr with token | Public data, GitHub ToS follow karo | Nahi | Intermediate |
Open-Meteo
Project: Weather app + city search 🌦️
Keyless, fast aur CORS-friendly weather API. Forecast 16 din tak, historical data 1940 se, aur air quality bhi milti hai. Is project ki asli skill dependent requests hai: pehle city → coordinates, phir coordinates → forecast.
Endpoints
Starter code
Project spec
- City search with suggestions
- Current temp, humidity, wind
- Loading + “city not found” states
- 7-day forecast + hourly chart
- °C / °F toggle
- “Use my location” (Geolocation API)
- Last 5 searches in localStorage
- Air-quality tab
- Compare two cities
- PWA: last result offline
Concepts jo demonstrate honge
Gotchas
- City match na ho to geocoding response mein
resultskey hi nahi hoti —geo.results?.[0]use karo aur empty state dikhao. weather_codeWMO code hota hai (0 clear, 1–3 cloudy, 45/48 fog, 51–67 drizzle/rain, 71–77 snow, 95+ thunderstorm). Apna mapping table + icons banao; full list Open-Meteo docs mein hai.timezone=autolagao, warna timestamps UTC mein aate hain.- Free tier non-commercial hai aur attribution link zaroori hai (“Weather data by Open-Meteo.com”). Ads ya paid product banana ho to paid plan lena padega.
getWeather(city) function mein wrap kiya.”TMDB
Project: Movie finder + watchlist 🎬
Trending movies, search, posters, cast, trailers, ratings — sab ek jagah. Isme asli seekhne wali cheezein Bearer auth, image URL building, aur append_to_response hain. Key free hai, TMDB account → Settings → API se apply karo.
Endpoints
Starter code
Is project mein live demo button nahi hai kyunki token chahiye — apna free token lekar upar ka code seedha chala sakte ho.
Project spec
- Trending grid + search
- Movie detail modal (cast, trailer)
- Skeleton loaders
- Watchlist (localStorage first)
- Genre filter chips
- Infinite scroll with IntersectionObserver
- Login + backend watchlist
- Proxy function for the token
- “Where to watch” via watch/providers
Backend watchlist ka data model: user ↔ movie many-to-many hai, to SQL join table natural fit hai. Sirf tmdb_id store karo, poori movie nahi — metadata TMDB se cache karke lao.
Concepts jo demonstrate honge
Gotchas
- Attribution mandatory hai: TMDB logo + yeh notice — “This product uses the TMDB API but is not endorsed or certified by TMDB.” Logo tumhari apni branding se kam prominent rakhna.
- Free use non-commercial ke liye hai. Paid product ya ads wala app banana ho to TMDB se commercial terms lene padenge.
poster_pathnull ho sakta hai — placeholder image zaroor rakho.- Movies list mein
genre_idsaate hain, naam nahi — upar wala genre map banake join karo. - Page parameter 500 tak hi chalta hai — infinite scroll mein
page < total_pagescheck karo. - Purana 40 requests/10 sec limit 2019 mein hata diya gaya, par heavy burst pe
429ab bhi aa sakta hai — backoff lagao. - Token frontend mein dikhta hai (DevTools → Network). Proxy ke liye niche API key safety dekho.
s-maxage caching ke saath. Detail view ke liye append_to_response se 3 calls ko 1 kiya.”PokéAPI
Project: Pokédex + type filter ⚡
1000+ Pokémon, stats, types, evolution chains — no key, no signup. Beginner-friendly hai, lekin isme sabse achhe engineering talking points milte hain: N+1 problem, caching, recursion aur set operations.
Endpoints
Starter code
Project spec
- Paginated grid + search by name
- Detail page: stats, types, sprite
- 404 state for wrong names
- Type filter chips (dual-type = set intersection)
- Stat bars / radar chart
- Evolution chain view
- Favorites
- Team builder: type weakness coverage via
damage_relations - Same data via GraphQL (beta)
Concepts jo demonstrate honge
Gotchas
- List endpoint sirf
name+urldeta hai. Cards ke liye har Pokémon ki detail chahiye — yahi N+1 problem hai. Id URL se nikalo:url.split("/").filter(Boolean).pop(). - Fair use rule: responses locally cache karo. Abuse karne wale IP ban ho sakte hain. Data immutable hai, to localStorage ya IndexedDB mein permanently cache kar do.
- Names lowercase-hyphenated hain (
mr-mime,ho-oh) — user input normalise karo. - 1000 requests ek saath mat bhejo — 20–30 ke batches mein
Promise.all. - GraphQL endpoint (
graphql.pokeapi.co/v1beta2) beta hai: sirf POST, 100 calls/hr per IP, aur kabhi bhi change ho sakta hai. Core feature uski dependency pe mat banao.
Promise.all kiya aur memory + localStorage cache lagaya. Evolution chain recursive tree hai, to DFS se flatten kiya.”NASA APIs
Project: Space dashboard 🚀
Ek key se APOD, asteroids, Earth imagery sab chalta hai. Free key api.nasa.gov pe email se turant milti hai, aur test ke liye DEMO_KEY hai. Yeh project rate limits, retries aur data visualization sikhata hai.
Endpoints
date, count, range support)Starter code
Project spec
- APOD hero section + date picker
- Video vs image handling
- Loading + error states
- Asteroid table sorted by miss distance
- Hazard badge + size-vs-speed scatter chart
- Remaining API quota meter
- EPIC Earth slideshow
- NASA Image Library search page
- Retry + cached fallback
Concepts jo demonstrate honge
Gotchas
DEMO_KEYIP-shared hai (30/hr, 50/day), development mein jaldi khatam hoti hai. Apni free key lo — limit 1,000/hr ho jaati hai.- APOD kabhi
media_type: "video"hota hai —<img>toot jayega, iframe render karo.hdurloptional hai aurcopyrightfield ho to credit dikhao. - APOD ki date US time follow karti hai. India mein tumhari “aaj ki date” US se aage ho sakti hai, aur future date pe error aata hai. Date na do, default use karo.
- NeoWs feed ka date range max 7 din ka hai, aur numeric values strings mein aati hain —
parseFloat. - Mars Rover Photos: kuch sources ise deprecated bata rahe hain, jabki NASA portal abhi bhi listing dikhata hai. Build se pehle ek test call karo aur fallback (APOD/EPIC) ready rakho.
- NASA endpoints kabhi-kabhi 5xx dete hain — retry with backoff aur last good response cache rakho.
GitHub API
Project: GitHub Profile Analyzer 🔥
Portfolio mein yeh sabse zyada chamakta hai kyunki recruiter apna ya kisi ka bhi username daal ke result dekh sakta hai. Ab tak ke saare concepts yahan milte hain: pagination, rate-limit handling, aur N+1 se bachna.
Endpoints
language, stars, forksStarter code
Project spec
- Username input + profile card
- Language chart (Chart.js / Recharts)
- 404 + rate-limit error states
- Top repos by stars, total stars/forks
- Shareable URL (
?user=octocat) - Recent activity from
pushed_at - ETag caching
- Compare two users side by side
- GraphQL contributions (via proxy)
- SVG stats-card endpoint for READMEs
Concepts jo demonstrate honge
Gotchas
- N+1 trap: har repo ke liye
/languagescall karoge to 30 repos = 30 calls, aur unauthenticated 60/hr limit aadhi khatam. Repo list kalanguagefield use karo (1 call), bytes-level breakdown sirf top 5 repos ke liye optional rakho. - Unauthenticated limit 60/hr per IP hai, token se 5,000/hr. Token frontend mein mat daalo — proxy ya serverless function use karo.
- Rate limit hit hone par
403(ya429) aata hai.x-ratelimit-remainingaurx-ratelimit-resetheaders padho. - Forks filter karo (
!r.fork), warna chart doosron ke code se bhar jayega.languagenull bhi ho sakta hai. - Search API ki limit alag hai: 10/min unauthenticated, 30/min authenticated.
- Conditional requests (
If-None-Match+ ETag) pe304response rate limit mein count nahi hota — repeat searches ke liye use karo. - GraphQL API public data ke liye bhi token maangti hai, isliye REST se shuru karo aur GraphQL ko stretch rakho.
/languages calls N+1 hote hain aur 60/hr limit mein nahi chalte. Isliye repo list ke language field se aggregate kiya, aur bytes-level breakdown sirf top 5 repos ke liye optional rakha.”API key frontend mein mat chhodo
TMDB + NASA + GitHub tokenVITE_ ya REACT_APP_ prefix wali env variable bhi final bundle mein chali jaati hai — DevTools → Network tab mein koi bhi dekh leta hai. Keyless APIs aur DEMO_KEY pe koi issue nahi, par TMDB token, NASA key aur GitHub token ke liye ek chhota serverless proxy banao. Yeh khud ek interview talking point hai.
- Path allowlist rakho, warna koi bhi tumhare proxy se kuch bhi call kar sakta hai.
s-maxagecaching se CDN repeat requests handle karta hai — tumhara rate limit bhi bachta hai..envko.gitignoremein daalo. Key leak ho jaye to turant rotate karo.- Same pattern Vercel, Netlify Functions ya Cloudflare Workers pe chalta hai.
5 weekends ka plan
difficulty order, reel order nahiHar weekend ka formula: Sat = data layer + UI, Sun = error states + deploy + README. Deploy ke bina weekend complete nahi maanna.
README template
recruiter pehle yahi padhta haiCode se pehle README khulta hai. Yeh structure copy karo aur apne project ke hisaab se bharo:
- Live link + GIF sabse upar rakho.
- “Engineering decisions” section hi tumhe tutorial-followers se alag karta hai.
- API attribution zaroor likho (Open-Meteo aur TMDB mein mandatory hai).
Reality check
honest baat- Recruiters projects ke saath DSA, fundamentals, communication aur interview performance bhi dekhte hain.
- Quality quantity se zyada matter karti hai. 2 achhe, deployed aur samjhe hue projects 5 half-baked projects se behtar hain.
- Jo bhi project daalo, uska har hissa khud explain kar pao. Interviewer kuch bhi puchh sakta hai.
- Internships, referrals, open source aur consistent applying bhi utne hi important hain.