|
1 |
| -# PostHog Plugin Starter Kit: Hello World |
| 1 | +# PostHog Plugin Starter Kit |
2 | 2 |
|
3 |
| -[](https://www.npmjs.com/package/posthog-plugin-hello-world) |
4 | 3 | [](https://opensource.org/licenses/MIT)
|
5 | 4 |
|
6 |
| -This is an exemplary PostHog plugin. It adds property `"greeting"` to every event, with a configurable value (by default: `"Hello world!"`). |
| 5 | +This is a PostHog plugin template. |
7 | 6 |
|
8 |
| -Feel free to use it as a base for your own plugins! |
| 7 | +The existing sample code adds property `"greeting"` to every event with a configurable value (default: `"Hello world!"`). |
| 8 | +But that is just to help you get started! To make it your own: |
| 9 | +- [ ] Add your code to `index.js`. |
| 10 | +- [ ] Add your metadata and configuration schema to `plugin.json`. |
| 11 | +- [ ] Search for `<TODO:`, make sure none are left! |
| 12 | +- [ ] Optional: Add a `logo.png` file to give this plugin its own logo. |
9 | 13 |
|
10 |
| -You can also add a `logo.png` file to give this plugin its own logo. |
| 14 | +If you're looking for inspiration, here are a few exemplary plugins: |
11 | 15 |
|
12 |
| -Need more information on developing plugins? Check out [the Plugins Overview](https://posthog.com/docs/plugins/build/overview) |
| 16 | +1. [Hello World](https://github.com/PostHog/helloworldplugin) – basic event processing, with tests |
| 17 | +1. [S3 Export](https://github.com/PostHog/s3-export-plugin) – event export using the AWS SDK, with TypeScript |
| 18 | +1. [GeoIP](https://github.com/PostHog/posthog-plugin-geoip) – advanced event processing using the GeoIP feature, with tests, formatting, linting, TypeScript, and GitHub Actions CI |
| 19 | +1. [PagerDuty](https://github.com/PostHog/posthog-pagerduty-plugin) – periodic job using external HTTP API access |
| 20 | + |
| 21 | +To get up to speed with the environment of plugins, check out [our Plugins overview in PostHog Docs](https://posthog.com/docs/plugins/build/overview). |
| 22 | +For a crash course, read [the Plugins tutorial in PostHog Docs](https://posthog.com/docs/plugins/build/tutorial). |
13 | 23 |
|
14 | 24 | ## Installation
|
15 | 25 |
|
16 | 26 | 1. Open PostHog.
|
17 |
| -1. Head to the Plugins page from the sidebar. |
18 |
| -1. Install from URL using this repository's URL. |
| 27 | +1. Go to the Plugins page from the sidebar. |
| 28 | +1. Head to the Advanced tab. |
| 29 | +1. "Install from GitHub, GitLab or npm" using this repository's URL. |
19 | 30 |
|
20 |
| -More information in [the Plugins Tutorial](https://posthog.com/docs/plugins/build/tutorial) |
21 | 31 | ## Questions?
|
22 | 32 |
|
23 | 33 | ### [Join our Slack community.](https://join.slack.com/t/posthogusers/shared_invite/enQtOTY0MzU5NjAwMDY3LTc2MWQ0OTZlNjhkODk3ZDI3NDVjMDE1YjgxY2I4ZjI4MzJhZmVmNjJkN2NmMGJmMzc2N2U3Yjc3ZjI5NGFlZDQ)
|
|
0 commit comments