{"id":23189571,"url":"https://github.com/champii/pi","last_synced_at":"2025-04-05T06:13:01.157Z","repository":{"id":24210080,"uuid":"27601798","full_name":"Champii/Pi","owner":"Champii","description":"Pi oriented cloud","archived":false,"fork":false,"pushed_at":"2016-10-07T12:52:13.000Z","size":2825,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-02-10T13:43:55.141Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"trufflesuite/truffle","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Champii.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-05T17:15:11.000Z","updated_at":"2016-10-07T12:52:15.000Z","dependencies_parsed_at":"2022-07-10T10:32:37.183Z","dependency_job_id":null,"html_url":"https://github.com/Champii/Pi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Champii%2FPi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Champii%2FPi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Champii%2FPi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Champii%2FPi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Champii","download_url":"https://codeload.github.com/Champii/Pi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247294550,"owners_count":20915340,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-12-18T11:20:05.370Z","updated_at":"2025-04-05T06:13:01.130Z","avatar_url":"https://github.com/Champii.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Pi\n==\n\nPi oriented cloud\n\n# ABANDONED\n\n## Concept\n\nTry to store raw files into Pi number, in a cloud with distributed client computing.\n\nPowered by [Nodulator](https://github.com/Champii/Nodulator)\n\nIdea inspirated from [piFS](https://github.com/philipl/pifs)\n\n___\n## Features\n\n- Authentication\n- File upload\n- Personnal directory structure\n- FileCluster (file oriented cluster)\n- Distributed PI lookup for file parts\n- Cache system\n\n___\n## Jump To\n\n- [Installation](#installation)\n- [Download PI](#download-pi)\n- [Configuration](#configuration)\n- [Scripts](#scripts)\n- [Contributors](#contributors)\n- [TODO](#todo)\n\n___\n## Installation\n\nYou will need some PI files, check [Download PI](#download-pi) section\n\nYou also need a Redis server to manage sessions and to store some cache.\n\nFor debian oriented Linux:\n```\n$\u003e sudo apt-get install redis-server\n```\n\nThen just run :\n```\n$\u003e npm install\n$\u003e coffee main.coffee\n```\n\n___\n## Download PI\n\nYou will need [y-cruncher](http://www.numberworld.org/y-cruncher/) to extract PI digits.\n\nYou can refer to the [Scripts](#scripts) section to use premade scripts to download and extract Pi from [http://fios.houkouonchi.jp:8080/pi](http://fios.houkouonchi.jp:8080/pi/Pi%20-%20Hex%20-%20Chudnovsky/) in hexadecimal form.\n\nOr you can do it manualy by downloading Pi [here](http://fios.houkouonchi.jp:8080/pi/Pi%20-%20Hex%20-%20Chudnovsky/) (12Go per file, in a compressed form) and by extracting it using y-cruncher `Digit Viewer` tool.\n\n#####Warning : If you want to download and extract the `Nth` PI file, you will need to download each `N - 1` part before.\n\n\n___\n## Configuration\n\nYou have to provide a path where to find Pi file parts and where to store HashTables for `Production` and `Common` environnements.\n\nYou also have to specify Pi file parts size (`piPartSize`), and the size of Pi samples sent to client (`piPartSlice`)\n\n```\nhashsPath: \"/data/prog/js/Pi/server/storage/hashs/\",\npiPath: \"/data/prog/js/Pi/server/storage/pi/\",\n\npiPartSize:  12500000000,\npiFileSlice: 12500000,\n\nredis: {\n  host: \"127.0.0.1\",\n  port: 6379\n}\n```\n\nYou can run desired environnement by calling for exemple:\n\n`$\u003e NODE_ENV=production coffee main.coffee`\n\nBy default, it runs `Common` env.\n\n___\n## Scripts\n\nThere is two scripts to download and extract PI digits:\n\n`scripts/downloadPi.sh`\n`scripts/compilePi.sh`\n\nYou have to customize both, in order to set correct paths for destination folders.\n\nUsage :\n\n`$\u003e ./scripts/downloadPi.sh [partStart, [partStop]]`\n\nIf you don't specify any arguments, it will lookup into your `$DEST` folder for existing parts, resume a download if any, or start downloading next part.\n\n`$\u003e ./scripts/compilePi.sh [partStart, [partStop]]`\n\nIf you don't specify any arguments, it will lookup into your `$DEST` folder for previously extracted parts, and start extracting next part.\n\nFor both, you can specify a `partStart`, and a `partStop` to avoid the script to download/extract 6To of PI.\n\n___\n## TODO\n\n- Upload status\n- Try to hash indexes\n- Haskell worker\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchampii%2Fpi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchampii%2Fpi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchampii%2Fpi/lists"}