v1.0.1 – 23 October 2025
Improved offline sync queue; Swahili localization for errors; new examples.
Offline‑first EdTech integration toolkit
The AfriLearn Connect SDK helps developers integrate attendance, learning records, and content sync into school apps that work reliably in low‑connectivity environments.
npm install afrilearn-sdk
import AfriLearn from './afrilearn-sdk.js';
const sdk = new AfriLearn({
baseUrl: 'https://api.afrilearn.org/v1',
apiKey: 'YOUR_API_KEY'
});
const perf = await sdk.getStudentPerformance('STU-KE-2025');
console.log(perf);
await sdk.postAttendance({
classId: 'CLS-101',
date: '2025-10-04',
attendanceList: [
{ studentId: 'STU-001', present: true },
{ studentId: 'STU-002', present: false }
]
});
Retrieve a student's performance across available terms and subjects.
[
{ "subject": "Mathematics", "score": 84, "term": "Term 1" },
{ "subject": "Science", "score": 79, "term": "Term 2" }
]
Submit attendance for a given class and date.
{
"date": "2025-10-04",
"records": [
{ "studentId": "STU-001", "present": true },
{ "studentId": "STU-002", "present": false }
]
}
Full API docs will be available at developers.afrilearn.org/docs.
const AfriLearn = require('afrilearn-sdk');
const sdk = new AfriLearn({ apiKey: process.env.AFRILEARN_API_KEY });
await sdk.postAttendance({ classId: 'CLS-101', date: '2025-11-04', attendanceList: [] });
await sdk.syncOffline();
const perf = await sdk.getStudentPerformance('STU-KE-2025');
render(perf);
Improved offline sync queue; Swahili localization for errors; new examples.
Initial release: core modules (Attendance, Performance, Sync).
Maintained by Webworks Africa Limited · Nairobi. Join the community, suggest features, or report issues.