We used fig
to build canopy.banyan.sh, our live frontend for the Canopy social network. Check it out!
Fig is React hooks for xmtp, brpc, banyan, and Canopy With fig
you can comopse applications using open data protocols.
fig
is hooks for...
XMTP
The xmtp-js SDK allows you to send, receive, and subscribe to XMTP conversations. fig
provides a set of ergonomic hooks for working directly with xmtp-js
.
brpc
fig
provides hooks to access any live brpc
backend but works best when paired with a published typesafe API. Learn more about how to build and publish brpc
APIs here.
Banyan
Banyan is a key-value server for XMTP. You can use Banyan
to build open data protocols. fig
provides hooks for Banyan's entire API.
Canopy
Canopy is a completely open social network powered by Banyan and XMTP. With fig
you can add social networking features to your app with just a few lines of code.
We used fig
to build canopy.banyan.sh, our live frontend for Canopy!
- Overview
- Features
- Contents
- Documentation
- Support
- Community
- Contributing
- Sponsors
- Authors
- License
- Roadmap (& Notes)
TODO More here.
npm install @killthebuddh4/fig
We've "inlined" basic working use cases with each public hook. You can see each use case live at https://fig.banyan.sh/examples/name-of-hook
.
TODO List the API here.
TODO For each hook, it's signature and basic usage, notes, and gotchas.
The best place to get real-time support is the #banyan
channel in Discord. You'll get extra special attention and tons of kudos 🎉 if you also open an issue.
If you're interested in contributing, please read the contributing docs before submitting a pull request.
You can be the first ❤️!
MIT License
- stateful worker hooks
- action worker hooks
- unifying hooks
- useLogin
- useConversation
- useMessages
- useInbox (TODO)
- helper hooks
- useCreateConversation
- useSendMessage
- ...
- brpc hooks
- banyan hooks
- ...