当前位置: 首页 > article >正文

开源库免费API服务平台 ALLBEAPI

开源库API化平台 ALLBEAPI 🌊

GitHub仓库地址:https://github.com/TingjiaInFuture/allbeapi

为优秀开源库提供免费 API 服务,让开发者无需安装和部署即可直接调用。

🌐 API 接入地址

基础 URL: https://res.allbeapi.top

所有 API 服务都通过此域名提供,支持 HTTPS 安全访问。

🔧 目前支持的API服务

📝 Marked API

将 Markdown 文本转换为 HTML

端点: POST https://res.allbeapi.top/marked/render

fetch('https://res.allbeapi.top/marked/render', {method: 'POST',headers: { 'Content-Type': 'application/json' },body: JSON.stringify({markdown: "# 标题\n\n这是 **粗体** 文本。"})
})
.then(response => response.text())
.then(html => console.log(html));

🥄 Beautiful Soup API

强大的 HTML/XML 解析和数据提取工具

主要端点:

  • POST https://res.allbeapi.top/beautifulsoup/parse - HTML解析
  • POST https://res.allbeapi.top/beautifulsoup/extract - 元素提取
  • POST https://res.allbeapi.top/beautifulsoup/links - 链接提取
  • POST https://res.allbeapi.top/beautifulsoup/images - 图片提取
  • POST https://res.allbeapi.top/beautifulsoup/clean - HTML清理
import requestsresponse = requests.post('https://res.allbeapi.top/beautifulsoup/parse', json={"html": "<html><head><title>测试</title></head><body><p>内容</p></body></html>"
})
data = response.json()
print(f"标题: {data['title']}")

🎨 Prettier API

强大的代码格式化工具,支持多种编程语言

主要端点:

  • POST https://res.allbeapi.top/prettier/format - 代码格式化
  • POST https://res.allbeapi.top/prettier/check - 格式检查
  • POST https://res.allbeapi.top/prettier/batch - 批量格式化
  • GET https://res.allbeapi.top/prettier/parsers - 支持的解析器
  • GET https://res.allbeapi.top/prettier/options - 配置选项
fetch('https://res.allbeapi.top/prettier/format', {method: 'POST',headers: { 'Content-Type': 'application/json' },body: JSON.stringify({code: 'const x={a:1,b:2};',parser: 'babel',options: { singleQuote: true, semi: false }})
})
.then(response => response.json())
.then(data => console.log(data.formatted));

⚠️ 重要说明

本项目旨在为快速原型开发提供轻量的代码体验,以及基于网络的简易集成。

对于生产环境,不建议使用 API 代替库的引入,因为这可能会带来:

  • 网络延迟问题
  • 稳定性风险
  • 安全性考虑

对于生产应用,请考虑直接安装和使用相应的开源库。

🤝 贡献指南

欢迎提交新的API服务或改进现有功能!

  1. Fork 项目
  2. 创建功能分支
  3. 提交更改
  4. 发起 Pull Request

📄 许可证

本项目采用开源许可证,详见 LICENSE 文件。


🌊 让优秀的开源工具像海水一样自由流动 🌊

http://www.lryc.cn/news/2396149.html

相关文章:

  • 【配置vscode默认终端为git bash】
  • Cloudflare
  • Cypress + TypeScript + Vue3
  • Oracle DG库控制文件IO错误导致宕机的应急处理
  • ​​技术深度解析:《鸿蒙5.0+:全场景能效的产业革命》​
  • Spring Boot启动慢?Redis缓存击穿?Kafka消费堆积?——Java后端常见问题排查实战
  • 深入解析 IP 代理:原理、应用场景与优化策略
  • 58、辣椒种植学习
  • 【SpringBoot】零基础全面解析SpringBoot配置文件
  • python:PyMOL 能处理 *.pdb 文件吗?
  • GNSS终端授时之四:高精度的PTP授时
  • Vim文本编辑器快捷键用法以及简单介绍
  • CppCon 2014 学习:C++ in Huge AAA Games
  • PHP与MYSQL结合中中的一些常用函数,HTTP协议定义,PHP进行文件编程,会话技术
  • MapReduce 分布式计算模型
  • Vue3 + Element Plus 防止按钮重复点击的解决方案
  • 测试工程师学LangChain之promptTemplate 实战笔记
  • OpenCV计算机视觉实战(9)——阈值化技术详解
  • 【Tauri2】049——upload
  • 4、数据标注的武林秘籍:Label-Studio vs CVAT vs Roboflow
  • MATLAB项目实战:阻尼振动与数据拟合项目
  • 74道Node.js高频题整理(附答案背诵版)
  • Linux 基础IO(上)
  • 如何加载私钥为 SecKeyRef
  • @Pushgateway自定义脚本推送数据
  • kubernate解决 “cni0“ already has an IP address different from 10.244.0.1/24问题
  • el-tree拖拽事件,限制同级拖拽,获取拖拽后节点的前后节点,同级拖拽合并父节点name且子节点加入目标节点里
  • day62—DFS—太平洋大西洋水流问题(LeetCode-417)
  • 《Python基础》第2期:环境搭建
  • WSL 安装 Debian 12 后,Linux 如何安装 curl , quickjs ?