WalGit is a decentralized, user-controlled version control system built on Sui blockchain and Walrus's distributed storage technology. It empowers developers to maintain full sovereignty over their code while enjoying the benefits of cloud-based collaboration.
To run the tests for the WalGit CLI:
cd WalGit-Backend
npm install
npm test
The test suite uses Jest and includes mocks for Sui and Walrus integration to ensure all CLI commands work properly without requiring actual blockchain interaction.
"Developers should not have to choose between the convenience of cloud-hosted version control and the sovereignty of their own code."
The increasing centralization of code hosting platforms like GitHub—now under Microsoft's control—raises concerns about:
- Data privacy
- Code ownership
- Unauthorized use of open source contributions to train proprietary AI models
WalGit addresses these challenges by leveraging Walrus's decentralized storage capabilities to provide a self-hosted, git-like version control system. With WalGit, developers own their repositories and manage their storage through a decentralized cloud, ensuring both autonomy and security.
WalGit utilizes Walrus's distributed cloud storage, allowing users to host their code on infrastructure they control, rather than relying on a single centralized provider.
Users retain full ownership of their repositories, including how and where their data is stored and who can access it.
WalGit is fully open source, ensuring transparency and community-driven development. Anyone can audit, contribute to, or deploy the platform.
Code is protected using Seal's encryption and native wallet-based encryption, providing robust security for sensitive projects and intellectual property.
By leveraging Walrus's cost-effective and widely available storage, WalGit offers a scalable solution for individuals and teams without the high costs of traditional cloud services.
WalGit maintains a workflow and interface similar to GitHub, making it easy for developers to transition without sacrificing usability or productivity.
- Frontend: React with TypeScript
- Styling: Tailwind CSS
- Blockchain: Sui Network
- Storage: Walrus Decentralized Storage
- Build Tool: Vite
- Key Dependencies:
- @mysten/dapp-kit: Sui dApp development kit
- @mysten/sui.js: Sui blockchain interaction
- React Router: Client-side routing
- TanStack Query: Data fetching and caching
- WalGit-frontend/: React-based frontend interface
src/
: Source codepublic/
: Static assetsdist/
: Production build output
- walrus-sites/: Integration with Walrus Sites for storage
- .github/workflows/: CI/CD automation
deploy.yml
: GitHub Pages deployment
- smart-contracts/: Sui Move contracts
- Node.js v18+
- Sui wallet (Sui Wallet, Ethos Wallet, or other compatible wallets)
- Access to Walrus storage
- Git
# Clone the repository and submodules
git clone https://github.com/Angleito/walgit.git --recursive
cd walgit
# Install root dependencies
npm install
# Install frontend dependencies
cd WalGit-frontend
npm install
# Start the development server
npm run dev
Create a .env
file in the WalGit-frontend directory:
VITE_NETWORK=devnet # or testnet/mainnet
VITE_WALRUS_API_KEY=your_api_key
The project is automatically deployed to GitHub Pages using GitHub Actions whenever changes are pushed to the main branch. The deployment process includes:
- Building the frontend application
- Deploying to GitHub Pages
- Generating Walrus Sites provenance data
Visit: https://angleito.github.io/walgit/
npm run dev
: Start development servernpm run build
: Build for productionnpm run preview
: Preview production build locally
- TypeScript for type safety
- ESLint for code linting
- Prettier for code formatting
We welcome contributions to WalGit! Please follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Built on Sui blockchain
- Utilizes Walrus decentralized storage technology
- Integrates with Walrus Sites for provenance and verification
- Inspired by the need for developer sovereignty in the age of AI and centralized control