tarek.js.org — Public JavaScript Resources & Contact Hub

Open-source JS/TS snippets • Reusable components • Public datasets • Collaboration links for the Bangladeshi JS Community & Beyond

🛠️ Reusable JavaScript/TypeScript Snippets

Copy-paste these open-source snippets for your projects. All licensed under MIT – free to use & share.

Quick JSON Validator (JS)

function validateJSON(jsonString) {
  try {
    JSON.parse(jsonString);
    return true;
  } catch (e) {
    console.error('Invalid JSON:', e);
    return false;
  }
}
// Usage: validateJSON('{"name": "Tarek"}'); // true

Simple API Fetch Helper (TS)

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');

Array Debounce Function (JS)

function debounce(fn, delay) {
  let timeout;
  return function(...args) {
    clearTimeout(timeout);
    timeout = setTimeout(() => fn.apply(this, args), delay);
  };
}
// Usage: const debouncedSearch = debounce(searchHandler, 300);

📂 Open-Source JS Projects (যেগুলো আমি কন্ট্রিবিউট/ফর্ক/ব্যবহার করি)

এই প্রজেক্টগুলো জাভাস্ক্রিপ্ট কমিউনিটির জন্য খুবই উপকারী। তুমিও ফর্ক করে কন্ট্রিবিউট করতে পারো!

আমার সব প্রজেক্ট MIT লাইসেন্সে – ফ্রি ইউজ, মডিফাই, ডিস্ট্রিবিউট করতে পারো!

📊 Public Datasets & APIs

Downloadable JSON/CSV datasets and free API endpoints maintained for the community.


🤝 Let's Collaborate: Contact & Profiles

Reach out for freelance JS work, open-source contributions, or mentorship in Bangladesh JS community.

MY SOCIAL MEDIA & DEV PROFILES

MY RECENT JS-RELATED APPS & TOOLS

Hybrid apps built with JS (React Native/Cordova) – Source code available on request.

HELPER TOOLS & SCRIPTS (JS-Powered)