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

开源库免费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.xdnf.cn/news/752779.html

相关文章:

  • unix/linux source 命令,其内部结构机制
  • unix/linux source 命令,其高级使用
  • 通义开源视觉感知多模态 RAG 推理框架 VRAG-RL:开启多模态推理新时代
  • 【前端】html2pdf实现用前端下载pdf
  • Python Django完整教程与代码示例
  • Vue3 + Element Plus 防止按钮重复点击的解决方案
  • LabVIEW多按键自动化检测系统
  • 03 APP 自动化-定位元素工具元素定位
  • LabVIEW双光子显微镜开发
  • lidar和imu的标定(四)小结
  • Rust 学习笔记:自定义构建和发布配置
  • Linux 内核中 skb_dst_drop 的深入解析:路由缓存管理与版本实现差异
  • MySql(十三)
  • 测量3D翼片的距离与角度
  • Spring MVC参数绑定终极手册:单多参/对象/集合/JSON/文件上传精讲
  • MATLAB实战:传染病模型仿真实现
  • 刚出炉热乎的。UniApp X 封装 uni.request
  • 鸿蒙OSUniApp离线优先数据同步实战:打造无缝衔接的鸿蒙应用体验#三方框架 #Uniapp
  • 一个完整的日志收集方案:Elasticsearch + Logstash + Kibana+Filebeat (一)
  • 43. 远程分布式测试实现
  • CppCon 2014 学习: C++ Test-driven Development
  • 【C/C++】面试基础题目收集
  • 使用ReactNative加载HarmonyOS Svga动画
  • 西瓜书第十一章——降维与度量学习
  • π0论文阅读
  • 16-前端Web实战(Tlias案例-部门管理)
  • WEBSTORM前端 —— 第3章:移动 Web —— 第4节:移动适配-VM
  • Java函数式编程(上)
  • 【小沐杂货铺】基于Three.JS绘制太阳系Solar System(GIS 、WebGL、vue、react,提供全部源代码)第2期
  • Python UV 环境下的 PyKDL 运动学库安装