{"id":26657858,"url":"https://github.com/nfdz/faketerminal","last_synced_at":"2025-04-11T13:07:46.904Z","repository":{"id":44342951,"uuid":"210210180","full_name":"nfdz/FakeTerminal","owner":"nfdz","description":"Interactive terminal with fake commands and data made with Flutter","archived":false,"fork":false,"pushed_at":"2023-02-20T21:51:14.000Z","size":7350,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T09:16:52.749Z","etag":null,"topics":["dart","flutter","terminal","webapps"],"latest_commit_sha":null,"homepage":"https://faketerminal.nfdz.io","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nfdz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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,"zenodo":null}},"created_at":"2019-09-22T20:30:42.000Z","updated_at":"2024-11-06T00:51:39.000Z","dependencies_parsed_at":"2025-04-11T13:04:58.192Z","dependency_job_id":null,"html_url":"https://github.com/nfdz/FakeTerminal","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfdz%2FFakeTerminal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfdz%2FFakeTerminal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfdz%2FFakeTerminal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfdz%2FFakeTerminal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nfdz","download_url":"https://codeload.github.com/nfdz/FakeTerminal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248404353,"owners_count":21097717,"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":["dart","flutter","terminal","webapps"],"created_at":"2025-03-25T09:16:57.210Z","updated_at":"2025-04-11T13:07:46.880Z","avatar_url":"https://github.com/nfdz.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp\u003e\n  \u003ca href=\"https://faketerminal.nfdz.io\"\u003e\n    \u003cimg src=\"dev/terminal_icon.png?raw=true\" alt=\"Fake Terminal\" width=\"120\" height=\"120\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# Fake Terminal\n\n\u003cp align=\"left\"\u003e\n  \u003ca href=\"https://github.com/nfdz/FakeTerminal/actions/workflows/ci.yml\"\u003e\n    \u003cimg alt=\"build and test status\" src=\"https://github.com/nfdz/FakeTerminal/actions/workflows/ci.yml/badge.svg\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\nInteractive terminal with fake commands and data made with Flutter.\n\n## Why?\n\nThis terminal is a fun way to communicate information in a different, fun, familiar and relaxed way.\n\nThis is also a playground. Where we can test Flutter \u0026 Dart, testing the framework and language updates, new libraries, platforms, design patterns, testing strategies, CI/CD, and so on.\n\nThe application tries to simulate a classic terminal with a Bash shell on a Linux machine. In order to give the user this feeling, it implements a set of typical commands that every terminal user has ever used: `cat`, `ls`, `man`, and so on.\n\n## How to use?\n\n1. Fork this repository.\n2. Edit `terminal_texts.dart`. This contains the texts localized in English that the application needs to work.\n3. Edit `fake_data.json`. This is a JSON file that contains a set of `fake_files` and `fake_commands`.\n  - Fake file model. The content of the file can be directly in the JSON by using `content`. \n  Or it can be in a remote by using `content_url`, and the HTTP client will try to GET the data from this URL.\n```json\n{\n  \"name\": \"name-of-the-file\",\n  \"content_url\": \"url-to-the-content\"\n}\n```\n```json\n{\n  \"name\": \"name-of-the-file\",\n  \"content\": \"The content\"\n}\n```\n  - Fake command model. It has the following fields:\n    - `name`: It will launch the execution.\n    - `description`: It is used by `help` and `man` to compose the command information.\n    - `default_argument`: It is the argument that will be executed when the user did not provide one.\n    - `arguments`: Set of arguments. Each argument has a `name`, `description`, and `output`/`output_url`. As with the file, the information can be in the file or remotely.\n\n```json\n{\n  \"name\": \"name-of-the-command\",\n  \"description\": \"This is the description\",\n  \"default_argument\": \"default\",\n  \"arguments\": [\n      {\n          \"name\": \"default\",\n          \"description\": \"Default argument\",\n          \"output\": \"The output\"\n      },\n      {\n          \"name\": \"other-argument\",\n          \"description\": \"Other argument\",\n          \"output_url\": \"url-to-the-output\"\n      }\n  ]\n}\n```\n\n## Dependencies\n\n- \u003ca href=\"https://github.com/rrousselGit/river_pod\" target=\"_blank\"\u003eRiverpod\u003c/a\u003e: A simple way to access state from anywhere in your application while robust and testable.\n- \u003ca href=\"https://github.com/flutter/plugins/tree/master/packages/shared_preferences/shared_preferences\" target=\"_blank\"\u003eShared preferences\u003c/a\u003e: Flutter plugin for reading and writing simple key-value pairs.\n- \u003ca href=\"https://github.com/TechnoUrmish/Sizer\" target=\"_blank\"\u003eSizer\u003c/a\u003e: A Flutter plugin for easily make apps responsive.\n- \u003ca href=\"https://github.com/dart-lang/mockito\" target=\"_blank\"\u003eMockito\u003c/a\u003e: A mock framework inspired by Mockito with APIs for Fakes, Mocks, behavior verification, and stubbing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnfdz%2Ffaketerminal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnfdz%2Ffaketerminal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnfdz%2Ffaketerminal/lists"}