Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish client library to npm #240

Open
webkonstantin opened this issue Jan 5, 2019 · 2 comments
Open

Publish client library to npm #240

webkonstantin opened this issue Jan 5, 2019 · 2 comments
Assignees
Labels

Comments

@webkonstantin
Copy link
Contributor

webkonstantin commented Jan 5, 2019

It would be nice to be able to use remark client library directly instead of dropping script tags on the page

Something like this

const remark = require('remark')

remark.embed(node, options)
remark.counter(node, options)
remark.lastComments(node, options)
@igoradamenko
Copy link
Collaborator

Yep, we'll do it after switching from iframe widget to iframe-less (#218 (comment)). Right now it's overengineering to try to extract things from current widget to the package and to the iframe widget.

I'm leaving this issue open as a reminder. Thanks.

@akellbl4
Copy link
Collaborator

akellbl4 commented Jun 9, 2022

Possible Requirements:

  • pack code by widget with ability to lazy load the module out of the box
  • provide all of the necessary methods for controlling the widgets
  • pack file with API methods separately and expose API methods for outside use

Ideas:

  • create wrappers for JS frameworks (for example remark42-react) for easier integration with them
  • provide theme context which provides ability to modify theme of comments
  • provide ability to replace components with user's own implementation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants