Skip to content
Projets

À propos

Interface de Guild.xyz (version antérieure). Contrôlez l’accès à Discord et Telegram avec des tokens, gérez des points et des quêtes, et administrez une communauté depuis un agent d’IA : https://guild.xyz

IA et apprentissage automatique

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
0
in 7 days
-4
in 15 days
-5
in 1 month
0

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

Guild.xyz

Code check

Guild.xyz is where a community decides who gets what. You set the rules once, and Guild checks every member's wallets and social accounts against them and keeps their access up to date: Discord roles, Telegram groups, points, gated pages and more.

  • Token-gate a Discord server: guide
  • Token-gate a Telegram group: guide
  • Points and leaderboards: guide
  • Quests and campaigns: guide
  • Manage a guild from an AI agent such as Claude, through the MCP server at https://mcp.guild.xyz/mcp: docs

Discord and Telegram gating are on the Free plan. Token and NFT requirements work on 50 EVM mainnets.

About this repository

This repository holds an earlier version of the Guild.xyz web interface (React and Next.js). The current app is developed elsewhere; the notes below describe this codebase.

Key dependencies overview

  • Framework
    • React with Next.js
  • Styling:
    • Chakra UI (migration to Tailwind CSS and Radix UI in progress)
    • Phosphor icons
    • Framer motion
  • State management:
    • SWR for fetching and caching
    • React Hook Form for form state
    • jotai for custom, simple global state
  • Testing:
  • Web3 related:
    • viem
    • wagmi for connection management
  • Data visualization, graphics:
    • visx
    • threejs
  • Deployment:
    • Vercel
  • Product analytics:
    • PostHog
  • Error monitoring:
    • BugSnag

Development

Running the interface locally

  1. npm i
  2. npm run dev
  3. If you don't have the secret environment variables, copy the .env.example as .env.local.

Open http://localhost:3000 in your browser to see the result.

[!WARNING] We've recently turned on strict and strictNullChecks tsconfig options, and decided to gradually fix the related TypeScript issues. The pre-commit hook will ignore these, but it is expected that you'll see different issues during local development. Feel free to open a PR if you fix some of them. :wink:

For Windows users

If you encounter the error ERR_OSSL_EVP_UNSUPPORTED you can do :

export NODE_OPTIONS=--openssl-legacy-provider
npm i --force
npm run dev

Getting secret environment variables (for core team members):

  1. Get added to the team on Vercel
  2. npm i vercel@latest -g
  3. vercel link
  4. vercel env pull .env.local

Code guidelines

  • Always use design system values for styling when possible
  • Follow the file naming and folder structure pattern of the repository

Committing

  • Use Conventional Commits when applicable (recommended but not required)
  • Always use present tense in commit messages
  • Always review your changes before committing
  • A pre-commit hook type checks the code base. If it fails but you want to commit a WIP anyway use --no-verify

PR flow

  • Always create a draft PR right away when starting to work on a new branch
  • Vercel creates a unique link for each commit and each branch (showing the latest version of the branch), which you can get from the deployment page. Share the branch link with the team if needed
  • Always self-review changes in your PR before asking others. Refactor, clean up and add comments if needed. Repeat until there's no room for improvement that you see, or you've left a comment where there is
  • If you consider it ready, mark it as ready for review and ask for a review, or merge it by yourself if you have the permission

Explorer des projets similaires

Chargement…