Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add funding json #487

Merged
merged 14 commits into from
Oct 31, 2024
233 changes: 233 additions & 0 deletions metabrainz/templates/index/funding.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,233 @@
{
"version": "v1.0.0",

"entity": {
"type": "organisation",
"role": "owner",
"name": "MetaBrainz Foundation Inc",
"email": "[email protected]",
"phone": "001-805-459-0815",
"description": "The MetaBrainz Foundation is a non-profit organization dedicated to creating and maintaining open data projects that provide reliable, structured metadata for various forms of media. Established in 2004 by Robert Kaye, MetaBrainz seeks to build free and accessible knowledge repositories while fostering collaboration within an open community. The foundation operates under an open data and open-source ethos, which means its data and tools are freely available for public use, distribution, and modification. This openness encourages developers, researchers, and organizations to contribute and create derivative projects, ultimately enriching the ecosystem around open media metadata.\nAmong the primary projects under MetaBrainz is MusicBrainz, an extensive music database offering metadata on artists, albums, tracks, and release information. Created in response to the proprietary nature of early music metadata services, MusicBrainz empowers users to contribute to and curate an accurate, user-driven music knowledge base. With applications ranging from digital music libraries to tagging software like Picard, MusicBrainz has become a foundational resource for music metadata, attracting contributions from users, as well as support from major companies like Google and the BBC.\nAnother notable project, ListenBrainz, focuses on tracking music listening habits. Inspired by projects like Last.fm, ListenBrainz records and analyzes listening data from users who can share this information to explore trends, recommendations, and personal analytics. As with other MetaBrainz projects, ListenBrainz data is open and accessible, allowing researchers and developers to build upon this data for music recommendations, research, and social features.\nBookBrainz, the foundation’s third major project, is an open database for book metadata, following a similar structure to MusicBrainz but tailored for literature. BookBrainz aims to catalog authors, works, editions, and other entities in the literary world. This data is freely accessible, making it an invaluable resource for libraries, researchers, and readers who want a comprehensive, community-driven book database.\nMetaBrainz Foundation’s commitment to open-source software is integral to its mission. All software it develops, including the tools, APIs, and data structures, is released under open-source licenses. This transparency ensures the data remains free for everyone, regardless of commercial or non-commercial use, while encouraging innovation and contributions from a global user base.\nMetaBrainz is primarily funded through partnerships and sponsorships, relying on support from institutions like Internet Archive and donations from its user community. This structure allows MetaBrainz to remain independent and committed to its mission of providing high-quality, freely available data to benefit both users and the digital information landscape.",
mayhem marked this conversation as resolved.
Show resolved Hide resolved
"webpageUrl": {
"url": "https://metabrainz.org/about"
}
},

"projects": [
{
"guid": "musicbrainz",
"name": "MusicBrainz",
"description": "MusicBrainz is a community-maintained open source encyclopedia of music information. This means that anyone — including you — can help contribute to the project by adding information about your favorite artists and their works.\n In 2000, Gracenote took over the free CDDB project and commercialized it, essentially charging users for accessing the very data they themselves contributed. In response, Robert Kaye founded MusicBrainz. The project has since grown rapidly from a one-man operation to an international community of enthusiasts that appreciates both music and music metadata. Along the way, the scope of the project has expanded from its origins as a mere CDDB replacement to the true music encyclopedia MusicBrainz is today.\n As an encyclopedia and as a community, MusicBrainz exists only to collect as much information about music as we can. We do not discriminate or prefer one 'type' of music over another, and we try to collect information about as many different types of music as possible. Whether it is published or unpublished, popular or fringe, western or non-western, human or non-human — we want it all in MusicBrainz.\n The MusicBrainz Database stores all of the various pieces of information we collect about music, from artists and their releases to works and their composers, and much more. Note: We do not actually store or have access to any of the music recordings!\n Most of the data in the MusicBrainz Database is licensed under CC0, which effectively places the data into the Public Domain. That means that anyone can download the data and use it in any way they want. The remaining data is released under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 license.",
"webpageUrl": {
"url": "https://musicbrainz.org",
"wellKnown": "https://musicbrainz.org/.well-known/funding-manifest-urls"
},
"repositoryUrl": {
"url": "https://github.com/metabrainz/musicbrainz-server",
"wellKnown": "https://github.com/metabrainz/musicbrainz-server/blob/main/.well-known/funding-manifest-urls"
mayhem marked this conversation as resolved.
Show resolved Hide resolved
},
"licenses": ["GPL-2.0-or-later", "CC-BY-NC-SA-3.0", "CC0-1.0"],
"tags": ["music-metadata", "open-data", "data-service-provider", "non-profit"]
mayhem marked this conversation as resolved.
Show resolved Hide resolved
},
{
"guid": "listenbrainz",
"name": "ListenBrainz",
"description": "ListenBrainz is a free and open-source project (similar to Last.fm) that tracks your music listening habits and provides insights into your taste. By submitting your listening data, you contribute to a larger dataset that benefits the music community. ListenBrainz offers visualizations of your listening history, personalized recommendations, and the ability to connect with other music enthusiasts. It's a valuable tool for music lovers who want to understand and share their musical preferences. From the user submitted data ListenBrainz creates several derivative datasets that can be used to build recommendation systems and music discovery tools, free of the bias that is commonly present in closed recommendation systems.",
"webpageUrl": {
"url": "https://listenbrainz.org",
"wellKnown": "https://listenbrainz.org/.well-known/funding-manifest-urls"
},
"repositoryUrl": {
"url": "https://github.com/metabrainz/listenbrainz-server",
"wellKnown": "https://github.com/metabrainz/listenbrainz-server/blob/main/.well-known/funding-manifest-urls"
mayhem marked this conversation as resolved.
Show resolved Hide resolved
},
"licenses": ["GPL-2.0-or-later", "CC-BY-NC-SA-3.0", "CC0-1.0"],
"tags": ["music-community", "recommendations", "fresh-releases", "listening-data", "open-data", "data-service-provider", "non-profit"]
mayhem marked this conversation as resolved.
Show resolved Hide resolved
},
{
"guid": "bookbrainz",
"name": "BookBrainz",
"description": "BookBrainz is an ambitious open-source project dedicated to creating a comprehensive online database of every published book, magazine, journal, and other publication ever written. As part of the MetaBrainz Foundation, alongside MusicBrainz and other projects, BookBrainz empowers users to contribute and edit information about books, including titles, authors, publication dates, ISBNs, and more. This collaborative effort fosters a vast and accurate resource for book lovers, researchers, and libraries worldwide. By making this data freely accessible, BookBrainz promotes knowledge sharing and fosters a deeper understanding of the literary world.",
"webpageUrl": {
"url": "https://bookbrainz.org",
"wellKnown": "https://bookbrainz.org/.well-known/funding-manifest-urls"
},
"repositoryUrl": {
"url": "https://github.com/metabrainz/bookbrainz-site",
"wellKnown": "https://github.com/metabrainz/bookbrainz-site/blob/main/.well-known/funding-manifest-urls"
mayhem marked this conversation as resolved.
Show resolved Hide resolved
},
"licenses": ["GPL-2.0-or-later", "CC-BY-NC-SA-3.0", "CC0-1.0"],
"tags": ["book-community", "book-metadata", "open-data", "isbn", "data-service-provider", "non-profit"]
mayhem marked this conversation as resolved.
Show resolved Hide resolved
}

],

"funding": {
"channels": [
{
"guid": "paypal",
"type": "payment-provider",
"address": "[email protected]",
"description": "Make a donation to MetaBrainz via PayPal."
},
{
"guid": "bank",
"type": "bank",
"address": "IBAN: BE96 9670 3472 0205\nBIC: TRWIBEB1XXX",
"description": "Make a donation to MetaBrainz via SEPA bank transfer."
},
{
"guid": "credit-card",
"type": "payment-provider",
"address": "https://metabrainz.org/donate",
"description": "Make a donation to MetaBrainz via a Credit Card payment."
}
mayhem marked this conversation as resolved.
Show resolved Hide resolved
],

"plans": [
{
"guid": "one-time-15",
"status": "active",
"name": "Fifteen dollars one time donation",
"description": "A $15 one time end-user (non-commercial) donation.",
"amount": 15,
"currency": "USD",
"frequency": "one-time",
"channels": ["paypal", "bank", "credit-card"]
},
{
"guid": "one-time-25",
"status": "active",
"name": "Twenty-five dollars one time donation",
"description": "A $25 one time end-user (non-commercial) donation.",
"amount": 25,
"currency": "USD",
"frequency": "one-time",
"channels": ["paypal", "bank", "credit-card"]
},
{
"guid": "one-time-50",
"status": "active",
"name": "Fifty dollars one time donation",
"description": "A $50 one time end-user (non-commercial) donation.",
"amount": 50,
"currency": "USD",
"frequency": "one-time",
"channels": ["paypal", "bank", "credit-card"]
},
{
"guid": "one-time-100",
"status": "active",
"name": "Ohe hundred dollars one time donation",
"description": "A $100 one time end-user (non-commercial) donation.",
"amount": 100,
"currency": "USD",
"frequency": "one-time",
"channels": ["paypal", "bank", "credit-card"]
},
{
"guid": "one-time-custom",
"status": "active",
"name": "A custom one time donation",
"description": "A custom amount one time end-user (non-commercial) donation.",
"amount": 0,
"currency": "USD",
"frequency": "one-time",
"channels": ["paypal", "bank", "credit-card"]
},
{
"guid": "monthly-15",
"status": "active",
"name": "Fifteen dollars a month donation",
"description": "A $15 a month end-user (non-commercial) donation.",
"amount": 15,
"currency": "USD",
"frequency": "monthly",
"channels": ["paypal", "credit-card"]
},
{
"guid": "monthly-25",
"status": "active",
"name": "Twenty-five dollars a month donation",
"description": "A $25 a month end-user (non-commercial) donation.",
"amount": 25,
"currency": "USD",
"frequency": "monthly",
"channels": ["paypal", "credit-card"]
},
{
"guid": "monthly-50",
"status": "active",
"name": "Fifty dollars a month donation",
"description": "A $50 a month end-user (non-commercial) donation.",
"amount": 50,
"currency": "USD",
"frequency": "monthly",
"channels": ["paypal", "credit-card"]
},
{
"guid": "monthly-100",
"status": "active",
"name": "Ohe hundred dollars a month donation",
"description": "A $100 a month end-user (non-commercial) donation.",
"amount": 100,
"currency": "USD",
"frequency": "monthly",
"channels": ["paypal", "credit-card"]
},
{
"guid": "monthly-custom",
"status": "active",
"name": "A custom monthly donation",
"description": "A custom amount monthly end-user (non-commercial) donation.",
"amount": 0,
"currency": "USD",
"frequency": "monthly",
"channels": ["paypal", "credit-card"]
}
],

"history": [
{
"year": 2023,
"income": 425360.68,
"expenses": 465201.78,
"taxes": 0,
"currency": "USD",
"description": "Profit and Loss: https://metabrainz.org/finances/files/MetaBrainz_Foundation_profit_loss_2023.pdf"
},
{
"year": 2022,
"income": 452208.82,
"expenses": 465188.45,
"taxes": 0,
"currency": "USD",
"description": "Profit and Loss: https://metabrainz.org/finances/files/MetaBrainz_Foundation_profit_loss_2022.pdf"
},
{
"year": 2021,
"income": 512837.40,
"expenses": 425119.83,
"taxes": 0,
"currency": "USD",
"description": "Profit and Loss: https://metabrainz.org/finances/files/MetaBrainz_Foundation_profit_loss_2021.pdf"
},
{
"year": 2020,
"income": 389873.97,
"expenses": 404307.49,
"taxes": 0,
"currency": "USD",
"description": "Profit and Loss: https://metabrainz.org/finances/files/MetaBrainz_Foundation_profit_loss_2020.pdf"
},
{
"year": 2019,
"income": 427789.23,
"expenses": 377961.13,
"taxes": 0,
"currency": "USD",
"description": "Profit and Loss: https://metabrainz.org/finances/files/MetaBrainz_Foundation_profit_loss_2019.pdf"
}
]
}
}
9 changes: 8 additions & 1 deletion metabrainz/views.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import datetime
from flask import Blueprint, render_template, redirect, url_for
from flask import Blueprint, render_template, redirect, url_for, make_response
from flask_login import current_user
from metabrainz.model.supporter import Supporter

Expand Down Expand Up @@ -117,3 +117,10 @@ def signup():
@index_bp.route('/datasets/download')
def download():
return render_template('index/datasets/download.html')


@index_bp.route('/funding.json')
def funding_json():
r = make_response(render_template('index/funding.json'))
r.mimetype = 'application/json'
return r
Loading