@religiodao/invoke-blogger
v1.0.0
Published
A decentralized blogging platform governed by the ReligioDAO community, where members vote on blog proposals through on-chain governance and content is stored on the Swarm decentralized storage network.
Readme
ReligioDAO Blog Platform
A decentralized blogging platform governed by the ReligioDAO community, where members vote on blog proposals through on-chain governance and content is stored on the Swarm decentralized storage network.

Overview
ReligioDAO Blog is a fork of the Etherjot Web blogging tool, extended with blockchain governance capabilities. It allows community members to propose blog content, vote on it through the Q.org governance stack, mint approved content as NFTs, and view published blogs in a decentralized manner.
Key Features
- DAO-Governed Content: All blog posts require community approval through on-chain voting
- Blockchain Integration: Leverages Q.org voting contracts for governance
- NFT Representation: Approved blogs are minted as NFTs with on-chain metadata
- Decentralized Storage: Content is stored on Swarm for censorship resistance
- User-Friendly Interface: Easy-to-use editor with asset management
- Category-Based Organization: Content is organized by topics and tags
- Wallet Integration: Seamless connection with Web3 wallets
- Metadata Durability: Critical information stored directly on-chain
Architecture
The platform consists of the following core components:
- Frontend Application: React/TypeScript application built from Etherjot
- Blockchain Integration:
- Ethereum transaction handling via ethers.js
- QRC721Plus contract interface for NFT representation
- GeneralDAOVoting contract for proposal management
- NFTMintingModulePlus for minting approved content as NFTs
- Decentralized Storage:
- Swarm network integration for blog content
- Metadata durably stored on-chain with references to Swarm content
Getting Started
Prerequisites
- Node.js (v16 or higher)
- npm or yarn
- A Web3 wallet (MetaMask, WalletConnect, etc.)
- Access to Q Network (Testnet or Mainnet)
- Local Bee node (for development) or Swarm gateway access
Installation
Clone the repository:
git clone https://github.com/JacobCWBillings/ReligioDAO-blog cd religiodao-blogInstall dependencies:
npm installConfigure environment: Create a
.env.localfile based on.env.examplewith your Q Network RPC endpoints and contract addresses.Start the development server:
npm start
Testing with Local Bee Node
For development with local Swarm storage:
- Download Bee v1.16.1 from releases
- Provide execution permissions:
chmod +x <downloaded_binary_name> - Start Bee in dev mode:
./bee dev --cors-allowed-origins="*" - Generate a postage batch:
curl -X POST http://localhost:1633/stamps/100000000/24
Workflow
User Flow
- Connect Wallet: Users connect their Web3 wallet
- Create Content: Authors create blog content in the editor
- Submit Proposal: Content is uploaded to Swarm and a governance proposal is created
- Community Voting: DAO members vote on the proposal
- NFT Minting: Approved proposals trigger minting of an NFT with metadata
- Content Discovery: Users browse and read approved content via the blog viewer
Blog Submission Process
- Author creates blog in the editor
- Content is stored on Swarm with unique reference
- Metadata (including Swarm reference) is created and encoded
- Proposal is submitted to GeneralDAOVoting contract
- DAO members vote on the proposal
- Approved proposals are executed, minting an NFT with on-chain metadata
Contracts
ReligioDAO Blog interacts with three main Q Network contracts:
- QRC721Plus: NFT contract for blog representation
- GeneralDAOVoting: Handles governance proposals and voting
- NFTMintingModulePlus: Executes NFT minting for approved content
Configuration
Key configuration options are available in src/config.ts, including:
- Network settings for different chains (Q Testnet, Q Mainnet, etc.)
- Contract addresses
- Swarm gateway configuration
- Default settings for the platform
Development
Directory Structure
religiodao-blog/
├── src/
│ ├── blockchain/ # Blockchain interactions
│ ├── components/ # React components
│ ├── contexts/ # Context providers
│ ├── hooks/ # Custom React hooks
│ ├── libetherjot/ # Core Etherjot library
│ ├── libswarm/ # Swarm integration
│ ├── pages/ # App pages
│ ├── services/ # Service classes
│ ├── types/ # TypeScript types
│ └── utils/ # Utility functionsTesting
Run the test suite with:
npm testFor specific test groups:
npm run test:blockchain # Test blockchain integration
npm run test:transactions # Test transaction preparation
npm run test:hooks # Test blockchain hooksContributing
Contributions are welcome! Please follow these steps:
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- Based on Etherjot Web
- Uses Swarm for decentralized storage
- Governance powered by Q.org stack
