Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

decwiki is a decentralized, blockchain-powered wiki platform built for Web3. It allows both anonymous and verified users (via Aadhaar and PAN) to create, edit, and discuss articles in a censorship-resistant, secure, and privacy-focused environment. Designed with a modular architecture using Python and Web3 technologies, decwiki enables transparent

Notifications You must be signed in to change notification settings

SatyamPote/web3-wiki

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🧠 decwiki

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.


πŸ“š Table of Contents


πŸ” Overview

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.

✨ Key Features

  • 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.


🧱 Architecture

πŸ›  Languages & Technologies

  • Python (core backend logic)
  • HTML/CSS (frontend templates)
  • PowerShell & Batch scripts (deployment/utilities)
  • Solidity (Planned: Smart contract integration)
  • Web3 libraries (blockchain interaction)

πŸ“¦ Modules

  • User Authentication (Anonymous & KYC)
  • Wiki Article Management
  • Topic-based Messaging/Discussion
  • Blockchain Data Storage Layer

πŸš€ Getting Started

βœ… Prerequisites

  • Python 3.8 or higher
  • pip
  • (Optional) Node.js and Solidity compiler
  • Internet access for blockchain connectivity

πŸ“₯ Installation

# Clone the repository
git clone https://github.com/SatyamPote/web3-wiki.git
cd web3-wiki/decwiki

# Install dependencies
pip install -r requirements.txt

πŸ”§ Setup Environment Variables

Create a .env file with:

BLOCKCHAIN_ENDPOINT=https://your-node-url
DB_URI=mongodb://localhost:27017/decwiki
SECRET_KEY=your-secret

▢️ Run the Application

python main.py

The app will be available at http://localhost:8000.


πŸ›  Usage

πŸ”“ Registration & Login

  • Anonymous Access:
    Browse and contribute without revealing your identity.

  • KYC Access:
    Register using Aadhaar and PAN for verified identity and trusted edits.


πŸ“„ Creating & Editing Wiki Pages

  1. Log in or continue anonymously.
  2. Go to the Create section.
  3. Draft content, add citations, and submit.
  4. Changes are versioned and revertible.

πŸ’¬ Messaging on Topics

  1. Open any topic/article page.
  2. Use the Message/Comment area.
  3. Messages are stored on-chain for transparency.

πŸ“‚ Project Structure

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
└── ...

πŸ”— API Endpoints

These are subject to implementation changes.

  • POST /register β€” Register a new user (anonymous or KYC)
  • POST /login β€” Authenticate user
  • GET /wiki/<topic> β€” Fetch article by topic
  • POST /wiki/<topic>/edit β€” Create or edit article
  • POST /message/<topic> β€” Post a message on a topic
  • GET /messages/<topic> β€” Fetch messages for a topic

πŸ” Security & Privacy

  • 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.

🀝 Contributing

We welcome community involvement!

  1. Fork the repo
  2. Create a new branch:
    git checkout -b feature/your-feature
  3. Make changes & commit:
    git commit -am 'Add some feature'
  4. Push and create a pull request

βœ… Follow coding standards
βœ… Add tests if applicable
βœ… Ensure user privacy and security


πŸ“„ License

This project is licensed under the MIT License.
See the LICENSE file for full text.


πŸ“¬ Contact

Maintained by SatyamPote
For questions, feature requests, or feedback, please open an issue.


πŸ™ Acknowledgements

  • Inspired by Wikipedia and emerging decentralized knowledge platforms
  • Thanks to the open-source community and Web3 pioneers

About

decwiki is a decentralized, blockchain-powered wiki platform built for Web3. It allows both anonymous and verified users (via Aadhaar and PAN) to create, edit, and discuss articles in a censorship-resistant, secure, and privacy-focused environment. Designed with a modular architecture using Python and Web3 technologies, decwiki enables transparent

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.6%
  • PowerShell 0.3%
  • HTML 0.1%
  • CSS 0.0%
  • Batchfile 0.0%
  • Solidity 0.0%