question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can you provide a plugin example please?

See original GitHub issue

You lost me a bit in the Plugin Development section, especially as I’m not an experienced JS developer. Could you provider a small example please, maybe as a dedicated repo or examples? I’m interested in setting a default environment and updating the parsing to support more/custom http methods (or better a custom request handler, like grpc is)

CUSTOM custom.domain:9000/hello.HelloService/sayHello
...

I already got hs2019 http-request-signing working with {{+request ...}} hook, but would be great to ship this as a plugin too.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
AnWebercommented, Dec 2, 2021

If you have suggestions for improving the API, we can talk. I intentionally used it myself to test it, but there are still places that need improvement.

1reaction
rngtngcommented, Nov 29, 2021

Uh yes, I got plugin detection & loading working now! I didn’t reference the plugin in package.json (facepalm). For reference this example index.js adds a hook:

module.exports = (api) => {
  api.hooks.onRequest.addHook('customHook', function (request, context) {
    // code to execute
  });
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Build your first plugin: 4. Building Your Plugin - YouTube
Switch camera. Share. Include playlist. An error occurred while retrieving sharing information. Please try again later. 0:00. 0:00 / 44:59•
Read more >
How to Create a WordPress Plugin (Step by Step for Beginners)
Want to know how to create a custom WordPress Plugin? It's easier than you think! We'll walk you through how to create a...
Read more >
Developing Custom Gradle Plugins
You can provide configuration for your plugin by adding an extension object to this container. An extension object is simply an object with...
Read more >
Plugin Examples - dotCMS
These examples provide example code to create the most common types of plugins for dotCMS and show the breadth of what you can...
Read more >
The Ultimate Guide to Building a WordPress Plugin - Toptal
In this tutorial, Toptal Software Engineer Ratko Solaja shows us how to build a robust WordPress plugin, following all the necessary best practices....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found