Deep Customization

API Documentation

Link: http://{Server_IP}:7777/swagger/index.html

When deploying MetaSo, the API Swagger configuration can be enabled, allowing developers to customize their data presentation based on the APIs. The API documentation is organized into several distinct modules, including the Buzz module, Statistics module, Settings module, and others.

Buzz Module

A set of interfaces designed for social platforms similar to Twitter, enabling users to retrieve on-chain buzz data from different nodes. Depending on the functionalities of the APIs, developers can combine and present customized data tailored to their specific requirements.

Statistics Module

The nodes automatically calculate and track their own MDV values. Through the provided APIs, developers can access details about the MDV origin, total value, or differences in values for a given site.

Settings Module

The Settings module offers a blocking feature, allowing administrators to customize their blocklist in accordance with their needs.

Token Module

Designed to retrieve data related to Mrc20 tokens.

Frontend

The open-source code for the front end of ShowNow: https://github.com/MetaSo-Labs/shownow-frontend

By integrating the API Swagger tools and the ShowNow open-source code, developers can deeply customize their own social platform.

ShowNow Project Structure

shownow-frontend/
β”œβ”€β”€ Configuration Files
β”‚   β”œβ”€β”€ .gitignore
β”‚   β”œβ”€β”€ .npmrc
β”‚   β”œβ”€β”€ .umirc.ts
β”‚   β”œβ”€β”€ package.json
β”‚   β”œβ”€β”€ pnpm-lock.yaml
β”‚   β”œβ”€β”€ tailwind.config.js
β”‚   β”œβ”€β”€ tailwind.css
β”‚   β”œβ”€β”€ tsconfig.json
β”‚   β”œβ”€β”€ typings.d.ts
β”‚   └── yarn.lock
β”‚
β”œβ”€β”€ public/ - Public resources
β”‚   β”œβ”€β”€ favicon.ico
β”‚
β”œβ”€β”€ src/ - Source code
β”‚   β”œβ”€β”€ assets/ - Static assets
β”‚   β”‚   β”œβ”€β”€ Images (.png, .svg)
β”‚   β”‚   └── dashboard/ - Dashboard related assets
β”‚   β”‚
β”‚   β”œβ”€β”€ Components/ - Common components
β”‚   β”‚   β”œβ”€β”€ Buzz/ - Tweet related components
β”‚   β”‚   β”œβ”€β”€ Cards/ - Card components
β”‚   β”‚   β”œβ”€β”€ Comment/ - Comment components
β”‚   β”‚   β”œβ”€β”€ ConnectWallet/ - Wallet connection
β”‚   β”‚   β”œβ”€β”€ Follow/ - Follow related
β”‚   β”‚   β”œβ”€β”€ HomeTabs/ - Home tabs
β”‚   β”‚   β”œβ”€β”€ ProfileCard/ - Profile card
β”‚   β”‚   β”œβ”€β”€ UserInfo/ - User information
β”‚   β”‚   └── ...Other components
β”‚   β”‚
β”‚   β”œβ”€β”€ layouts/ - Layout components
β”‚   β”‚   β”œβ”€β”€ dashboard.tsx - Dashboard layout
β”‚   β”‚   β”œβ”€β”€ showLayout.tsx - Show layout
β”‚   β”‚   └── ...Other layouts
β”‚   β”‚
β”‚   β”œβ”€β”€ pages/ - Pages
β”‚   β”‚   β”œβ”€β”€ dashboard/ - Dashboard pages
β”‚   β”‚   β”‚   β”œβ”€β”€ fees/ - Fee related
β”‚   β”‚   β”‚   β”œβ”€β”€ metaso/ - MetaSo related
β”‚   β”‚   β”‚   └── ...Other dashboard pages
β”‚   β”‚   β”œβ”€β”€ home/ - Home page
β”‚   β”‚   β”œβ”€β”€ profile/ - Profile page
β”‚   β”‚   β”œβ”€β”€ tweet/ - Tweet page
β”‚   β”‚   └── ...Other pages
β”‚   β”‚
β”‚   β”œβ”€β”€ utils/ - Utility functions
β”‚   β”‚   β”œβ”€β”€ buzz.ts - Tweet utilities
β”‚   β”‚   β”œβ”€β”€ metaso.ts - MetaSo utilities
β”‚   β”‚   └── ...Other utilities
β”‚   β”‚
β”‚   β”œβ”€β”€ models/ - Data models
β”‚   β”œβ”€β”€ config/ - Configuration
β”‚   β”œβ”€β”€ request/ - API requests
β”‚   β”œβ”€β”€ entities/ - Entity definitions
β”‚   β”œβ”€β”€ hooks/ - Custom hooks
β”‚   β”œβ”€β”€ wrappers/ - Higher-order components
β”‚   β”œβ”€β”€ locales/ - Internationalization
β”‚   β”‚   β”œβ”€β”€ en-US.ts - English language pack
β”‚   β”‚   └── zh-CN.ts - Chinese language pack
β”‚
└── patches/ - Patch files

Main Features

  1. Buzz Components β€” Handle tweet display, repost, details, etc.

  2. Dashboard β€” Dashboard-related features including fee management, MetaSo, etc.

  3. User System β€” Profile, follow, wallet connection, etc.

  4. MetaSo Integration β€” Blockchain-related features

  5. Internationalization β€” Multi-language support

Last updated