{"id":22897972,"url":"https://github.com/jonath-z/decentralized-bot","last_synced_at":"2025-04-15T03:05:50.878Z","repository":{"id":207607741,"uuid":"719666223","full_name":"Jonath-z/Decentralized-bot","owner":"Jonath-z","description":"Dai is a decentralized AI chatbot built on ICP, using chapt completion feature from open ai","archived":false,"fork":false,"pushed_at":"2024-03-24T14:26:13.000Z","size":901,"stargazers_count":2,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T03:05:45.044Z","etag":null,"topics":["ai","chatbot","chatgpt-api","decentralized-applications","icp"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jonath-z.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-16T16:42:45.000Z","updated_at":"2025-01-11T11:37:46.000Z","dependencies_parsed_at":"2024-03-01T15:26:29.525Z","dependency_job_id":"7c7426fc-ebb7-46eb-b421-f57318129d4d","html_url":"https://github.com/Jonath-z/Decentralized-bot","commit_stats":null,"previous_names":["jonath-z/dai","jonath-z/decentralized-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jonath-z%2FDecentralized-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jonath-z%2FDecentralized-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jonath-z%2FDecentralized-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jonath-z%2FDecentralized-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jonath-z","download_url":"https://codeload.github.com/Jonath-z/Decentralized-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248997086,"owners_count":21195799,"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":["ai","chatbot","chatgpt-api","decentralized-applications","icp"],"created_at":"2024-12-14T00:20:21.866Z","updated_at":"2025-04-15T03:05:50.862Z","avatar_url":"https://github.com/Jonath-z.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **Dai - Decentralized AI Chatbot on ICP**\n\nDai is a decentralized AI chatbot built on the Internet Computer Protocol (ICP). This README provides guidance on setting up and running the application.\n\n## **Setup**\n\n### **Frontend Canister**\n\n### Setup\n\nAfter setting up the frontend credentials, ensure that you have the **`dfx`** command-line tool installed on your computer. Check its version with the following command:\n\n```bash\ndfx --version\n\n```\n\nNote: The version of `dfx` should be `0.15.0`\n\nIf you don't have it installed, follow the instructions in the [ICP SDK installation guide](https://internetcomputer.org/docs/current/developer-docs/setup/install#installing-the-ic-sdk-1).\n\nFor a smooth deployment, follow the [Azle installation documentation](https://demergent-labs.github.io/azle/installation.html#build-dependencies).\n\n## **Install Dependencies**\n\nTo install project dependencies, run the following command:\n\n```bash\nnpm install\n```\n\n## **Run the App Locally**\n\nBefore running the app locally, start the local replica with the following command:\n\n```sh\ndfx start --clean\n```\n\nTo run the app locally, ensure that **`dfx`** (Internet Computer CDK) is installed and running. Execute the following command in another terminal window without closing the replica:\n\n```sh\ndfx deploy\n\n```\n\nThis command deploys both the frontend and backend canisters to your local network. However, you can also deploy them separately.\n\n## **Preview the Deployment**\n\nAfter deployment, you can access the local preview of the app using the links provided in **green**:\n\n```bash\n\nFrontend canister via browser dfinity_js_frontend: http://127.0.0.1:4943/?canisterId=bd3sg-teaaa-aaaaa-qaaba-cai\nBackend canister via Candid interface dfinity_js_backend: http://127.0.0.1:4943/?canisterId=br5f7-7uaaa-aaaaa-qaaca-cai\u0026id=bkyz2-fmaaa-aaaaa-qaaaq-cai\ninternet_identity: http://127.0.0.1:4943/?canisterId=br5f7-7uaaa-aaaaa-qaaca-cai\u0026id=be2us-64aaa-aaaaa-qaabq-cai\n\n```\n\n## **Separate Deployment**\n\nYou can deploy individual parts of the app separately:\n\n- Deploy only the backend:\n\n```sh\ndfx deploy dfinity_js_backend\n```\n\n- Deploy only the frontend:\n\n```sh\ndfx deploy dfinity_js_frontend\n\n```\n\n- Test the frontend locally:\n\n```sh\nnpm start\n```\n\n## **Troubleshooting**\n\nIf you encounter any issues, refer to this [documentation](https://demergent-labs.github.io/azle/deployment.html#common-deployment-issues) or reach out to [me](https://github.com/Jonath-z).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonath-z%2Fdecentralized-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonath-z%2Fdecentralized-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonath-z%2Fdecentralized-bot/lists"}