Bell is a solution for storing data about API endpoints that covers basic use cases for calling and testing APIs. Bell files describe your API endpoints and are stored in the same repository as your app's source code. They can be compiled into typescript types and/or referenced and called through React hooks. Bell also has a VSCode extension for testing APIs without ever leaving your favorite editor.
bell-cli
- compiles
.bell
files into ts or js to be used bybell-react
- compiles
bell-react
- React hook
useRing
for stateful event calls fetch
replacementring
- React hook
- Bell VSCode Extension
- highlighting for
.bell
file syntax - UI for sending test requests
- highlighting for
# compile .bell files into .ts or .js
bell compile
# run a test from the command line
bell test host/test_name
@domain api.host.com
@name sendOrder
@endpoint POST /order/send
@request {
productId: id;
quantity: number;
}
@response {
status: 'success' | 'failed';
}