https://github.com/bevry/discourser
Discourse API Client written in TypeScript for Node.js and Browser environments
https://github.com/bevry/discourser
discourse discourse-api typescript typescript-definitions
Last synced: 9 months ago
JSON representation
Discourse API Client written in TypeScript for Node.js and Browser environments
- Host: GitHub
- URL: https://github.com/bevry/discourser
- Owner: bevry
- License: other
- Created: 2020-04-18T07:58:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-06T01:54:33.000Z (over 1 year ago)
- Last Synced: 2024-10-30T00:55:53.991Z (about 1 year ago)
- Topics: discourse, discourse-api, typescript, typescript-definitions
- Language: TypeScript
- Homepage:
- Size: 278 KB
- Stars: 6
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Security: SECURITY.md
Awesome Lists containing this project
README
discourser
Discourser is an API Client for the [Discourse API](https://docs.discourse.org) written in TypeScript for Node.js and Browser environments.
Its special features are:
- TypeScript Types
- Respecting Rate Limits
- Optional Heavy Caching
- Post Modifiers (can be used for global find and replace across all posts on the forum)
It is currently under heavy construction, however is being used in production, and will eventually stabilise.
The CLI executable is currently only for Bevry use. Eventually the Bevry specific parts of it will be abstracted out. Do not use the CLI currently in your own projects.
## Usage
[Complete API Documentation.](http://master.discourser.bevry.surge.sh/docs/)
Install
Install Globally
- Install:
npm install --global discourser - Executable:
discourser
Install Locally
- Install:
npm install --save discourser - Executable:
npx discourser - Import:
import pkg from ('discourser') - Require:
const pkg = require('discourser').default
``` html
import pkg from '//cdn.skypack.dev/discourser@^2.1.0'
```
``` html
import pkg from '//unpkg.com/discourser@^2.1.0'
```
``` html
import pkg from '//dev.jspm.io/discourser@2.1.0'
```
Editions
This package is published with the following editions:
-
discourser/source/index.tsis TypeScript source code with Import for modules -
discourser/edition-browsers/index.jsis TypeScript compiled against ES2022 for web browsers with Import for modules -
discourseraliasesdiscourser/edition-es2018/index.js -
discourser/edition-es2018/index.jsis TypeScript compiled against ES2018 for Node.js with Require for modules -
discourser/edition-es2018-esm/index.jsis TypeScript compiled against ES2018 for Node.js with Import for modules
History
Discover the release history by heading on over to the HISTORY.md file.
Contribute
Discover how you can contribute by heading on over to the CONTRIBUTING.md file.
Backers
Maintainers
These amazing people are maintaining this project:
Sponsors
No sponsors yet! Will you be the first?
Contributors
These amazing people have contributed code to this project:
Discover how you can contribute by heading on over to the CONTRIBUTING.md file.
License
Unless stated otherwise all works are:
- Copyright © 2020+ Benjamin Lupton
and licensed under: