system active
--:--:--
independent operator
iamfries.
connecting...
fetching discord status
LIVE
operates
Parent entity: Social Media Money LLC
Python
HTML
CSS
JavaScript
/* ============================================================
VIEWS + LIKES — global counters via CountAPI (free, no auth)
Namespace/key below act like a database row for this site.
If CountAPI is ever down, counts just show 0 — non-critical.
============================================================ */
const COUNTAPI_NS = 'iamfries-site';
async function initViews(){
try{
const res = await fetch(`https://api.countapi.xyz/hit/${COUNTAPI_NS}/views`);
const json = await res.json();
document.getElementById('viewCount').textContent = json.value ?? '—';
}catch(e){
document.getElementById('viewCount').textContent = '—';
}
}
async function initLikes(){
const likeBtn = document.getElementById('likeBtn');
const likeCountEl = document.getElementById('likeCount');
const alreadyLiked = localStorage.getItem('if_liked') === '1';
if(alreadyLiked) likeBtn.classList.add('liked');
try{
const res = await fetch(`https://api.countapi.xyz/get/${COUNTAPI_NS}/likes`);
const json = await res.json();
likeCountEl.textContent = json.value ?? 0;
}catch(e){
likeCountEl.textContent = '0';
}
likeBtn.addEventListener('click', async ()=>{
const liked = likeBtn.classList.contains('liked');
const amount = liked ? -1 : 1;
likeBtn.classList.toggle('liked');
try{
const res = await fetch(`https://api.countapi.xyz/update/${COUNTAPI_NS}/likes?amount=${amount}`);
const json = await res.json();
likeCountEl.textContent = Math.max(0, json.value ?? 0);
}catch(e){ /* keep optimistic UI state */ }
localStorage.setItem('if_liked', liked ? '0' : '1');
});
}
initViews();
initLikes();
/* ============================================================
NETWORK STATS — combined total users + orders across both
panels, served by a small Python API on your own server.
That server holds the real admin keys; this page never sees them.
============================================================ */
const NETWORK_STATS_URL = 'https://api.iamfries.com/stats';
async function initNetworkStats(){
try{
const res = await fetch(NETWORK_STATS_URL);
const json = await res.json();
document.getElementById('networkUsers').textContent =
(json.total_users ?? 0).toLocaleString();
document.getElementById('networkOrders').textContent =
(json.total_orders ?? 0).toLocaleString();
}catch(e){
document.getElementById('networkUsers').textContent = '—';
document.getElementById('networkOrders').textContent = '—';
}
}
initNetworkStats();