Coder Social home page Coder Social logo

bevry / discourser Goto Github PK

View Code? Open in Web Editor NEW
6.0 4.0 3.0 285 KB

Discourse API Client written in TypeScript for Node.js and Browser environments

License: Other

JavaScript 0.52% TypeScript 99.48%
discourse discourse-api typescript typescript-definitions

discourser's Introduction

discourser

Status of the GitHub Workflow: bevry NPM version NPM downloads
GitHub Sponsors donate button ThanksDev donate button Patreon donate button Liberapay donate button Buy Me A Coffee donate button Open Collective donate button crypto donate button PayPal donate button
Discord server badge Twitch community badge

Discourser is an API Client for the Discourse API 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.

Install

npm

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

Skypack

<script type="module">
    import pkg from '//cdn.skypack.dev/discourser@^2.1.0'
</script>

unpkg

<script type="module">
    import pkg from '//unpkg.com/discourser@^2.1.0'
</script>

jspm

<script type="module">
    import pkg from '//dev.jspm.io/[email protected]'
</script>

This package is published with the following editions:

  • discourser/source/index.ts is TypeScript source code with Import for modules
  • discourser/edition-browsers/index.js is TypeScript compiled against ES2022 for web browsers with Import for modules
  • discourser aliases discourser/edition-es2018/index.js
  • discourser/edition-es2018/index.js is TypeScript compiled against ES2018 for Node.js with Require for modules
  • discourser/edition-es2018-esm/index.js is 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?

GitHub Sponsors donate button ThanksDev donate button Patreon donate button Liberapay donate button Buy Me A Coffee donate button Open Collective donate button crypto donate button PayPal donate button

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:

and licensed under:

discourser's People

Contributors

balupton avatar dependabot-preview[bot] avatar dependabot[bot] avatar github-actions[bot] avatar lucianbuzzo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.