diff --git a/blog/2022/11/04/metaforecast-late-2022-update-graphql-api-charts-better/.images/17076903a4b2dd9701baf456656ebc71daa47044.png b/blog/2022/11/04/metaforecast-late-2022-update-graphql-api-charts-better/.images/17076903a4b2dd9701baf456656ebc71daa47044.png new file mode 100644 index 0000000..8990078 Binary files /dev/null and b/blog/2022/11/04/metaforecast-late-2022-update-graphql-api-charts-better/.images/17076903a4b2dd9701baf456656ebc71daa47044.png differ diff --git a/blog/2022/11/04/metaforecast-late-2022-update-graphql-api-charts-better/.images/26546df78f3110a0f0d80f5ba27f66c9426b8603.png b/blog/2022/11/04/metaforecast-late-2022-update-graphql-api-charts-better/.images/26546df78f3110a0f0d80f5ba27f66c9426b8603.png new file mode 100644 index 0000000..fa092b6 Binary files /dev/null and b/blog/2022/11/04/metaforecast-late-2022-update-graphql-api-charts-better/.images/26546df78f3110a0f0d80f5ba27f66c9426b8603.png differ diff --git a/blog/2022/11/04/metaforecast-late-2022-update-graphql-api-charts-better/.images/2c268da6a6a74acbd0d34d4f60e20cb1ac3b064f.png b/blog/2022/11/04/metaforecast-late-2022-update-graphql-api-charts-better/.images/2c268da6a6a74acbd0d34d4f60e20cb1ac3b064f.png new file mode 100644 index 0000000..99e0234 Binary files /dev/null and b/blog/2022/11/04/metaforecast-late-2022-update-graphql-api-charts-better/.images/2c268da6a6a74acbd0d34d4f60e20cb1ac3b064f.png differ diff --git a/blog/2022/11/04/metaforecast-late-2022-update-graphql-api-charts-better/.images/9261c16be3353807fa209a1e2219569e8fa68746.png b/blog/2022/11/04/metaforecast-late-2022-update-graphql-api-charts-better/.images/9261c16be3353807fa209a1e2219569e8fa68746.png new file mode 100644 index 0000000..b061d9c Binary files /dev/null and b/blog/2022/11/04/metaforecast-late-2022-update-graphql-api-charts-better/.images/9261c16be3353807fa209a1e2219569e8fa68746.png differ diff --git a/blog/2022/11/04/metaforecast-late-2022-update-graphql-api-charts-better/.images/bf34e376d891b83ecf4901878aa581995ea7ad6e.png b/blog/2022/11/04/metaforecast-late-2022-update-graphql-api-charts-better/.images/bf34e376d891b83ecf4901878aa581995ea7ad6e.png new file mode 100644 index 0000000..09cfd62 Binary files /dev/null and b/blog/2022/11/04/metaforecast-late-2022-update-graphql-api-charts-better/.images/bf34e376d891b83ecf4901878aa581995ea7ad6e.png differ diff --git a/blog/2022/11/04/metaforecast-late-2022-update-graphql-api-charts-better/.images/e848f8ebc1bf34e50d1a416950598877780cae3b.png b/blog/2022/11/04/metaforecast-late-2022-update-graphql-api-charts-better/.images/e848f8ebc1bf34e50d1a416950598877780cae3b.png new file mode 100644 index 0000000..095d1f6 Binary files /dev/null and b/blog/2022/11/04/metaforecast-late-2022-update-graphql-api-charts-better/.images/e848f8ebc1bf34e50d1a416950598877780cae3b.png differ diff --git a/blog/2022/11/04/metaforecast-late-2022-update-graphql-api-charts-better/index.md b/blog/2022/11/04/metaforecast-late-2022-update-graphql-api-charts-better/index.md new file mode 100644 index 0000000..76bda76 --- /dev/null +++ b/blog/2022/11/04/metaforecast-late-2022-update-graphql-api-charts-better/index.md @@ -0,0 +1,101 @@ +Metaforecast late 2022 update: GraphQL API, Charts, better infrastructure behind the scenes. +============== + +**tl;dr**: [Metaforecast](https://metaforecast.org/) is a search engine and an associated repository for forecasting questions. Since our [last update](https://metaforecast.substack.com/p/metaforecast-update-better-search), we have added a GraphQL API, charts, and dashboards. We have also reworked our infrastructure to make it more stable.  + +## New API + +Our most significant new addition is our GraphQL API. It allows other people to build on top of our efforts. It can be accessed on [metaforecast.org/api/graphql](https://metaforecast.org/api/graphql), and looks similar to the EA Forum's [own graphql api](https://forum.effectivealtruism.org/graphiql).

+ +To get the first 1000 questions, you could use a query like:  + +``` +{ +  questions(first: 1000) { +    edges { +      node { +        id +        title +        url +        description +        options { +          name +          probability +        } +        qualityIndicators { +          numForecasts +          stars +        } +        timestamp +      } +    } +    pageInfo { +      endCursor +      startCursor +    } +  } +} +``` + +You can find more examples, like code to download all questions, in our [/scripts](https://github.com/quantified-uncertainty/metaforecast/tree/master/scripts) folder, to which we welcome contributions. + +## Charts and question pages. + +Charts display a question's history. They look as follows: + + + +Charts can be accessed by clicking the expand button on the front page although they are fairly slow to load at the moment. + + + +Clicking on the expand button brings the user to a question page, which contains a chart, the full question description, and a range of quality indicators: + + + +We are also providing an endpoint at _metaforecast.org/questions/embed/\[id\]_ to allow other pages to embed our charts. For instance, to embed a question whose id is _betfair-1.178163916_, the endpoint would be [here](https://metaforecast.org/questions/embed/betfair-1.178163916). One would use it in the following code:  + +``` + +``` + +You can find the necessary question id by clicking a toggle under "advanced options" on the frontpage, or simply by noticing the id in our URL when expanding the question. + +With time, we aim to improve these pages, make them more interactive, etc. We also think it would be a good idea to embed Metaforecast questions and dashboards into the EA Forum, and we are trying to collaborate with the [Manifold team](https://github.com/ForumMagnum/ForumMagnum/pull/6015), who have [done this before](https://github.com/ForumMagnum/ForumMagnum/pull/4907), to make that happen.  + +## Dashboards + +Dashboards are collections of questions. For instance, [here](https://metaforecast.org/dashboards/view/561472e0d2?numCols=2) is a dashboard on global markets and inflation, as embedded in [Global Guessing](https://globalguessing.com/russia-ukraine-forecasts/). + + + +Like questions, you can either [view dashboards directly](http://metaforecast.org/dashboards/view/561472e0d2?numCols=2), or [embed](http://metaforecast.org/dashboards/embed/561472e0d2?numCols=2) them. You can also create them, at [https://metaforecast.org/dashboards](https://metaforecast.org/dashboards). + +## Better infrastructure + +We have also revamped our infrastructure. We moved to from JavaScript to Typescript, from MongoDB to Postgres, and simplified our backend.  + +## We are open to collaborations + +We are very much open to collaborations. If you want to integrate Metaforecast into your project and need help do not hesitate to reach out, e.g., on our [Github](https://github.com/quantified-uncertainty/metaforecast/issues).  + +Metaforecast is also open source, and we welcome contributions. You can see some to-dos [here](https://github.com/quantified-uncertainty/metaforecast#to-do). Developing is going more slowly now because it's mostly driven by Nuño working in his spare time, so contributions would be counterfactual.  + +## Acknowledgements + +

+ +Metaforecast is hosted by the [Quantified Uncertainty Research Institute](https://quantifieduncertainty.org/), and has received funding from [Astral Codex Ten](https://astralcodexten.substack.com/p/acx-grants-results). It has received significant contributions from [Vyacheslav Matyuhin](https://berekuk.ru/), who was responsible for the upgrade to Typescript and GraphQL. Thanks to Clay Graubard of [Global Guessing](https://globalguessing.com/) for their comments and dashboards, to Insight Prediction for help smoothing out their API, to Nathan Young for general comments, to others for their comments and suggestions. + +--- + +

+ +

+ + diff --git a/gossip/index.md b/gossip/index.md index d106e85..5cfbd5e 100755 --- a/gossip/index.md +++ b/gossip/index.md @@ -1,3 +1,5 @@ +_2022/10/31_: I've added an [email subscription option](https://nunosempere.com/.subscribe/) for this blog, as well as for [samotsvety.org](https://samotsvety.org/.subscribe/). + _2022/08/30_: Per [this blogpost](https://forum.effectivealtruism.org/posts/tekdQKdfFe3YJTwML/end-to-end-encryption-for-ea#comments), I'm making my public key available [here](https://nunosempere.com/gossip/.nuno-sempere-public-key.txt). I can be contacted at nuno dot sempere dot lh at protonmail dot com. _2022/08/14_: Updated [blog rss](https://nunosempere.com/blog/index.rss) to use the correct date. Thanks, kind stranger who left a tip on my [Admonymous](https://www.admonymous.co/loki). diff --git a/sitemap.gz b/sitemap.gz index 52022c2..0a735bd 100644 Binary files a/sitemap.gz and b/sitemap.gz differ