Open-source JS/TS snippets • Reusable components • Public datasets • Collaboration links for the Bangladeshi JS Community & Beyond
Copy-paste these open-source snippets for your projects. All licensed under MIT – free to use & share.
function validateJSON(jsonString) {
try {
JSON.parse(jsonString);
return true;
} catch (e) {
console.error('Invalid JSON:', e);
return false;
}
}
// Usage: validateJSON('{"name": "Tarek"}'); // true
async function fetchData(url: string): Promise {
const response = await fetch(url);
if (!response.ok) throw new Error(`HTTP ${response.status}`);
return response.json() as T;
}
// Usage: const data = await fetchData<User>('https://api.example.com/user');
function debounce(fn, delay) {
let timeout;
return function(...args) {
clearTimeout(timeout);
timeout = setTimeout(() => fn.apply(this, args), delay);
};
}
// Usage: const debouncedSearch = debounce(searchHandler, 300);
এই প্রজেক্টগুলো জাভাস্ক্রিপ্ট কমিউনিটির জন্য খুবই উপকারী। তুমিও ফর্ক করে কন্ট্রিবিউট করতে পারো!
আমার সব প্রজেক্ট MIT লাইসেন্সে – ফ্রি ইউজ, মডিফাই, ডিস্ট্রিবিউট করতে পারো!
Downloadable JSON/CSV datasets and free API endpoints maintained for the community.
Reach out for freelance JS work, open-source contributions, or mentorship in Bangladesh JS community.
Hybrid apps built with JS (React Native/Cordova) – Source code available on request.