A core component of the web3-wiki project
decwiki is a decentralized, blockchain-powered Wikipedia-like platform that enables users to contribute, store, and retrieve information in a secure, censorship-resistant, and privacy-conscious manner. Built with Python and leveraging web3 technologies, decwiki allows both anonymous and authenticated participation, making it a unique reference for the web3 community.
- Overview
- Key Features
- Architecture
- Getting Started
- Usage
- Project Structure
- API Endpoints
- Security & Privacy
- Contributing
- License
- Contact
The platform supports:
- β Secure user registration using government-issued identifiers (Aadhaar and PAN) for verified access.
- πΆοΈ Anonymous contributions for privacy-focused users.
- π¬ Topic-based messaging and discussions, ensuring collaborative knowledge-building.
-
Decentralized Data Storage
Utilizes blockchain/web3 storage to protect content against censorship and tampering. -
Anonymous and Authenticated Participation
Contribute either anonymously or using verified credentials (Aadhaar/PAN). -
User Registration with KYC
Secure sign-up and login with identity validation to build trust. -
Topic-based Messaging
Engage in discussions directly on topic pages with immutable message history. -
Wiki-style Article Creation and Editing
Create, edit, and version pages about any web3-related subject. -
Search and Navigation
Quickly locate articles and topics using a fast search interface. -
Multi-language Support (Planned)
Improve access and localization for global users. -
Role-based Permissions (Planned)
Manage moderation and editing privileges with custom roles.
- Python (core backend logic)
- HTML/CSS (frontend templates)
- PowerShell & Batch scripts (deployment/utilities)
- Solidity (Planned: Smart contract integration)
- Web3 libraries (blockchain interaction)
- User Authentication (Anonymous & KYC)
- Wiki Article Management
- Topic-based Messaging/Discussion
- Blockchain Data Storage Layer
- Python 3.8 or higher
pip- (Optional) Node.js and Solidity compiler
- Internet access for blockchain connectivity
# Clone the repository
git clone https://github.com/SatyamPote/web3-wiki.git
cd web3-wiki/decwiki
# Install dependencies
pip install -r requirements.txtCreate a .env file with:
BLOCKCHAIN_ENDPOINT=https://your-node-url
DB_URI=mongodb://localhost:27017/decwiki
SECRET_KEY=your-secretpython main.pyThe app will be available at http://localhost:8000.
-
Anonymous Access:
Browse and contribute without revealing your identity. -
KYC Access:
Register using Aadhaar and PAN for verified identity and trusted edits.
- Log in or continue anonymously.
- Go to the Create section.
- Draft content, add citations, and submit.
- Changes are versioned and revertible.
- Open any topic/article page.
- Use the Message/Comment area.
- Messages are stored on-chain for transparency.
decwiki/
βββ main.py # Backend entry point
βββ requirements.txt # Python dependencies
βββ templates/ # HTML templates
βββ static/ # CSS, JS, images
βββ modules/ # Core modules: auth, wiki, messaging, blockchain
βββ scripts/ # PowerShell/Batch deployment scripts
βββ contracts/ # Solidity contracts (planned)
βββ README.md # Project documentation
βββ ...
These are subject to implementation changes.
POST /registerβ Register a new user (anonymous or KYC)POST /loginβ Authenticate userGET /wiki/<topic>β Fetch article by topicPOST /wiki/<topic>/editβ Create or edit articlePOST /message/<topic>β Post a message on a topicGET /messages/<topic>β Fetch messages for a topic
- Aadhaar and PAN details are securely validated and never exposed.
- Anonymous usage is fully supported.
- All content edits and messages are logged on the blockchain.
- Privacy and data integrity are core principles of the platform.
We welcome community involvement!
- Fork the repo
- Create a new branch:
git checkout -b feature/your-feature
- Make changes & commit:
git commit -am 'Add some feature' - Push and create a pull request
β
Follow coding standards
β
Add tests if applicable
β
Ensure user privacy and security
This project is licensed under the MIT License.
See the LICENSE file for full text.
Maintained by SatyamPote
For questions, feature requests, or feedback, please open an issue.
- Inspired by Wikipedia and emerging decentralized knowledge platforms
- Thanks to the open-source community and Web3 pioneers