A generic Next.js-based framework allowing any organization to create their own platform to define, discuss, and vote on values that matter to them.
This project is a fork of Consensys' "Community Values Experiment," redesigned as a configurable framework that any organization can easily adapt. It enables communities to submit, discuss, and refine the values that define their ecosystem through a stake-based voting mechanism.
- Node.js 20.x or later
- npm
- Web3 wallet (e.g., MetaMask) with your chosen network configured
Create a .env.local file in the root directory with the following variables:
NEXT_PUBLIC_ENV=
NEXT_PUBLIC_BASE_URL=
NEXT_PUBLIC_GRAPHQL_URL=
NEXT_PUBLIC_CONTRACT_ADDRESS=
NEXT_PUBLIC_PREDICATE_ID=
NEXT_PUBLIC_SUBJECT_ID=
NEXT_PUBLIC_PRIVY_APP_ID=
Modify the src/config/organization-config.tsx file to customize:
- Organization name, tagline, and description
- Homepage content
- FAQ and informational sections
- External links and resources
Place your visual assets in the public/images/ folder:
- Main logo:
public/images/logo.svg - Alternative logo:
public/images/logo-alt.svg - Favicon:
public/images/favicon.ico - Hero image:
public/images/hero.png - Step icons:
public/images/steps/*.svg
Configure your smart contracts through environment variables and the contracts section of the configuration file.
- Install dependencies:
npm install- Run the development server:
npm run dev- Open http://localhost:3000 with your browser to see the application.
- View community-proposed values ranked by votes
- Propose new values for your organization
- Stake ETH to vote for or against values
- Share values on social media platforms
- Fully customizable and configurable interface
- Built with Next.js 15+
- Single Page Application (SPA) design
- Web3 integration using wagmi hooks
- Centralized configuration system for easy customization
- GraphQL API integration
- Configurable smart contracts
- Fork this repository
- Customize the configuration file
src/config/organization-config.tsx - Replace the visual resources in the
public/images/folder - Deploy your customized instance
Contributions to improve this framework are welcome. Feel free to open issues or pull requests.