{"id":17658651,"url":"https://github.com/ruuda/hanson","last_synced_at":"2026-02-02T03:02:47.488Z","repository":{"id":66191259,"uuid":"471701124","full_name":"ruuda/hanson","owner":"ruuda","description":"Self-hosted prediction market app","archived":false,"fork":false,"pushed_at":"2023-11-20T22:25:03.000Z","size":500,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-21T12:39:24.364Z","etag":null,"topics":["forecasting","prediction-market","prediction-markets"],"latest_commit_sha":null,"homepage":"https://docs.ruuda.nl/hanson/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ruuda.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-19T13:19:43.000Z","updated_at":"2025-03-28T17:23:13.000Z","dependencies_parsed_at":"2023-11-20T23:41:06.776Z","dependency_job_id":null,"html_url":"https://github.com/ruuda/hanson","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ruuda/hanson","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruuda%2Fhanson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruuda%2Fhanson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruuda%2Fhanson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruuda%2Fhanson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruuda","download_url":"https://codeload.github.com/ruuda/hanson/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruuda%2Fhanson/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29002633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T01:32:03.847Z","status":"online","status_checked_at":"2026-02-02T02:00:07.448Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["forecasting","prediction-market","prediction-markets"],"created_at":"2024-10-23T15:27:54.774Z","updated_at":"2026-02-02T03:02:47.476Z","avatar_url":"https://github.com/ruuda.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hanson\n\nHanson is a [prediction market][prediction-market] app.\n\n * Self-hosted, free and open-source software.\n * No real money, users trade virtual internet points.\n * Designed for running internal prediction markets in organizations.\n\n\u003e [!TIP]\n\u003e While Hanson development stalled, [Predict-o-matic][predictomatic] by the same\n\u003e author did reach the MVP stage, and is usable for internal prediction markets!\n\n[predictomatic]: https://github.com/chorusone/predictomatic\n\n**Vaporware warning**: Hanson is under development and not yet in a state where\nit is useful. I will likely lose interest in it before it reaches that stage.\n\n## Getting started\n\nSee [the development guide][docs-dev] for a detailed guide for how to run and\ndevelop Hanson locally. The gist of it is:\n\nEnter a development environment with [Nix][nix] [≥2.11][nix-2.11]:\n\n    nix develop --command $SHELL\n\nRun the initial database setup:\n\n    tools/run_postgres.py --force-init run/db_dev\n\n    # In a different terminal:\n    export PGHOST=\"$PWD/run/db_dev\"\n    tools/migrate.py setup\n    tools/migrate.py migrate latest\n\n    # Now you can Ctrl+C the postgres instance in the other terminal.\n\nRun the app in development mode:\n\n    overmind start\n\nBy default, Flask will listen on `http://localhost:5000`. Then create yourself\na few users, and give them some points to spend:\n\n    ./cli.py add-user etyrell   \"Eldon Tyrell\"\n    ./cli.py add-user lkowalski \"Leon Kowalski\"\n    ./cli.py add-user rbatty    \"Roy Batty\"\n    ./cli.py add-user rdeckard  \"Rick Deckard\"\n    ./cli.py airdrop 25.0\n\nHanson intends to outsource authentication to a third-party identity provider,\nso there is no authentication step for development, you can sign in with only\nthe username.\n\n[docs-dev]:          https://docs.ruuda.nl/hanson/development/\n[nix-2.11]:          https://releases.nixos.org/?prefix=nix/nix-2.11.0/\n[nix]:               https://nixos.org/\n[prediction-market]: https://en.wikipedia.org/wiki/Prediction_market\n\n## To do\n\n * Add a vacuum daemon because autovacuum doesn’t run on insert-only tables.\n * Add the ability to freeze a market, to prevent insider trading by the people\n   who have control over the resolution.\n * Add a way for anybody to contribute an outcome (in the case of categorical\n   outcomes), so markets can be used somewhat like open-answer polls.\n\n## License\n\nHanson is licensed under the [Apache 2.0][apache2] license. Please do not open\nan issue if you disagree with the choice of license.\n\n[apache2]: https://www.apache.org/licenses/LICENSE-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruuda%2Fhanson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruuda%2Fhanson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruuda%2Fhanson/lists"}