|
1 | | - |
| 1 | +# n8n-nodes-substack |
2 | 2 |
|
3 | | -# n8n-nodes-starter |
| 3 | +[](https://badge.fury.io/js/n8n-nodes-substack) |
| 4 | +[](https://opensource.org/licenses/MIT) |
4 | 5 |
|
5 | | -This repo contains example nodes to help you get started building your own custom integrations for [n8n](https://n8n.io). It includes the node linter and other dependencies. |
| 6 | +This n8n community node allows interaction with the Substack API, enabling you to automate content creation and management workflows directly from n8n. |
6 | 7 |
|
7 | | -To make your custom node available to the community, you must create it as an npm package, and [submit it to the npm registry](https://docs.npmjs.com/packages-and-modules/contributing-packages-to-the-registry). |
| 8 | +[n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/reference/license/) workflow automation platform. |
8 | 9 |
|
9 | | -If you would like your node to be available on n8n cloud you can also [submit your node for verification](https://docs.n8n.io/integrations/creating-nodes/deploy/submit-community-nodes/). |
| 10 | +## Features |
10 | 11 |
|
11 | | -## Prerequisites |
| 12 | +- **Authenticate with Substack**: Secure API key authentication |
| 13 | +- **Create Notes**: Publish Substack notes programmatically |
| 14 | +- **Future Features** (coming soon): |
| 15 | + - Fetch subscribers and manage mailing lists |
| 16 | + - Create and publish full posts |
| 17 | + - Access publication statistics and analytics |
12 | 18 |
|
13 | | -You need the following installed on your development machine: |
| 19 | +## Quick Start |
14 | 20 |
|
15 | | -* [git](https://git-scm.com/downloads) |
16 | | -* Node.js and npm. Minimum version Node 20. You can find instructions on how to install both using nvm (Node Version Manager) for Linux, Mac, and WSL [here](https://github.com/nvm-sh/nvm). For Windows users, refer to Microsoft's guide to [Install NodeJS on Windows](https://docs.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-windows). |
17 | | -* Install n8n with: |
18 | | - ``` |
19 | | - npm install n8n -g |
20 | | - ``` |
21 | | -* Recommended: follow n8n's guide to [set up your development environment](https://docs.n8n.io/integrations/creating-nodes/build/node-development-environment/). |
| 21 | +Here's a simple workflow that creates a Substack note: |
22 | 22 |
|
23 | | -## Using this starter |
| 23 | +```json |
| 24 | +{ |
| 25 | + "nodes": [ |
| 26 | + { |
| 27 | + "name": "Create Substack Note", |
| 28 | + "type": "n8n-nodes-substack.substack", |
| 29 | + "parameters": { |
| 30 | + "resource": "note", |
| 31 | + "operation": "create", |
| 32 | + "title": "Hello from n8n!", |
| 33 | + "body": "This note was created automatically using n8n." |
| 34 | + }, |
| 35 | + "credentials": { |
| 36 | + "substackApi": "your-credential-id" |
| 37 | + } |
| 38 | + } |
| 39 | + ] |
| 40 | +} |
| 41 | +``` |
24 | 42 |
|
25 | | -These are the basic steps for working with the starter. For detailed guidance on creating and publishing nodes, refer to the [documentation](https://docs.n8n.io/integrations/creating-nodes/). |
| 43 | +## Installation |
26 | 44 |
|
27 | | -1. [Generate a new repository](https://github.com/n8n-io/n8n-nodes-starter/generate) from this template repository. |
28 | | -2. Clone your new repo: |
29 | | - ``` |
30 | | - git clone https://github.com/<your organization>/<your-repo-name>.git |
31 | | - ``` |
32 | | -3. Run `npm i` to install dependencies. |
33 | | -4. Open the project in your editor. |
34 | | -5. Browse the examples in `/nodes` and `/credentials`. Modify the examples, or replace them with your own nodes. |
35 | | -6. Update the `package.json` to match your details. |
36 | | -7. Run `npm run lint` to check for errors or `npm run lintfix` to automatically fix errors when possible. |
37 | | -8. Test your node locally. Refer to [Run your node locally](https://docs.n8n.io/integrations/creating-nodes/test/run-node-locally/) for guidance. |
38 | | -9. Replace this README with documentation for your node. Use the [README_TEMPLATE](README_TEMPLATE.md) to get started. |
39 | | -10. Update the LICENSE file to use your details. |
40 | | -11. [Publish](https://docs.npmjs.com/packages-and-modules/contributing-packages-to-the-registry) your package to npm. |
| 45 | +### n8n Cloud |
41 | 46 |
|
42 | | -## More information |
| 47 | +1. Go to **Settings** > **Community Nodes** |
| 48 | +2. Click **Install a community node** |
| 49 | +3. Enter `n8n-nodes-substack` |
| 50 | +4. Click **Install** |
43 | 51 |
|
44 | | -Refer to our [documentation on creating nodes](https://docs.n8n.io/integrations/creating-nodes/) for detailed information on building your own nodes. |
| 52 | +### Self-hosted n8n |
| 53 | + |
| 54 | +Install the node in your n8n installation directory: |
| 55 | + |
| 56 | +```bash |
| 57 | +npm install n8n-nodes-substack |
| 58 | +``` |
| 59 | + |
| 60 | +Then restart your n8n instance. |
| 61 | + |
| 62 | +### Credentials Setup |
| 63 | + |
| 64 | +1. Add the Substack node to your workflow |
| 65 | +2. Create new credentials with: |
| 66 | + - **Publication Address**: Your Substack domain (e.g., `myblog.substack.com`) |
| 67 | + - **API Key**: Your Substack API key |
| 68 | + |
| 69 | +## Documentation |
| 70 | + |
| 71 | +For comprehensive usage instructions, configuration options, and examples: |
| 72 | + |
| 73 | +📖 **[Full Documentation](docs/n8n-usage.md)** |
| 74 | + |
| 75 | +Additional resources: |
| 76 | +- [API Reference](docs/api-reference.md) |
| 77 | +- [Examples](docs/examples.md) |
| 78 | +- [Development Guide](docs/development.md) |
45 | 79 |
|
46 | 80 | ## License |
47 | 81 |
|
48 | | -[MIT](https://github.com/n8n-io/n8n-nodes-starter/blob/master/LICENSE.md) |
| 82 | +[MIT](LICENSE.md) |
0 commit comments