Commit 2fec6f757d

2fec6f757d0939d6e3b469ccb8c1e691816dadc2

parent: 0ad29adfa6

Unsigned

Alicia Sykes <alicia@omg.lol> · 2026-02-22 15:30 UTC

Improves the validation script.

- Updates Python deps
- Only run pip install on first time
- Corrections to the schema
- Adds missing URL field to Picocrypt to avoid failure
- Improves the script, with neater output, proper error codes, colors,
  etc

Layout: unified · split

Makefile +1 −1
@@ -34,7 +34,7 @@ WEB_DIR := web
34 34
35# Targets for lib/ 35# Targets for lib/
36install_lib_deps: 36install_lib_deps:
37 $(PYTHON) -m pip install -r $(LIB_DIR)/requirements.txt 37 $(PYTHON) -m pip install -q -r $(LIB_DIR)/requirements.txt
38 38
39gen_readme: install_lib_deps 39gen_readme: install_lib_deps
40 $(PYTHON) $(LIB_DIR)/awesome-privacy-readme-gen.py 40 $(PYTHON) $(LIB_DIR)/awesome-privacy-readme-gen.py
awesome-privacy.yml +76 −75
@@ -135,7 +135,7 @@ categories:
135 Free for self-hosted data (or $3/ month hosted). Be aware that 1Password 135 Free for self-hosted data (or $3/ month hosted). Be aware that 1Password
136 is not fully open source, but they do regularly publish results of their 136 is not fully open source, but they do regularly publish results of their
137 independent [security audits](https://support.1password.com/security-assessments), 137 independent [security audits](https://support.1password.com/security-assessments),
138 and they have a solid reputation for transparently disclosing and fixing vulnerabilities 138 and they have a solid reputation for transparently disclosing and fixing vulnerabilities
139 furtherInfo: > 139 furtherInfo: >
140 **Other Open Source PM**: [Buttercup](https://buttercup.pw), [Clipperz](https://clipperz.is), 140 **Other Open Source PM**: [Buttercup](https://buttercup.pw), [Clipperz](https://clipperz.is),
141 [Pass](https://www.passwordstore.org), [Padloc](https://padloc.app), [TeamPass](https://teampass.net), 141 [Pass](https://www.passwordstore.org), [Padloc](https://padloc.app), [TeamPass](https://teampass.net),
@@ -252,9 +252,9 @@ categories:
252 iosApp: https://apps.apple.com/us/app/ente-auth/id6444121398 252 iosApp: https://apps.apple.com/us/app/ente-auth/id6444121398
253 androidApp: io.ente.auth 253 androidApp: io.ente.auth
254 description: | 254 description: |
255 Ente Auth is a free and open-source app which stores and generates TOTP tokens. 255 Ente Auth is a free and open-source app which stores and generates TOTP tokens.
256 It can be used with an online account to backup and sync your tokens across your 256 It can be used with an online account to backup and sync your tokens across your
257 devices (and access them via a web interface) in a secure, end-to-end encrypted 257 devices (and access them via a web interface) in a secure, end-to-end encrypted
258 fashion. It can also be used offline on a single device with no account necessary. 258 fashion. It can also be used offline on a single device with no account necessary.
259 259
260 furtherInfo: > 260 furtherInfo: >
@@ -265,7 +265,7 @@ categories:
265 [Etopa](https://play.google.com/store/apps/details?id=de.ltheinrich.etopa) *(Android)*<br> 265 [Etopa](https://play.google.com/store/apps/details?id=de.ltheinrich.etopa) *(Android)*<br>
266 For KeePass users, [TrayTop](https://keepass.info/plugins.html#traytotp) 266 For KeePass users, [TrayTop](https://keepass.info/plugins.html#traytotp)
267 is a plugin for managing TOTP's - offline and compatible with Windows, Mac and Linux. 267 is a plugin for managing TOTP's - offline and compatible with Windows, Mac and Linux.
268 268
269 ############################# 269 #############################
270 ###### File Encryption ###### 270 ###### File Encryption ######
271 ############################# 271 #############################
@@ -309,9 +309,10 @@ categories:
309 - name: Picocrypt 309 - name: Picocrypt
310 github: Picocrypt/Picocrypt 310 github: Picocrypt/Picocrypt
311 icon: https://avatars.githubusercontent.com/u/171401041 311 icon: https://avatars.githubusercontent.com/u/171401041
312 url: ''
312 description: | 313 description: |
313 Picocrypt is a very small (hence Pico), very simple, yet very secure encryption tools 314 Picocrypt is a very small (hence Pico), very simple, yet very secure encryption tools
314 that you can use to protect your files. It's designed to be the go-to tool for encryption, 315 that you can use to protect your files. It's designed to be the go-to tool for encryption,
315 with a focus on security, simplicity, and reliability. 316 with a focus on security, simplicity, and reliability.
316 317
317 wordOfWarning: > 318 wordOfWarning: >
@@ -440,7 +441,7 @@ categories:
440 After installing, check the privacy & security settings, and update the configuration to 441 After installing, check the privacy & security settings, and update the configuration to
441 something that you are comfortable with. 12Bytes maintains a comprehensive guide on 442 something that you are comfortable with. 12Bytes maintains a comprehensive guide on
442 [Firefox Configuration for Privacy and Performance](https://codeberg.org/12bytes/firefox-config-guide) 443 [Firefox Configuration for Privacy and Performance](https://codeberg.org/12bytes/firefox-config-guide)
443 444
444 ############################ 445 ############################
445 ###### Search Engines ###### 446 ###### Search Engines ######
446 ############################ 447 ############################
@@ -524,8 +525,8 @@ categories:
524 and self-hostable, although using a [public instance](https://searx.space) 525 and self-hostable, although using a [public instance](https://searx.space)
525 has the benefit of not singling out your queries to the engines used. 526 has the benefit of not singling out your queries to the engines used.
526 A fork of the original [Searx](https://searx.github.io/searx/). 527 A fork of the original [Searx](https://searx.github.io/searx/).
527 528
528 529
529 - name: Communication 530 - name: Communication
530 sections: 531 sections:
531 ################################# 532 #################################
@@ -581,10 +582,10 @@ categories:
581 subreddit: SimpleXChat 582 subreddit: SimpleXChat
582 description: | 583 description: |
583 Simplex is gaining popularity as a secure and private messaging app renowned 584 Simplex is gaining popularity as a secure and private messaging app renowned
584 for its robust encryption protocol without user IDs or phone numbers and this improves your privacy. 585 for its robust encryption protocol without user IDs or phone numbers and this improves your privacy.
585 Simplex offers instant messaging, supports media attachments and voice and video calls. 586 Simplex offers instant messaging, supports media attachments and voice and video calls.
586 Additionally, it is cross-platform, open-source, and completely free, aligning with the modern user's 587 Additionally, it is cross-platform, open-source, and completely free, aligning with the modern user's
587 preferences for convenience, security, and accessibility. 588 preferences for convenience, security, and accessibility.
588 Learn more about the [Security Policy](https://simplex.chat/security/). 589 Learn more about the [Security Policy](https://simplex.chat/security/).
589 590
590 - name: XMPP 591 - name: XMPP
@@ -615,7 +616,7 @@ categories:
615 an open specification and Simple pragmatic RESTful HTTP/JSON API it makes it easy 616 an open specification and Simple pragmatic RESTful HTTP/JSON API it makes it easy
616 to integrates with existing 3rd party IDs to authenticate and discover users, as 617 to integrates with existing 3rd party IDs to authenticate and discover users, as
617 well as to build apps on top of it. 618 well as to build apps on top of it.
618 notableMentions: 619 notableMentions:
619 - name: Chat Secure 620 - name: Chat Secure
620 url: https://chatsecure.org 621 url: https://chatsecure.org
621 - name: KeyBase 622 - name: KeyBase
@@ -649,7 +650,7 @@ categories:
649 be used to communicate any sensitive data. 650 be used to communicate any sensitive data.
650 [Wire](https://wire.com/) has also been removed, due to 651 [Wire](https://wire.com/) has also been removed, due to
651 a [recent acquisition](https://blog.privacytools.io/delisting-wire/) 652 a [recent acquisition](https://blog.privacytools.io/delisting-wire/)
652 653
653 ########################### 654 ###########################
654 ###### P2P Messaging ###### 655 ###### P2P Messaging ######
655 ########################### 656 ###########################
@@ -724,7 +725,7 @@ categories:
724 url: https://github.com/Bitmessage/PyBitmessage 725 url: https://github.com/Bitmessage/PyBitmessage
725 - name: RetroShare 726 - name: RetroShare
726 url: https://retroshare.cc 727 url: https://retroshare.cc
727 728
728 ############################# 729 #############################
729 ###### Encrypted Email ###### 730 ###### Encrypted Email ######
730 ############################# 731 #############################
@@ -792,11 +793,11 @@ categories:
792 custom domains (starting at $3/month). Tuta 793 custom domains (starting at $3/month). Tuta
793 [does not use OpenPGP](https://tuta.com/blog/posts/differences-email-encryption/) 794 [does not use OpenPGP](https://tuta.com/blog/posts/differences-email-encryption/)
794 like other encrypted mail providers, instead they use a standardized, hybrid method 795 like other encrypted mail providers, instead they use a standardized, hybrid method
795 consisting of symmetrical and asymmetrical algorithms (with AES256, and RSA 2048 796 consisting of symmetrical and asymmetrical algorithms (with AES256, and RSA 2048
796 or ECC (x25519) and Kyber-1024). This causes compatibility issues when communicating with contacts 797 or ECC (x25519) and Kyber-1024). This causes compatibility issues when communicating with contacts
797 using PGP. But it does allow them to encrypt much more of the header data (body, 798 using PGP. But it does allow them to encrypt much more of the header data (body,
798 attachments, subject lines, and sender names etc) which PGP mail providers cannot do. The recent upgrades 799 attachments, subject lines, and sender names etc) which PGP mail providers cannot do. The recent upgrades
799 to Tuta's encryption algorithm makes data stored and sent with their service safe against attacks 800 to Tuta's encryption algorithm makes data stored and sent with their service safe against attacks
800 posed by quantum computers. 801 posed by quantum computers.
801 - name: Mailfence 802 - name: Mailfence
802 url: https://mailfence.com?src=digitald 803 url: https://mailfence.com?src=digitald
@@ -1104,7 +1105,7 @@ categories:
1104 url: https://www.smspool.net 1105 url: https://www.smspool.net
1105 icon: https://i.ibb.co/2t4MBFj/apple-touch-icon.png 1106 icon: https://i.ibb.co/2t4MBFj/apple-touch-icon.png
1106 description: | 1107 description: |
1107 Don't feel comfortable giving out your phone number? Protect your online identity by using our one-time-use non-VoIP phone numbers. 1108 Don't feel comfortable giving out your phone number? Protect your online identity by using our one-time-use non-VoIP phone numbers.
1108 We support over 50+ countries and support over 300+ services. 1109 We support over 50+ countries and support over 300+ services.
1109 androidApp: com.smspool.app 1110 androidApp: com.smspool.app
1110 iosApp: https://apps.apple.com/app/smspool/id6474617801 1111 iosApp: https://apps.apple.com/app/smspool/id6474617801
@@ -1452,7 +1453,7 @@ categories:
1452 Displays a country flag depicting the location of the current website's server, which can be useful to know at a glance. 1453 Displays a country flag depicting the location of the current website's server, which can be useful to know at a glance.
1453 Click icon for more tools such as site safety checks, whois, validation etc **Download**: 1454 Click icon for more tools such as site safety checks, whois, validation etc **Download**:
1454 [Firefox](https://addons.mozilla.org/en-US/firefox/addon/flagfox/) 1455 [Firefox](https://addons.mozilla.org/en-US/firefox/addon/flagfox/)
1455 1456
1456 - name: Lightbeam 1457 - name: Lightbeam
1457 url: https://mozilla.github.io/lightbeam/ 1458 url: https://mozilla.github.io/lightbeam/
1458 github: mozilla/lightbeam-we 1459 github: mozilla/lightbeam-we
@@ -1523,7 +1524,7 @@ categories:
1523 url: https://addons.mozilla.org/en-US/firefox/addon/crxviewer 1524 url: https://addons.mozilla.org/en-US/firefox/addon/crxviewer
1524 description: > 1525 description: >
1525 A handy extension for viewing the source code of another browser extension, 1526 A handy extension for viewing the source code of another browser extension,
1526 which is a useful tool for verifying the code does what it says 1527 which is a useful tool for verifying the code does what it says
1527 wordOfWarning: | 1528 wordOfWarning: |
1528 - Having many extensions installed raises entropy, causing your fingerprint to be more unique, hence making tracking easier. 1529 - Having many extensions installed raises entropy, causing your fingerprint to be more unique, hence making tracking easier.
1529 - Much of the functionality of the above addons can be applied without installing anything, by configuring browser settings yourself. For Firefox this is done in the user.js 1530 - Much of the functionality of the above addons can be applied without installing anything, by configuring browser settings yourself. For Firefox this is done in the user.js
@@ -2043,7 +2044,7 @@ categories:
2043 See [Streisand](https://github.com/StreisandEffect/streisand), to learn more, and get started with running a VPN. 2044 See [Streisand](https://github.com/StreisandEffect/streisand), to learn more, and get started with running a VPN.
2044 [Digital Ocean](https://m.do.co/c/3838338e7f79) provides flexible, 2045 [Digital Ocean](https://m.do.co/c/3838338e7f79) provides flexible,
2045 secure and easy Linux VMs, (from $0.007/hour or $5/month), 2046 secure and easy Linux VMs, (from $0.007/hour or $5/month),
2046 Here is a [1-click install script](http://dovpn.carlfriess.com/)for 2047 Here is a [1-click install script](http://dovpn.carlfriess.com/)for
2047 on [Digital Ocean](https://m.do.co/c/3838338e7f79), by Carl Friess. 2048 on [Digital Ocean](https://m.do.co/c/3838338e7f79), by Carl Friess.
2048 2049
2049 Recently distributed self-hosted solutions for running your own VPNs have 2050 Recently distributed self-hosted solutions for running your own VPNs have
@@ -2203,8 +2204,8 @@ categories:
2203 Tor, I2P and Freenet are all anonymity networks - but they work very differently and each is good for specific purposes. 2204 Tor, I2P and Freenet are all anonymity networks - but they work very differently and each is good for specific purposes.
2204 So a good and viable solution would be to use all of them, for different tasks. 2205 So a good and viable solution would be to use all of them, for different tasks.
2205 *You can read more about how I2P compares to Tor, [here](https://blokt.com/guides/what-is-i2p-vs-tor-browser)* 2206 *You can read more about how I2P compares to Tor, [here](https://blokt.com/guides/what-is-i2p-vs-tor-browser)*
2206 2207
2207 2208
2208 ##################### 2209 #####################
2209 ###### Proxies ###### 2210 ###### Proxies ######
2210 ##################### 2211 #####################
@@ -2323,7 +2324,7 @@ categories:
2323 Mullvads public DNS with QNAME minimization and basic ad blocking. 2324 Mullvads public DNS with QNAME minimization and basic ad blocking.
2324 It has been audited by the security experts at Assured. 2325 It has been audited by the security experts at Assured.
2325 You can use this privacy-enhancing service even if you don't use Mullvad. 2326 You can use this privacy-enhancing service even if you don't use Mullvad.
2326 2327
2327 ######################### 2328 #########################
2328 ###### DNS Clients ###### 2329 ###### DNS Clients ######
2329 ######################### 2330 #########################
@@ -2643,7 +2644,7 @@ categories:
2643 2644
2644 Some VPNs have ad-tracking blocking features, such as 2645 Some VPNs have ad-tracking blocking features, such as
2645 [TrackStop with PerfectPrivacy](https://www.perfect-privacy.com/en/features/trackstop?a_aid=securitychecklist). 2646 [TrackStop with PerfectPrivacy](https://www.perfect-privacy.com/en/features/trackstop?a_aid=securitychecklist).
2646 2647
2647 [Private Internet Access](https://www.privateinternetaccess.com/), 2648 [Private Internet Access](https://www.privateinternetaccess.com/),
2648 [CyberGhost](https://www.cyberghostvpn.com/), 2649 [CyberGhost](https://www.cyberghostvpn.com/),
2649 [PureVPN](https://www.anrdoezrs.net/click-9242873-13842740), 2650 [PureVPN](https://www.anrdoezrs.net/click-9242873-13842740),
@@ -2882,7 +2883,7 @@ categories:
2882 [5 eyes](https://en.wikipedia.org/wiki/Five_Eyes) (Australia, Canada, New Zealand, US and UK) 2883 [5 eyes](https://en.wikipedia.org/wiki/Five_Eyes) (Australia, Canada, New Zealand, US and UK)
2883 and [other international cooperatives](https://en.wikipedia.org/wiki/Five_Eyes#Other_international_cooperatives) 2884 and [other international cooperatives](https://en.wikipedia.org/wiki/Five_Eyes#Other_international_cooperatives)
2884 who have legal right to view your data. 2885 who have legal right to view your data.
2885 2886
2886 ############################### 2887 ###############################
2887 ###### Domain Registrars ###### 2888 ###### Domain Registrars ######
2888 ############################### 2889 ###############################
@@ -2920,7 +2921,7 @@ categories:
2920 followWith: Web 2921 followWith: Web
2921 description: | 2922 description: |
2922 Free DNS hosting provider designed with security in mind, and running 2923 Free DNS hosting provider designed with security in mind, and running
2923 on purely open source software. deSEC is backed and funded by SSE. 2924 on purely open source software. deSEC is backed and funded by SSE.
2924 2925
2925 2926
2926 ########################### 2927 ###########################
@@ -3007,7 +3008,7 @@ categories:
3007 All notes are saved individually as .md files, making them easy to manage. 3008 All notes are saved individually as .md files, making them easy to manage.
3008 No mobile app, built-in cloud-sync, encryption or web UI. But due to the structure of the files, 3009 No mobile app, built-in cloud-sync, encryption or web UI. But due to the structure of the files,
3009 it is easy to use your own cloud sync provider, and additional features are provided through extensions. 3010 it is easy to use your own cloud sync provider, and additional features are provided through extensions.
3010 3011
3011 - name: Joplin 3012 - name: Joplin
3012 url: https://joplinapp.org 3013 url: https://joplinapp.org
3013 github: laurent22/joplin 3014 github: laurent22/joplin
@@ -3081,7 +3082,7 @@ categories:
3081 3082
3082 notableMentions: | 3083 notableMentions: |
3083 If you are already tied into Evernote, One Note etc, then [SafeRoom](https://www.getsaferoom.com) 3084 If you are already tied into Evernote, One Note etc, then [SafeRoom](https://www.getsaferoom.com)
3084 is a utility that encrypts your entire notebook, before it is uploaded to the cloud. 3085 is a utility that encrypts your entire notebook, before it is uploaded to the cloud.
3085 3086
3086 [Org Mode](https://orgmode.org) is a mode for [GNU Emacs](https://www.gnu.org/software/emacs/) 3087 [Org Mode](https://orgmode.org) is a mode for [GNU Emacs](https://www.gnu.org/software/emacs/)
3087 dedicated to working with the Org markup format. Org can be thought of as 3088 dedicated to working with the Org markup format. Org can be thought of as
@@ -3331,7 +3332,7 @@ categories:
3331 using [Web Torrent](https://webtorrent.io). 3332 using [Web Torrent](https://webtorrent.io).
3332 3333
3333 For specifically transferring images, [Up1](https://github.com/Upload/Up1) is a good self-hosted option, with client-side encryption. 3334 For specifically transferring images, [Up1](https://github.com/Upload/Up1) is a good self-hosted option, with client-side encryption.
3334 3335
3335 Finally [PsiTransfer](https://github.com/psi-4ward/psitransfer) is a feature-rich, self-hosted file drop, using streams. 3336 Finally [PsiTransfer](https://github.com/psi-4ward/psitransfer) is a feature-rich, self-hosted file drop, using streams.
3336 3337
3337 3338
@@ -3380,7 +3381,7 @@ categories:
3380 description: | 3381 description: |
3381 Simple bookmark manager written in Go, intended to be a clone of Pocket, it has both a simple and clean web 3382 Simple bookmark manager written in Go, intended to be a clone of Pocket, it has both a simple and clean web
3382 interface as well as a CLI. Shiori has easy import/ export, is portable and has webpage archiving features. 3383 interface as well as a CLI. Shiori has easy import/ export, is portable and has webpage archiving features.
3383 3384
3384 notableMentions: | 3385 notableMentions: |
3385 [Ymarks](https://ymarks.org) is a C-based self-hosted bookmark synchronization 3386 [Ymarks](https://ymarks.org) is a C-based self-hosted bookmark synchronization
3386 server and [Chrome](https://chrome.google.com/webstore/detail/ymarks/gefignhaigoigfjfbjjobmegihhaacfi) extension. 3387 server and [Chrome](https://chrome.google.com/webstore/detail/ymarks/gefignhaigoigfjfbjjobmegihhaacfi) extension.
@@ -3438,7 +3439,7 @@ categories:
3438 notableMentions: | 3439 notableMentions: |
3439 [Apache OpenMeetings](https://openmeetings.apache.org) provides self-hosted 3440 [Apache OpenMeetings](https://openmeetings.apache.org) provides self-hosted
3440 video-conferencing, chat rooms, file server and tools for meetings. 3441 video-conferencing, chat rooms, file server and tools for meetings.
3441 3442
3442 [together.brave.com](https://together.brave.com) is Brave's Jitsi Fork. 3443 [together.brave.com](https://together.brave.com) is Brave's Jitsi Fork.
3443 3444
3444 For remote learning, [BigBlueButton](https://bigbluebutton.org) is self-hosted conference call software, 3445 For remote learning, [BigBlueButton](https://bigbluebutton.org) is self-hosted conference call software,
@@ -3495,10 +3496,10 @@ categories:
3495 it is not open source, and although there is a free version, a license 3496 it is not open source, and although there is a free version, a license
3496 is required to access all features. VMWare performs very well when running 3497 is required to access all features. VMWare performs very well when running
3497 on a server, with hundreds of hosts and users. 3498 on a server, with hundreds of hosts and users.
3498 3499
3499 For Mac users, [Parallels](https://www.parallels.com/uk/) is a popular 3500 For Mac users, [Parallels](https://www.parallels.com/uk/) is a popular
3500 option which performs really well, but again is not open source. 3501 option which performs really well, but again is not open source.
3501 3502
3502 For Windows users, there's 3503 For Windows users, there's
3503 [Hyper-V](https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v), 3504 [Hyper-V](https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v),
3504 which is a native Windows product, developed by Microsoft. 3505 which is a native Windows product, developed by Microsoft.
@@ -3567,7 +3568,7 @@ categories:
3567 description: | 3568 description: |
3568 iOS app for encrypting/ decrypting text. 3569 iOS app for encrypting/ decrypting text.
3569 Has native keyboard integration, keychain support and app integrations which makes it quick to use in any app. 3570 Has native keyboard integration, keychain support and app integrations which makes it quick to use in any app.
3570 3571
3571 3572
3572 - name: FlowCrypt 3573 - name: FlowCrypt
3573 url: https://flowcrypt.com 3574 url: https://flowcrypt.com
@@ -3646,10 +3647,10 @@ categories:
3646 3647
3647 Alternatively, with [ImageMagic](https://imagemagick.org) installed, just run 3648 Alternatively, with [ImageMagic](https://imagemagick.org) installed, just run
3648 `convert -strip path/to/image.png` to remove all metadata. 3649 `convert -strip path/to/image.png` to remove all metadata.
3649 3650
3650 If you have [GIMP](https://www.gimp.org) installed, then just go to `File --> Export As --> Export --> Advanced Options --> Uncheck the "Save EXIF data" option`. 3651 If you have [GIMP](https://www.gimp.org) installed, then just go to `File --> Export As --> Export --> Advanced Options --> Uncheck the "Save EXIF data" option`.
3651 3652
3652 Often you need to perform meta data removal programmatically, as part of a script or automation process. 3653 Often you need to perform meta data removal programmatically, as part of a script or automation process.
3653 - GoLang: [go-exif](https://github.com/dsoprea/go-exif) by @dsoprea 3654 - GoLang: [go-exif](https://github.com/dsoprea/go-exif) by @dsoprea
3654 - JS: [exifr](https://github.com/MikeKovarik/exifr) by @MikeKovarik 3655 - JS: [exifr](https://github.com/MikeKovarik/exifr) by @MikeKovarik
3655 - Python: [Piexif](https://github.com/hMatoba/Piexif) by @hMatoba 3656 - Python: [Piexif](https://github.com/hMatoba/Piexif) by @hMatoba
@@ -3665,7 +3666,7 @@ categories:
3665 [not remove it](https://uk.norton.com/internetsecurity-privacy-is-my-personal-data-really-gone-when-its-deleted-from-a-device.html) 3666 [not remove it](https://uk.norton.com/internetsecurity-privacy-is-my-personal-data-really-gone-when-its-deleted-from-a-device.html)
3666 from the disk, and recovering deleted files is a 3667 from the disk, and recovering deleted files is a
3667 [simple task](https://www.lifewire.com/how-to-recover-deleted-files-2622870). 3668 [simple task](https://www.lifewire.com/how-to-recover-deleted-files-2622870).
3668 3669
3669 Therefore, to protect your privacy, you should erase/ overwrite data from 3670 Therefore, to protect your privacy, you should erase/ overwrite data from
3670 the disk, before you destroy, sell or give away a hard drive. 3671 the disk, before you destroy, sell or give away a hard drive.
3671 services: 3672 services:
@@ -3754,12 +3755,12 @@ categories:
3754 Or [badblocks](https://linux.die.net/man/8/badblocks) which is intended to search for all bad blocks, 3755 Or [badblocks](https://linux.die.net/man/8/badblocks) which is intended to search for all bad blocks,
3755 but can also be used to write zeros to a disk, 3756 but can also be used to write zeros to a disk,
3756 by running `sudo badblocks -wsv /dev/sdd`. 3757 by running `sudo badblocks -wsv /dev/sdd`.
3757 3758
3758 An effective method of erasing an SSD, it to use [hdparm](https://en.wikipedia.org/wiki/Hdparm) 3759 An effective method of erasing an SSD, it to use [hdparm](https://en.wikipedia.org/wiki/Hdparm)
3759 to issue a [secure erase](https://en.wikipedia.org/wiki/Parallel_ATA#HDD_passwords_and_security) 3760 to issue a [secure erase](https://en.wikipedia.org/wiki/Parallel_ATA#HDD_passwords_and_security)
3760 command, to your target storage device, 3761 command, to your target storage device,
3761 for this, see step-by-step instructions via: [wiki.kernel.org](https://ata.wiki.kernel.org/index.php/ATA_Secure_Erase). 3762 for this, see step-by-step instructions via: [wiki.kernel.org](https://ata.wiki.kernel.org/index.php/ATA_Secure_Erase).
3762 3763
3763 Finally, [srm](https://www.systutorials.com/docs/linux/man/1-srm/) can be 3764 Finally, [srm](https://www.systutorials.com/docs/linux/man/1-srm/) can be
3764 use to securely remove files or directories, just run `srm -zsv /path/to/file` 3765 use to securely remove files or directories, just run `srm -zsv /path/to/file`
3765 for a single pass over. 3766 for a single pass over.
@@ -3777,7 +3778,7 @@ categories:
3777 If you are an Android user, your device has Google built-in at its core. 3778 If you are an Android user, your device has Google built-in at its core.
3778 [Google tracks you](https://digitalcontentnext.org/blog/2018/08/21/google-data-collection-research/), 3779 [Google tracks you](https://digitalcontentnext.org/blog/2018/08/21/google-data-collection-research/),
3779 collecting a wealth of information, and logging your every move. 3780 collecting a wealth of information, and logging your every move.
3780 3781
3781 A [custom ROM](https://en.wikipedia.org/wiki/List_of_custom_Android_distributions), 3782 A [custom ROM](https://en.wikipedia.org/wiki/List_of_custom_Android_distributions),
3782 is an open source, usually Google-free mobile OS that can be flashed to your device. 3783 is an open source, usually Google-free mobile OS that can be flashed to your device.
3783 services: 3784 services:
@@ -3786,7 +3787,7 @@ categories:
3786 github: GrapheneOS/hardened_malloc 3787 github: GrapheneOS/hardened_malloc
3787 icon: https://grapheneos.org/apple-touch-icon.png 3788 icon: https://grapheneos.org/apple-touch-icon.png
3788 description: | 3789 description: |
3789 GrapheneOS is an open source privacy and security focused mobile OS with Android app compatibility. Developed by Daniel Micay. 3790 GrapheneOS is an open source privacy and security focused mobile OS with Android app compatibility. Developed by Daniel Micay.
3790 GrapheneOS is a young project, and currently only supports Pixel devices, partially due to their strong hardware security. 3791 GrapheneOS is a young project, and currently only supports Pixel devices, partially due to their strong hardware security.
3791 3792
3792 - name: CalyxOS 3793 - name: CalyxOS
@@ -3795,8 +3796,8 @@ categories:
3795 github: CalyxOS/calyxos 3796 github: CalyxOS/calyxos
3796 tosdrId: 2558 3797 tosdrId: 2558
3797 description: | 3798 description: |
3798 CalyxOS is an free and open source Android mobile operating system that puts privacy and security into the hands of everyday users. 3799 CalyxOS is an free and open source Android mobile operating system that puts privacy and security into the hands of everyday users.
3799 Plus, proactive security recommendations and automatic updates take the guesswork out of keeping your personal data personal. Also currently 3800 Plus, proactive security recommendations and automatic updates take the guesswork out of keeping your personal data personal. Also currently
3800 only supports Pixel devices and Xiaomi Mi A2 with Fairphone 4, OnePlus 8T, OnePlus 9 test builds available. Developed by the Calyx Foundation. 3801 only supports Pixel devices and Xiaomi Mi A2 with Fairphone 4, OnePlus 8T, OnePlus 9 test builds available. Developed by the Calyx Foundation.
3801 3802
3802 - name: DivestOS 3803 - name: DivestOS
@@ -3805,8 +3806,8 @@ categories:
3805 github: Divested-Mobile/DivestOS-Build 3806 github: Divested-Mobile/DivestOS-Build
3806 tosdrId: 2550 3807 tosdrId: 2550
3807 description: | 3808 description: |
3808 DivestOS is a vastly diverged unofficial more secure and private soft fork of LineageOS. DivestOS primary goal is prolonging the life-span of 3809 DivestOS is a vastly diverged unofficial more secure and private soft fork of LineageOS. DivestOS primary goal is prolonging the life-span of
3809 discontinued devices, enhancing user privacy, and providing a modest increase of security where/when possible. Project is developed and maintained 3810 discontinued devices, enhancing user privacy, and providing a modest increase of security where/when possible. Project is developed and maintained
3810 solely by Tad (SkewedZeppelin) since 2014. 3811 solely by Tad (SkewedZeppelin) since 2014.
3811 3812
3812 - name: LineageOS 3813 - name: LineageOS
@@ -3815,17 +3816,17 @@ categories:
3815 github: LineageOS/android 3816 github: LineageOS/android
3816 tosdrId: 7188 3817 tosdrId: 7188
3817 description: | 3818 description: |
3818 A free and open-source operating system for various devices, based on the Android mobile platform - Lineage is light-weight, well maintained, 3819 A free and open-source operating system for various devices, based on the Android mobile platform - Lineage is light-weight, well maintained,
3819 supports a wide range of devices, and comes bundled with Privacy Guard. 3820 supports a wide range of devices, and comes bundled with Privacy Guard.
3820 3821
3821 notableMentions: | 3822 notableMentions: |
3822 [Replicant OS](https://www.replicant.us/) is a fully-featured distro, 3823 [Replicant OS](https://www.replicant.us/) is a fully-featured distro,
3823 with an emphasis on freedom, privacy and security. 3824 with an emphasis on freedom, privacy and security.
3824 3825
3825 [OmniRom](https://www.omnirom.org/), 3826 [OmniRom](https://www.omnirom.org/),
3826 [Resurrection Remix OS](https://resurrectionremix.com/) 3827 [Resurrection Remix OS](https://resurrectionremix.com/)
3827 and [Paranoid Android](http://paranoidandroid.co/) are also popular options. 3828 and [Paranoid Android](http://paranoidandroid.co/) are also popular options.
3828 3829
3829 Alternatively, [Ubuntu Touch](https://ubports.com/) is a Linux (Ubuntu)- based OS. 3830 Alternatively, [Ubuntu Touch](https://ubports.com/) is a Linux (Ubuntu)- based OS.
3830 It is secure by design and runs on almost any device, - but it does fall short when it comes to the app store. 3831 It is secure by design and runs on almost any device, - but it does fall short when it comes to the app store.
3831 3832
@@ -3992,7 +3993,7 @@ categories:
3992 some technical knowledge to get started with, but once setup should perform 3993 some technical knowledge to get started with, but once setup should perform
3993 just as any other Windows 10 system. Note that you should only download the 3994 just as any other Windows 10 system. Note that you should only download the
3994 LTSC ISO from the Microsoft's 3995 LTSC ISO from the Microsoft's
3995 [official page](https://www.microsoft.com/en-in/evalcenter/evaluate-windows-10-enterprise) 3996 [official page](https://www.microsoft.com/en-in/evalcenter/evaluate-windows-10-enterprise)
3996 3997
3997 3998
3998 #### Improve the Security and Privacy of your current OS 3999 #### Improve the Security and Privacy of your current OS
@@ -4221,8 +4222,8 @@ categories:
4221 and check reviews/ forums. 4222 and check reviews/ forums.
4222 Create a system restore point, before making any significant changes to 4223 Create a system restore point, before making any significant changes to
4223 your OS (such as disabling core features). 4224 your OS (such as disabling core features).
4224 4225
4225 From a security and privacy perspective, Linux may be a better option. 4226 From a security and privacy perspective, Linux may be a better option.
4226 4227
4227 notableMentions: | 4228 notableMentions: |
4228 See also these lists: 4229 See also these lists:
@@ -4295,7 +4296,7 @@ categories:
4295 that offer free solutions, even if you pay for the premium package. 4296 that offer free solutions, even if you pay for the premium package.
4296 This includes (but not limited to) Avast, AVG, McAfee and Kasperky. 4297 This includes (but not limited to) Avast, AVG, McAfee and Kasperky.
4297 For AV to be effective, it needs intermate access to all areas of your PC, 4298 For AV to be effective, it needs intermate access to all areas of your PC,
4298 so it is important to go with a trusted vendor, and monitor its activity closely. 4299 so it is important to go with a trusted vendor, and monitor its activity closely.
4299 4300
4300 4301
4301 - name: Development 4302 - name: Development
@@ -4350,7 +4351,7 @@ categories:
4350 [reputation](https://srlabs.de/bites/smart-spies) when it comes to protecting 4351 [reputation](https://srlabs.de/bites/smart-spies) when it comes to protecting
4351 consumers privacy, there have been 4352 consumers privacy, there have been
4352 [many recent breaches](https://www.theverge.com/2019/10/21/20924886/alexa-google-home-security-vulnerability-srlabs-phishing-eavesdropping). 4353 [many recent breaches](https://www.theverge.com/2019/10/21/20924886/alexa-google-home-security-vulnerability-srlabs-phishing-eavesdropping).
4353 4354
4354 For that reason it is recommended not to have these devices in your house. 4355 For that reason it is recommended not to have these devices in your house.
4355 The following are open source AI voice assistants, that aim to provide a 4356 The following are open source AI voice assistants, that aim to provide a
4356 human voice interface while also protecting your privacy and security 4357 human voice interface while also protecting your privacy and security
@@ -4386,7 +4387,7 @@ categories:
4386 [LinTO](https://linto.ai), [Jovo](https://www.jovo.tech) and [Snips](https://snips.ai) 4387 [LinTO](https://linto.ai), [Jovo](https://www.jovo.tech) and [Snips](https://snips.ai)
4387 are private-by-design voice assistant frameworks that can be built on by developers, 4388 are private-by-design voice assistant frameworks that can be built on by developers,
4388 or used by enterprises. 4389 or used by enterprises.
4389 4390
4390 [Jasper](https://jasperproject.github.io), 4391 [Jasper](https://jasperproject.github.io),
4391 [Stephanie](https://github.com/SlapBot/stephanie-va) and 4392 [Stephanie](https://github.com/SlapBot/stephanie-va) and
4392 [Hey Athena](https://github.com/rcbyron/hey-athena-client) are Python-based voice assistant, but neither is under active development anymore. 4393 [Hey Athena](https://github.com/rcbyron/hey-athena-client) are Python-based voice assistant, but neither is under active development anymore.
@@ -4403,7 +4404,7 @@ categories:
4403 description: | 4404 description: |
4404 An open source privacy-respecting Home Assistant, compatible with a wide range of 4405 An open source privacy-respecting Home Assistant, compatible with a wide range of
4405 devices including Raspberry Pi, desktop computers, or NAS systems. 4406 devices including Raspberry Pi, desktop computers, or NAS systems.
4406 Actively developed, with good french community and various integrations 4407 Actively developed, with good french community and various integrations
4407 (Zigbee, Philips, Camera, Tuya, MQTT, Telegram, ...). 4408 (Zigbee, Philips, Camera, Tuya, MQTT, Telegram, ...).
4408 url: https://gladysassistant.com/ 4409 url: https://gladysassistant.com/
4409 github: gladysassistant/gladys 4410 github: gladysassistant/gladys
@@ -4446,7 +4447,7 @@ categories:
4446 notableMentions: | 4447 notableMentions: |
4447 Other privacy-focused cryptocurrencies include: 4448 Other privacy-focused cryptocurrencies include:
4448 [PIVX](https://pivx.org), 4449 [PIVX](https://pivx.org),
4449 [Verge](https://vergecurrency.com), and [Piratechain](https://pirate.black/). 4450 [Verge](https://vergecurrency.com), and [Piratechain](https://pirate.black/).
4450 wordOfWarning: | 4451 wordOfWarning: |
4451 Not all cryptocurrencies are anonymous, and without using a privacy-focused coin, 4452 Not all cryptocurrencies are anonymous, and without using a privacy-focused coin,
4452 a record of your transaction will live on a publicly available distributed ledger, forever. 4453 a record of your transaction will live on a publicly available distributed ledger, forever.
@@ -4583,7 +4584,7 @@ categories:
4583 4584
4584 [BitMex](https://www.bitmex.com/) has more advanced trading features, 4585 [BitMex](https://www.bitmex.com/) has more advanced trading features,
4585 but ID verification is required for higher value trades involving Fiat currency. 4586 but ID verification is required for higher value trades involving Fiat currency.
4586 4587
4587 For buying and selling alt-coins, [Binance](https://www.binance.com/en/register?ref=X2BHKID1) has a wide range of currencies, 4588 For buying and selling alt-coins, [Binance](https://www.binance.com/en/register?ref=X2BHKID1) has a wide range of currencies,
4588 ~and ID verification is not needed for small-value trades~ but ID verification is required in most countries. 4589 ~and ID verification is not needed for small-value trades~ but ID verification is required in most countries.
4589 4590
@@ -4720,7 +4721,7 @@ categories:
4720 Over the past decade, social networks have revolutionized the way we communicate 4721 Over the past decade, social networks have revolutionized the way we communicate
4721 and bought the world closer together - but it came at the 4722 and bought the world closer together - but it came at the
4722 [cost of our privacy](https://en.wikipedia.org/wiki/Privacy_concerns_with_social_networking_services). 4723 [cost of our privacy](https://en.wikipedia.org/wiki/Privacy_concerns_with_social_networking_services).
4723 4724
4724 Social networks are built on the principle of sharing - but you, the user 4725 Social networks are built on the principle of sharing - but you, the user
4725 should be able to choose with whom you share what, and that is what the 4726 should be able to choose with whom you share what, and that is what the
4726 following sites aim to do. 4727 following sites aim to do.
@@ -4751,12 +4752,12 @@ categories:
4751 4752
4752 - name: nostr 4753 - name: nostr
4753 description: | 4754 description: |
4754 nostr stands for Notes and other stuff transmitted by relays. 4755 nostr stands for Notes and other stuff transmitted by relays.
4755 It is an open protocol, not merely a platform. 4756 It is an open protocol, not merely a platform.
4756 This distinction enables truly censorship-resistant and global value-for-value publishing on the web. 4757 This distinction enables truly censorship-resistant and global value-for-value publishing on the web.
4757 With the power to replace data-greedy applications like Twitter and Instagram, 4758 With the power to replace data-greedy applications like Twitter and Instagram,
4758 nostr offers a promising alternative for users seeking a more private and secure online experience 4759 nostr offers a promising alternative for users seeking a more private and secure online experience
4759 without algorithmic manipulations. ".... I feel like I’m looking at the future." that is what [Snowden](https://x.com/Snowden/status/1617623779626352640) wrote about nostr. 4760 without algorithmic manipulations. ".... I feel like I’m looking at the future." that is what [Snowden](https://x.com/Snowden/status/1617623779626352640) wrote about nostr.
4760 url: https://github.com/nostr-protocol/nostr 4761 url: https://github.com/nostr-protocol/nostr
4761 github: https://github.com/nostr-protocol 4762 github: https://github.com/nostr-protocol
4762 4763
@@ -4875,7 +4876,7 @@ categories:
4875 then [Listed.to](https://listed.to) is a public blogging platform with 4876 then [Listed.to](https://listed.to) is a public blogging platform with
4876 strong privacy features. 4877 strong privacy features.
4877 It lets you publish posts directly through the Standard Notes app or web interface. 4878 It lets you publish posts directly through the Standard Notes app or web interface.
4878 4879
4879 Other minimalistic platforms include [Notepin.co](https://notepin.co) and [Pen.io](http://pen.io). 4880 Other minimalistic platforms include [Notepin.co](https://notepin.co) and [Pen.io](http://pen.io).
4880 4881
4881 Want to write a simple text post and promote it yourself? 4882 Want to write a simple text post and promote it yourself?
@@ -4957,7 +4958,7 @@ categories:
4957 url: https://newpipe.schabi.org 4958 url: https://newpipe.schabi.org
4958 description: An open source, privacy-respecting YouTube client for Android. 4959 description: An open source, privacy-respecting YouTube client for Android.
4959 # tosdrId: 2568 4960 # tosdrId: 2568
4960 - name: FreeTube 4961 - name: FreeTube
4961 url: https://freetubeapp.io 4962 url: https://freetubeapp.io
4962 description: | 4963 description: |
4963 An open source YouTube client for Windows, MacOS and Linux, providing 4964 An open source YouTube client for Windows, MacOS and Linux, providing
@@ -5087,7 +5088,7 @@ categories:
5087 5088
5088 - name: Video Editors 5089 - name: Video Editors
5089 alternativeTo: ['adobe premiere pro', 'final cut pro', 'davinci resolve', 'imovie', 'sony vegas pro'] 5090 alternativeTo: ['adobe premiere pro', 'final cut pro', 'davinci resolve', 'imovie', 'sony vegas pro']
5090 services: 5091 services:
5091 - name: Shotcut 5092 - name: Shotcut
5092 followWith: Windows, Mac OS, Linux 5093 followWith: Windows, Mac OS, Linux
5093 description: | 5094 description: |
@@ -5152,7 +5153,7 @@ categories:
5152 github: NatronGitHub/Natron 5153 github: NatronGitHub/Natron
5153 icon: https://natrongithub.github.io/img/Natron_icon.svg 5154 icon: https://natrongithub.github.io/img/Natron_icon.svg
5154 openSource: true 5155 openSource: true
5155 5156
5156 - name: Audio Editors & Recorders 5157 - name: Audio Editors & Recorders
5157 alternativeTo: ['adobe audition', 'garageband', 'fl studio', 'ableton live'] 5158 alternativeTo: ['adobe audition', 'garageband', 'fl studio', 'ableton live']
5158 services: 5159 services:
@@ -5163,16 +5164,16 @@ categories:
5163 great free alternative to Adobe Audition. 5164 great free alternative to Adobe Audition.
5164 Features recording from real and virtual devices, 5165 Features recording from real and virtual devices,
5165 import/export to a wide range of formats, high-quality processing 5166 import/export to a wide range of formats, high-quality processing
5166 advanced multi-track editing, noise reduction, pitch correction, 5167 advanced multi-track editing, noise reduction, pitch correction,
5167 audio restoration and much more. 5168 audio restoration and much more.
5168 It's easily extendable via community plugins, and 5169 It's easily extendable via community plugins, and
5169 also supports cusotm macros and many scripting options 5170 also supports cusotm macros and many scripting options
5170 url: https://www.audacityteam.org 5171 url: https://www.audacityteam.org
5171 github: audacity/audacity 5172 github: audacity/audacity
5172 icon: https://www.audacityteam.org/_astro/Audacity_Logo.63b57726.svg 5173 icon: https://www.audacityteam.org/_astro/Audacity_Logo.63b57726.svg
5173 openSource: true 5174 openSource: true
5174 tosdrId: 4516 5175 tosdrId: 4516
5175 5176
5176 - name: Casting & Streaming 5177 - name: Casting & Streaming
5177 alternativeTo: ['xsplit', 'streamlabs obs', 'twitch studio', 'wirecast'] 5178 alternativeTo: ['xsplit', 'streamlabs obs', 'twitch studio', 'wirecast']
5178 services: 5179 services:
@@ -5189,11 +5190,11 @@ categories:
5189 icon: https://obsproject.com/assets/images/new_icon_small-r.png 5190 icon: https://obsproject.com/assets/images/new_icon_small-r.png
5190 openSource: true 5191 openSource: true
5191 tosdrId: 4227 5192 tosdrId: 4227
5192 5193
5193 - name: Screenshot Tools 5194 - name: Screenshot Tools
5194 alternativeTo: ['snagit', 'greenshot', 'lightshot', 'gyazo', 'sharex'] 5195 alternativeTo: ['snagit', 'greenshot', 'lightshot', 'gyazo', 'sharex']
5195 services: [] 5196 services: []
5196 5197
5197 - name: 3D Graphics 5198 - name: 3D Graphics
5198 alternativeTo: ['blender', 'autodesk maya', 'cinema 4d', '3ds max', 'sketchup'] 5199 alternativeTo: ['blender', 'autodesk maya', 'cinema 4d', '3ds max', 'sketchup']
5199 services: 5200 services:
@@ -5219,7 +5220,7 @@ categories:
5219 url: https://wings3d.com 5220 url: https://wings3d.com
5220 github: dgud/wings 5221 github: dgud/wings
5221 icon: https://upload.wikimedia.org/wikipedia/commons/thumb/e/e9/Wings3d.png/120px-Wings3d.png 5222 icon: https://upload.wikimedia.org/wikipedia/commons/thumb/e/e9/Wings3d.png/120px-Wings3d.png
5222 5223
5223 - name: Animation 5224 - name: Animation
5224 alternativeTo: ['adobe after effects', 'animate cc', 'toon boom harmony', 'moho (anime studio)', 'pencil2d'] 5225 alternativeTo: ['adobe after effects', 'animate cc', 'toon boom harmony', 'moho (anime studio)', 'pencil2d']
5225 services: 5226 services:
lib/requirements.txt +1 −4
@@ -1,5 +1,2 @@
1PyYAML==6.0.1 1PyYAML==6.0.1
2requests==2.31.0 2jsonschema==4.23.0
3jsonschema
4pyyaml
5termcolor
lib/schema.json +24 −20
@@ -22,23 +22,23 @@
22 "name": { "type": "string" }, 22 "name": { "type": "string" },
23 "description": { "type": "string" }, 23 "description": { "type": "string" },
24 "url": { "type": "string" }, 24 "url": { "type": "string" },
25 "github": { "type": "string", "nullable": true }, 25 "github": { "type": ["string", "null"] },
26 "icon": { "type": "string", "nullable": true }, 26 "icon": { "type": ["string", "null"] },
27 "followWith": { "type": "string", "nullable": true }, 27 "followWith": { "type": ["string", "null"] },
28 "securityAudited": { "type": "boolean", "nullable": true }, 28 "securityAudited": { "type": ["boolean", "null"] },
29 "openSource": { "type": "boolean", "nullable": true }, 29 "openSource": { "type": ["boolean", "null"] },
30 "acceptsCrypto": { "type": "boolean", "nullable": true }, 30 "acceptsCrypto": { "type": ["boolean", "null"] },
31 "tosdrId": { "type": "number", "nullable": true }, 31 "tosdrId": { "type": ["number", "null"] },
32 "iosApp": { "type": "string", "nullable": true }, 32 "iosApp": { "type": ["string", "null"] },
33 "androidApp": { "type": "string", "nullable": true }, 33 "androidApp": { "type": ["string", "null"] },
34 "discordInvite": { "type": "string", "nullable": true }, 34 "discordInvite": { "type": ["string", "null"] },
35 "subreddit": { "type": "string", "nullable": true } 35 "subreddit": { "type": ["string", "null"] }
36 }, 36 },
37 "required": ["name", "description", "url"], 37 "required": ["name", "description", "url"],
38 "additionalProperties": false 38 "additionalProperties": false
39 } 39 }
40 }, 40 },
41 "intro": { "type": "string", "nullable": true }, 41 "intro": { "type": ["string", "null"] },
42 "notableMentions": { 42 "notableMentions": {
43 "oneOf": [ 43 "oneOf": [
44 { 44 {
@@ -54,16 +54,20 @@
54 "additionalProperties": false 54 "additionalProperties": false
55 } 55 }
56 }, 56 },
57 { "type": "string" } 57 { "type": "string" },
58 ], 58 { "type": "null" }
59 "nullable": true 59 ]
60 }, 60 },
61 "furtherInfo": { "type": "string", "nullable": true }, 61 "furtherInfo": { "type": ["string", "null"] },
62 "wordOfWarning": { "type": "string", "nullable": true }, 62 "wordOfWarning": { "type": ["string", "null"] },
63 "alternativeTo": { 63 "alternativeTo": {
64 "type": "array", 64 "oneOf": [
65 "items": { "type": "string" }, 65 {
66 "nullable": true 66 "type": "array",
67 "items": { "type": "string" }
68 },
69 { "type": "null" }
70 ]
67 } 71 }
68 }, 72 },
69 "required": ["name", "services"], 73 "required": ["name", "services"],
lib/validate-awesome-privacy.py +91 −64
@@ -1,85 +1,112 @@
1import json 1import json
2import os 2import os
3import sys 3import sys
4import logging 4
5import yaml 5import yaml
6from termcolor import colored
7from jsonschema import Draft7Validator 6from jsonschema import Draft7Validator
8 7
9# Configure Logging 8# Paths (relative to project root)
10LOG_LEVEL = os.environ.get("LOG_LEVEL", "INFO").upper() 9PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
11logging.basicConfig(level=LOG_LEVEL) 10DATA_PATH = os.path.join(PROJECT_ROOT, "awesome-privacy.yml")
12logger = logging.getLogger(__name__) 11SCHEMA_PATH = os.path.join(PROJECT_ROOT, "lib/schema.json")
13 12
14 13# Exit codes
15# Determine the project root based on the script's location 14EXIT_VALID = 0
16project_root = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 15EXIT_VALIDATION_ERRORS = 1
17awesome_privacy_path = os.path.join(project_root, 'awesome-privacy.yml') 16EXIT_RUNTIME_ERROR = 2
18schema_path = os.path.join(project_root, 'lib/schema.json') 17
19 18MAX_ERRORS = 20
20 19
21# Log method, accepts a message and optional log level 20# ANSI color helpers (disabled when NO_COLOR is set or stderr is not a TTY)
22# and prints the output to the terminal in right color 21_use_color = sys.stderr.isatty() and not os.environ.get("NO_COLOR")
23def loggy(message: str, level: str = 'debug'): 22red = (lambda s: f"\033[31m{s}\033[0m") if _use_color else (lambda s: s)
24 if level == "info": 23green = (lambda s: f"\033[32m{s}\033[0m") if _use_color else (lambda s: s)
25 logger.info(colored(message, 'blue')) 24yellow = (lambda s: f"\033[33m{s}\033[0m") if _use_color else (lambda s: s)
26 elif level == "warning": 25dim = (lambda s: f"\033[2m{s}\033[0m") if _use_color else (lambda s: s)
27 logger.warning(colored(message, 'yellow')) 26
28 elif level == "error": 27
29 logger.error(colored(message, 'red')) 28def resolve_path(data, path_parts):
30 elif level == "success": 29 """Walk the data along path_parts, replacing indices with 'name' values."""
31 logger.info(colored(message, 'green')) 30 segments = []
32 elif level == "debug": 31 current = data
33 logger.debug(colored(message, 'grey')) 32 for part in path_parts:
34 33 if isinstance(current, dict) and part in current:
35 34 current = current[part]
36# Loads a given YAML file and returns the data 35 if isinstance(current, dict) and "name" in current:
37def load_yaml(yaml_path: str): 36 segments.append(current["name"])
38 loggy(f"Loading YAML from {yaml_path}", "info") 37 elif not isinstance(part, int):
38 pass # skip dict keys like 'categories', 'sections', 'services'
39 elif isinstance(current, list) and isinstance(part, int) and part < len(current):
40 current = current[part]
41 if isinstance(current, dict) and "name" in current:
42 segments.append(current["name"])
43 else:
44 segments.append(str(part))
45 else:
46 segments.append(str(part))
47 break
48 return " > ".join(segments) if segments else "(root)"
49
50
51def load_yaml(path):
39 try: 52 try:
40 with open(yaml_path, 'r') as file: 53 with open(path, "r") as f:
41 return yaml.safe_load(file) 54 return yaml.safe_load(f)
55 except FileNotFoundError:
56 print(red(f"File not found: {path}"), file=sys.stderr)
57 sys.exit(EXIT_RUNTIME_ERROR)
42 except yaml.YAMLError as e: 58 except yaml.YAMLError as e:
43 loggy(f"Failed to load YAML: {e}", "error") 59 print(red(f"Failed to parse YAML: {e}"), file=sys.stderr)
44 sys.exit(1) 60 sys.exit(EXIT_RUNTIME_ERROR)
45 61
46 62
47# Loads a given JSON Schema file and returns the data 63def load_schema(path):
48def load_schema(schema_path: str):
49 loggy(f"Loading JSON Schema from {schema_path}", "info")
50 try: 64 try:
51 with open(schema_path, 'r') as file: 65 with open(path, "r") as f:
52 return json.load(file) 66 return json.load(f)
67 except FileNotFoundError:
68 print(red(f"File not found: {path}"), file=sys.stderr)
69 sys.exit(EXIT_RUNTIME_ERROR)
53 except json.JSONDecodeError as e: 70 except json.JSONDecodeError as e:
54 loggy(f"Failed to load JSON Schema: {e}", "error") 71 print(red(f"Failed to parse JSON schema: {e}"), file=sys.stderr)
55 sys.exit(1) 72 sys.exit(EXIT_RUNTIME_ERROR)
56 73
57 74
58# Validates the given YAML data against the given JSON Schema 75def validate(data, schema):
59def validate_yaml(data, schema):
60 loggy("Beginning validation", "info")
61 validator = Draft7Validator(schema) 76 validator = Draft7Validator(schema)
62 errors = sorted(validator.iter_errors(data), key=lambda e: e.path) 77 errors = sorted(validator.iter_errors(data), key=lambda e: list(e.path))
63 if errors: 78 formatted = []
64 for error in errors: 79 for error in errors:
65 error_location = "->".join(map(str, error.path)) 80 location = resolve_path(data, list(error.path))
66 loggy(f"Validation error: {error.message} (at {error_location})", "warning") 81 formatted.append(f"{location}: {error.message}")
67 return False 82 return formatted
68 return True
69 83
70 84
71# Main method
72def main(): 85def main():
73 loggy("Starting...", "info") 86 data = load_yaml(DATA_PATH)
74 yaml_data = load_yaml(awesome_privacy_path) 87 schema = load_schema(SCHEMA_PATH)
75 schema = load_schema(schema_path) 88 errors = validate(data, schema)
76 89
77 if validate_yaml(yaml_data, schema): 90 if errors:
78 loggy("Validation successful!", "success") 91 shown = errors[:MAX_ERRORS]
79 sys.exit(0) 92 for msg in shown:
80 else: 93 print(red("ERROR") + " " + msg, file=sys.stderr)
81 loggy("Validation failed.", "error") 94 if len(errors) > MAX_ERRORS:
82 sys.exit(1) 95 print(dim(f"...and {len(errors) - MAX_ERRORS} more"), file=sys.stderr)
96 print(red(f"Validation failed: {len(errors)} error(s)"), file=sys.stderr)
97 sys.exit(EXIT_VALIDATION_ERRORS)
98
99 # Gather stats
100 categories = data.get("categories", [])
101 num_categories = len(categories)
102 num_sections = sum(len(c.get("sections", [])) for c in categories)
103 num_services = sum(
104 len(s.get("services", []))
105 for c in categories
106 for s in c.get("sections", [])
107 )
108 print(green(f"Valid! {num_categories} categories, {num_sections} sections, {num_services} services"))
109 sys.exit(EXIT_VALID)
83 110
84 111
85if __name__ == "__main__": 112if __name__ == "__main__":