A React component library for displaying lessons from the Bankless Academy, built with vanilla CSS and Farcaster Frame Host.
npm install @bankless-academy/sdk
The SDK requires the following peer dependencies:
npm install @farcaster/frame-host
The Lessons
component displays a grid of lessons from the Bankless Academy API.
import { Lessons } from '@bankless-academy/sdk';
function MyComponent() {
return (
<Lessons lessonSlugs={["what-is-bitcoin", "ethereum-basics"]} />
);
}
Prop | Type | Required | Description |
---|---|---|---|
lessonSlugs |
string[] | Yes | Array of lesson slugs to display |
The Frame
component displays a single lesson from the Bankless Academy API using Farcaster Frame Host.
import { Frame } from '@bankless-academy/sdk';
function MyComponent() {
return (
<Frame url="https://app.banklessacademy.com/lessons/what-is-bitcoin" />
);
}
Prop | Type | Required | Description |
---|---|---|---|
url |
string | Yes | The URL of the lesson to display |
onClose |
() => void | No | Optional callback when the lesson is closed |
- Responsive grid layout for lesson cards
- Loading states and error handling
- Interactive lesson frames using Farcaster Frame Host
- TypeScript support
-
Clone the repository
-
Install dependencies:
npm install
npm run build
npm test
MIT