Flarum is a popular PHP Forum Framework. Flarum has public a public API Endpoint. This Javascript/Typescript Client allows to interact with the forum from Reactjs/Nodejs applications
Through this api, you can create users, moderate forum discussions.
This project is made in Ara Platform. Which means, you can participate, request features, or support maintainers.
Main Maintainer: Medet Ahmetson. For any questions, sign up on Ara Forum for free. Create a post with the "Sangha" tag. And in the title of the forum, write the "Flarum Javascript Client" prefix.
To speed up the reply, tag Medet Ahmetson in your post.
Requires Nodejs 18 or above.
First, you need to create API key in the Forum for the admin user.
To see how it's done, run npx tsx ./test/start.ts
Or issue a 1 hour session token. Print the access token, if you enabled the verbose flag in FlarumApi. Add the session token to the .env. The command to issue a token:
-
Simply upgrade the version in package.json. Then call to make it available in the NPMJS.
-
Add the tag on git.
-
Compile the Javascript:
tsc
- Then publish:
npm publish --access public