AllBeAPI is a cloud-based utility function set for rapid development. Call ready-to-use tools like Markdown-to-HTML, QR code generation, and image format conversion β all without installing extra libraries. Works in Python and JavaScript out of the box.
AllBeAPI helps developers complete prototypes and experiments in minimal time by providing:
- No Heavy Dependencies: Access powerful utilities without installing and managing multiple libraries
- Unified API Calls: Consistent interface across all functions - learn once, use everywhere
- Multi-Language Support: Official SDKs for Python and JavaScript with identical functionality
- Instant Integration: Copy one file, start coding immediately
- Rapid Prototyping: Focus on your logic, not library setup and configuration
- Text Processing: Markdown-to-HTML conversion, syntax highlighting, code formatting
- Data Handling: JSON schema validation, CSV parsing, text comparison
- Content Generation: QR codes, diagrams, PDFs, image processing
- Developer Tools: Code linting, HTML sanitization, format conversion
AllBeAPI operates on a simple microservice architecture. Client applications can interact with these services either through the dedicated SDKs (JavaScript/Python) or by making direct HTTP requests to the respective service endpoints.
Your Application
β
ββββ SDKs (JavaScript, Python) ββββββ
β β
ββββ Direct HTTP/REST API Calls βββββ
βΌβΌ
AllBeAPI Gateway
(https://res.allbeapi.top)
β
ββββββββββββββββββββββββββΌβββββββββββββββββββββββββ
β β β
βΌ βΌ βΌ
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββ
β Markdown Serviceβ β Image Service β β Code Formatting β β ... (13+ β
β (HTML Rendering)β β (QR, Resize) β β (Prettier, Lint)β β Services) β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββ
AllBeAPI provides these ready-to-use utility functions:
- Marked: Converts Markdown text to HTML
- BeautifulSoup: Parses and extracts data from HTML/XML
- Prettier: Formats code for various languages (JavaScript, TypeScript, HTML, CSS, JSON, PHP, XML, Java, SQL)
- Pygments: Provides syntax highlighting for 500+ programming languages
- PythonQRCode: Generates QR codes from text or URLs
- SanitizeHtml: Cleans and sanitizes HTML input to prevent XSS attacks
- Ajv: Validates JSON data against JSON schemas
- ESLint: Lints JavaScript and TypeScript code to find and fix problems
- Diff: Compares text and highlights differences
- CsvParser: Parses CSV data into structured format
- MermaidCli: Generates diagrams and flowcharts from text using Mermaid syntax
- PDFKit: Creates PDF documents from text and data
- Pillow: Performs image processing tasks (resize, filters, format conversion)
Get started with AllBeAPI in under 60 seconds. All you need is to download one SDK file - no package managers, no dependency hell.
Installation:
# Download the SDK
curl -O https://raw.githubusercontent.com/TingjiaInFuture/allbeapi/main/SDK/JavaScript/allbeapi.js
# Or use in browser via CDN
# <script src="https://cdn.jsdelivr.net/gh/TingjiaInFuture/allbeapi@3/SDK/JavaScript/allbeapi.js"></script>
Usage:
const api = new AllBeApi();
// Convert Markdown to HTML
const html = await api.marked.render("# Hello AllBeAPI\nThis is **awesome**!");
console.log(html);
// Generate a QR code
const qrBlob = await api.pythonQrcode.generateQrcode("https://allbeapi.top");
const qrImageUrl = URL.createObjectURL(qrBlob);
// Now use qrImageUrl in an <img> tag
Installation:
# Download the SDK
curl -O https://raw.githubusercontent.com/TingjiaInFuture/allbeapi/main/SDK/Python/allbeapi.py
Usage:
from allbeapi import AllBeApi
api = AllBeApi()
# Convert Markdown to HTML
html = api.marked.render("# Hello AllBeAPI\nThis is **awesome**!")
print(html)
# Generate a QR code and save to file
qr_bytes = api.python_qrcode.generate_qrcode("https://allbeapi.top")
with open("qrcode.png", "wb") as f:
f.write(qr_bytes)
Rapid Prototyping Blog Engine:
# Python: Convert user content and generate preview
api = AllBeApi()
html = api.marked.render(user_markdown)
preview_pdf = api.pdfkit.generate(html)
Quick Image Processing:
// JavaScript: Process uploaded images without installing PIL/Pillow
const processedImg = await api.pillow.process(imageBytes, ["resize:300,300", "convert:JPEG"]);
Instant Code Formatting:
# Python: Format code without installing prettier locally
formatted = api.prettier.format(messy_js_code, "babel")
Data Validation Pipeline:
// JavaScript: Validate and parse data in one go
const isValid = await api.ajv.validate(schema, data);
const parsed = await api.csvParser.parse(csvString);
For maximum flexibility, make direct HTTP requests:
# Convert Markdown to HTML
curl -X POST https://res.allbeapi.top/marked/render \
-H "Content-Type: application/json" \
-d '{"markdown": "# Hello via cURL"}'
# Generate QR code
curl -X POST https://res.allbeapi.top/python-qrcode/generate-qrcode \
-H "Content-Type: application/json" \
-d '{"data": "https://example.com"}' \
--output qrcode.png
# Format JavaScript code
curl -X POST https://res.allbeapi.top/prettier/format \
-H "Content-Type: application/json" \
-d '{"code": "const x=1;", "parser": "babel"}'
- API Reference: docs/api.html - Complete endpoint documentation
- SDK Guide: docs/sdk.html - Detailed SDK usage examples
- Getting Started: docs/getting-started.html - Step-by-step tutorials
We welcome contributions to expand our utility function set! Whether it's adding new integrations, improving documentation, or fixing bugs:
- Fork the repository
- Create your feature branch (
git checkout -b feature/NewUtility
) - Commit your changes (
git commit -m 'Add NewUtility integration'
) - Push to the branch (
git push origin feature/NewUtility
) - Open a Pull Request
Help us build the most comprehensive lightweight utility platform for developers!
This project is licensed under the MIT License - see the LICENSE file for details.
For questions, feature requests, or issues, please open an issue on GitHub.