.github/CONTRIBUTING.md

246 lines · 12145 bytes

  1# Contributing
  2
  3
  4- [How to make an Addition](#how-to-make-an-addition)
  5- [Requirements](#requirements)
  6- [Guidelines](#guidelines)
  7- [Editing the YAML](#editing-the-yaml)
  8  - [Top-Level Structure](#top-level-structure)
  9  - [Service Fields](#service-fields)
 10  - [Example](#example)
 11  - [Validating your Entry](#validating-your-entry)
 12  - [Need Help?](#need-help)
 13- [Thank You](#thank-you)
 14
 15---
 16
 17## How to make an Addition
 18
 19You can add, edit or remove entries by opening a pull request.
 20
 21All data is stored in [`awesome-privacy.yml`](https://github.com/Lissy93/awesome-privacy/blob/main/awesome-privacy.yml).
 22If you're adding, editing or removing a listing - **this is the only file you need to edit**. Don't edit the README directly, as this is auto-generated from the YAML file.
 23
 24### Process
 25
 26Get started by forking the repo, [editing](https://github.com/Lissy93/awesome-privacy/edit/main/awesome-privacy.yml) the data, committing changes to your fork, and opening a pull request upstream to this repo's main branch. If you're new to open source, you can find some resources to get you started at [git-in.to](https://git-in.to), but feel free to reach out if you need any help 😊 
 27
 28Your request will be reviewed, then either merged, or have changes requested, or if the [Guidelines](#guidelines) are not met, it may be closed with a comment explaining why.
 29
 30### Other Changes
 31
 32- To make layout or stylistic edits to the site ([awesome-privacy.xyz](https://awesome-privacy.xyz)), see the [Website docs](https://github.com/Lissy93/awesome-privacy#the-website) in the readme for build and running instructions.
 33- To make edits to the API ([api.awesome-privacy.xyz](http://api.awesome-privacy.xyz/)), see the [API docs](https://github.com/Lissy93/awesome-privacy#the-api) in the readme for build and running instructions.
 34
 35---
 36
 37## Requirements
 38
 39For software to be included in this list, it must meet the following requirements: 
 40
 41- **Privacy Respecting**
 42	- The project must respect users privacy, not collect more data than necessary, and store info securely
 43	- For hosted services, the project must have a clear privacy policy
 44	- The user must remain in full control of their data, and be able to delete it at any time
 45- **Secure**
 46  - The software must be secure by default, without requiring additional configuration
 47  - There should be no current, critical security issues
 48  - The handling of past issues must have been prompt, transparent and effective
 49- **Open Source**
 50	- The full source code should be released under an open source license
 51	- Ideally it should be possible for the user to build and run/deploy the software themselves from source
 52- **Actively Maintained**
 53  - The developers should address dependency updates and security patches in a timely manner
 54- **Transparent**
 55  - It should be clear who is behind the project, what their motives are, and what (if any) the funding model is
 56- **Ethical**
 57  - Must not suppress free speech, discriminate or disregard any human rights
 58- **Relevant**
 59	- The software must be relevant, and fit into one of the existing categories
 60- **Functional**
 61	- Must be fully functional, and not just a concept or idea
 62	- A stable (non-alpha/beta) release is required at a minimum
 63	- Must be accessible to the general public, and not just a select group of people
 64	- If technical knowledge is required to run it, the software must be well documented
 65
 66_There may be some exceptions, but these would need to be fully justified, reviewed
 67by the community, and the drawbacks / anti-features must be clearly listed along-side the software.
 68Usually these entries go within the "Notable Mentions" section instead._
 69
 70---
 71
 72
 73## Guidelines
 74
 75Your pull request must follow these requirements. Failure to do so, might result in it being closed.
 76
 77- Do not edit the README directly when adding / editing a listing (it's auto-generated!)
 78- Ensure your PR is not a duplicate, search for existing / previous submissions first
 79- You must respond to any comments or requests for changes in a timely manner, 14 days maximum
 80- Write short but descriptive git commit messages, under 50 characters. This must be in the format of `Adds [software-name] to [section-name]`. Your PR will be rejected if you name it `Updates README.md`
 81- Only include a single addition / amendment / removal, per pull request
 82- You must complete each of the sections in the pull request template. Do not delete it!
 83- Where applicable, include links to supporting material for your addition: git repo, docs, recent security audits, etc. This will make researching it much easier for reviewers
 84- While adding new software to the list, don't make your entry read like an advert. Be objective, and include drawbacks as well as strengths
 85- Your entry should be added at the bottom of the appropriate category, unless otherwise requested
 86- If there are other pull requests open, please help review them before submitting yours
 87- A pull request must receive multiple approval reviews before it can be merged
 88- You must be transparent about your affiliation with a product or service that you are adding. It's totally okay to submit your own projects as additions (providing they meet the requirements), but if you don't declare your association with that project then there becomes a clear conflict of interest
 89- You must adhere to the Contributor Covenant Code of Conduct
 90- Don't open a Draft / WIP pull request while you work on the guidelines. A pull request should be 100% ready and should adhere to all the above guidelines when you open it
 91- Your changes must be correctly spelled, and with good grammar
 92- Your changes must be correctly formatted, in valid yaml and markdown
 93- The addition title must be a link the project
 94- The addition description must be no less than 50, and no more than 250 characters, keep it clear and to the point
 95
 96---
 97
 98## Editing the YAML
 99
100All content in both the README and website is generated using the data in [`awesome-privacy.yml`](https://github.com/Lissy93/awesome-privacy/blob/main/awesome-privacy.yml).
101This file may look a bit daunting to start with, but don't worry - it's pretty simple.
102
103### Top-Level Structure
104
105```mermaid
106---
107title: Class Diagram
108---
109
110classDiagram
111    direction LR
112    class Root {
113        +categories: array
114    }
115    class Category {
116        +name: string
117        +sections: array
118    }
119    class Section {
120        +name: string
121        +services: array
122        +intro: string?
123        +notableMentions: array|string?
124        +furtherInfo: string?
125        +wordOfWarning: string?
126        +alternativeTo: array?
127    }
128    class Service {
129        +name: string
130        +description: string
131        +url: string
132        +github: string?
133        +icon: string?
134        +followWith: string?
135        +securityAudited: boolean?
136        +openSource: boolean?
137        +acceptsCrypto: boolean?
138        +tosdrId: number?
139        +iosApp: string?
140        +androidApp: string?
141        +discordInvite: string?
142        +subreddit: string?
143    }
144
145    Root "many" --> "*" Category
146    Category "many" --> "*" Section
147    Section "many" --> "*" Service
148
149```
150
151At a high-level, the file exports an array of categories, each containing a `name` and array of `sections`.
152
153
154```yaml
155categories:
156  - name: Essentials
157    sections: []
158- name: Communication
159    sections: []
160 - name: Security Tools
161    sections: []
162```
163
164Each category contains a `name` an array of `sections` (like sub-categories)
165
166```yaml
167 - name: Communication
168   sections:
169   - name: Encrypted Messaging
170     services: []
171   - name: P2P Messaging
172     intro: ...
173     services: []
174   - name: Encrypted Email
175     services: []
176   - name: Email Clients
177     services: []
178```
179
180And within each section, we find a list of `services`, each containing a listing. For example:
181
182```yaml
183services:
184- name: Addy
185  url: https://addy.io
186  icon: https://addy.io/apple-touch-icon.png
187  github: anonaddy/anonaddy
188  tosdrId: 2220
189  description: |
190    An open source anonymous email forwarding service, allowing you to create unlimited
191    email aliases which forward to one or more of your private email addresses.
192
193- name: Firefox Private Relay
194  url: https://relay.firefox.com
195  icon: https://relay.firefox.com/favicon.svg
196  openSource: true
197  github: mozilla/fx-private-relay
198  tosdrId: 4158
199  description: |
200    Developed and managed by Mozilla, Relay is a Firefox addon, that lets you make an
201    email alias with 1 click, and have all messages forwarded onto your personal email.
202```
203
204
205### Service Fields
206
207Each service (aka an app/website/software) has the following fields:
208
209| Attribute         | Description                                                                                                  | Type     | Required |
210|-------------------|--------------------------------------------------------------------------------------------------------------|----------|----------|
211| `name`            | The name of the listing                                                                                      | `string` | Required |
212| `description`     | A short and subjective description of the listing. Markdown is supported. Split longer descriptions onto multiple lines | `string` | Required |
213| `url`             | The fully qualified domain name of the listing's homepage                                                    | `string` | Required |
214| `icon`            | A path to an icon file for the listing's logo. Must be square, no less than 64x64 and no larger than 512x512 pixels | `string` | Required |
215| `github`          | The GitHub repository hosting the listing's source code. In the format of `[owner]/[repo]`                   | `string` | Optional |
216| `securityAudited` | Has the listing been audited by an accredited security researcher, with the report publicly published?       | `bool`   | Optional |
217| `acceptsCrypto`   | If payment is required/accepted, do they accept anonymous payments using cryptocurrency, such as Monero?     | `bool`   | Optional |
218| `openSource`      | Is the source code in its entirety published somewhere accessible so it can be built-from-source or self-hosted? | `bool`   | Optional |
219| `tosdrId`         | If the privacy policy has been analysed by ToS;DR, include the ID to their report                             | `number` | Optional |
220| `iosApp`          | URL to the listing's mobile app on the Apple App Store                                                       | `string` | Optional |
221| `androidApp`      | URL to the listing's mobile app on the Google Play Store                                                     | `string` | Optional |
222| `discordInvite`   | The invite code to the Discord server for this service                                                       | `string` | Optional |
223| `subreddit`       | Name of the subreddit for this service, without `r/` or the full URL                                         | `string` | Optional |
224
225
226> [!NOTE]
227> Anything which is marked as `optional`, and which doesn't apply to your service can just be left out.<br>
228> Keep max line length around 80-100 chars. If the description is long, split it onto multiple lines, using YAML multi-line string (like `: |`).
229
230### Example
231
232https://github.com/Lissy93/awesome-privacy/blob/912bff8a34e6195ad7b03bc1be978ccd559ed42a/awesome-privacy.yml#L39-L52
233
234### Validating your Entry
235Once you've finished editing the YAML file, you may run `make validate` to run [`validate-awesome-privacy.py`](https://github.com/Lissy93/awesome-privacy/blob/main/lib/validate-awesome-privacy.py), which will ensure your [`awesome-privacy.yml`](https://github.com/Lissy93/awesome-privacy/blob/main/awesome-privacy.yml) is both valid and fits within our defined schema (in [`lib/schema.json`](https://github.com/Lissy93/awesome-privacy/blob/main/lib/schema.json))
236
237### Need Help?
238Just look at some of the existing entries in the file for inspiration, and if you're still stuck, feel free to reach out for help. We're here to help you get your contribution merged!
239
240---
241
242## Thank You
243
244Thank you for helping keep Awesome Privacy up-to-date! It's thanks to contributors like you that this project is possible.
245
246