All Projects → eserozvataf → apibone

eserozvataf / apibone

Licence: MIT license
[Deprecated] Abstracts requests and responses to make them platform agnostic

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to apibone

Orgajs
parse org-mode content into AST
Stars: ✭ 417 (+3107.69%)
Mutual labels:  unified
Mdx
Markdown for the component era
Stars: ✭ 11,948 (+91807.69%)
Mutual labels:  unified
uniorg
An accurate Org-mode parser
Stars: ✭ 190 (+1361.54%)
Mutual labels:  unified
Cdap
An open source framework for building data analytic applications.
Stars: ✭ 509 (+3815.38%)
Mutual labels:  unified
Awesome Unified
Curated list of awesome unified resources
Stars: ✭ 51 (+292.31%)
Mutual labels:  unified
React Native Unified Contacts
Your best friend when working with the latest and greatest Contacts Framework in iOS 9+ in React Native.
Stars: ✭ 156 (+1100%)
Mutual labels:  unified
Media Server Go
WebRTC media server for go
Stars: ✭ 362 (+2684.62%)
Mutual labels:  unified
collective
How the unified collective is governed
Stars: ✭ 41 (+215.38%)
Mutual labels:  unified
Aurora
Unified lighting effects across multiple brands and various games.
Stars: ✭ 1,673 (+12769.23%)
Mutual labels:  unified
rehype-dom
HTML processor to parse and compile with browser APIs, powered by plugins
Stars: ✭ 20 (+53.85%)
Mutual labels:  unified
Rehype
HTML processor powered by plugins part of the @unifiedjs collective
Stars: ✭ 634 (+4776.92%)
Mutual labels:  unified
Awesome Rehype
Curated list of awesome rehype resources
Stars: ✭ 39 (+200%)
Mutual labels:  unified
Retext
natural language processor powered by plugins part of the @unifiedjs collective
Stars: ✭ 2,119 (+16200%)
Mutual labels:  unified
Upash
🔒Unified API for password hashing algorithms
Stars: ✭ 484 (+3623.08%)
Mutual labels:  unified
ULog
Unified cross-platform logging framework for C, C++, Objective-C, Swift, ASL and C#.
Stars: ✭ 13 (+0%)
Mutual labels:  unified
Remark
remark is a popular tool that transforms markdown with plugins. These plugins can inspect and change your markup. You can use remark on the server, the client, CLIs, deno, etc.
Stars: ✭ 4,746 (+36407.69%)
Mutual labels:  unified
Jstransformer
Normalize the API of any JSTransformer.
Stars: ✭ 139 (+969.23%)
Mutual labels:  unified
gram-js
Gram in javascript.
Stars: ✭ 21 (+61.54%)
Mutual labels:  unified
unifiedjs.github.io
Site for unified
Stars: ✭ 37 (+184.62%)
Mutual labels:  unified
unified-args
Create CLIs for unified processors
Stars: ✭ 30 (+130.77%)
Mutual labels:  unified

apibone

npm version npm download dependencies license

Update (July 2022)

DEPRECATED in favor of hex. See https://github.com/eserozvataf/hex for details.

README

apibone is a library which provides some interfaces for queryable services. It simply abstracts request and response objects for its defined functions.

apibone modules query various web services and return responses in requested formatting. Whether the platform is cli or web, modules access same interface for input and output objects.

Queries

Apibone breaks queries in three parts:

  • Module name / alias
  • Arguments
  • Parameters

in command line form:

module [arguments ...] [--parameter value ...]

For example, to execute rates module in order to query 5 USD's TRY value:

$ apibone module rates usd try --amount 5 # cli example
http://example.com/rates/usd/try?amount=5 # web example

module: module name which will be called. (e.g.: rates)
arguments: arguments of operation (e.g.: first argument is usd, second argument is try)
parameters: optional settings for operation (e.g.: amount with value 5)

Installation

$ npm install -g apibone
$ mv config.sample.js config.js # rename config.sample.js to config.js

CLI Usage

$ apibone module [arguments]

# Examples:
$ apibone modules
$ apibone rates usd try
$ apibone rates usd try --amount 5
$ apibone weather izmir
$ apibone test anyCommand --anyParam=anyValue --anyOptionalParam

REPL Usage

$ apibone

apibone> modules
apibone> weather izmir
apibone> /q

Web Usage

$ npm start

# Example:
http://localhost:3000/modules
http://localhost:3000/rates/usd/try?amount=5
http://localhost:3000/weather/izmir
http://localhost:3000/test/anyCommand?anyParam=anyValue&anyOptionalParam&format=text

Start as a Telegram Bot

$ node ./lib/telegrambot.js

Start as a Slack Bot

$ node ./lib/slackbot.js

Modules

Requirements

License

MIT, for further details, please see LICENSE file.

Contributing

See contributors.md

It is publicly open for any contribution. Bugfixes, new features and extra modules are welcome.

  • To contribute to code: Fork the repo, push your changes to your fork, and submit a pull request.
  • To report a bug: If something does not work, please report it using GitHub Issues.

To Support

Visit my patreon profile at patreon.com/eserozvataf

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].