// CONNECTED APP

DAO Gate

Gate governance, allowlists or chats on real reputation instead of token balance. The rule lives in the link — no contract, no server.

Gate rule

https://trstlyr.com/apps/dao-gate?g=eyJuIjoiTWVtYmVyIEdhdGUiLCJzIjo1MCwidiI6MywiZCI6NywiYiI6MH0

Check an applicant

Drop-in check

// TrustLayer DAO Gate — "Member Gate"
async function passesGate(handle) {
  const r = await fetch(
    "https://trstlyr.com/api/public/read/public-profile?handle=" + encodeURIComponent(handle)
  ).then((res) => res.json());
  if (!r.claimed) return false;
  const ageDays = (Date.now() - new Date(r.joined_at).getTime()) / 86400000;
  return r.trust_score >= 50
    && r.verifiers >= 3
    && ageDays >= 7;
}