Using discourse-sdk with discourse.local

TypeScript integration

Install
npm install discourse-sdk
Quick start
import Discourse_sdk from 'discourse-sdk';

const client = new Discourse_sdk({ apiKey: "YOUR_API_KEY" });
Get the top topics filtered by period
curl \
  http://discourse.local/top.json
Get site info
curl \
  http://discourse.local/site.json
Get a list of tags
curl \
  http://discourse.local/tags.json
SDK on GitHub 📄 API Docs
SDK
discourse-sdk
TypeScript
API
discourse.local
discourse.local
At a glance
Language TypeScript
Endpoints84
Base URLhttp://discourse.local