Explore our API to generate random problems across various subjects, and learn how to integrate the MPC Lab NPM package into your project.
Use the API to generate problems in mathematics, physics, and chemistry by specifying topics and subtopics.
GET /api/problems/:topics/:subtopics/:...
{
"status": "success",
"data": {},
"message": "Problem generated successfully."
}
The MPC Lab NPM package offers an easy-to-use interface for integrating our problem generator directly into your Node.js project.
npm install mpclab
const ProblemGenerator = require("mpclab");
const generator = new ProblemGenerator();
const problem = generator.generateOne([
"math",
"algebra",
"linear-equations",
"standardForm"
]);
console.log(problem);
For advanced customization and problem generation, refer to our GitHub repository for detailed instructions.