{"id":29814445,"url":"https://github.com/wgross/treestore","last_synced_at":"2025-07-28T19:17:44.943Z","repository":{"id":147302022,"uuid":"236485121","full_name":"wgross/TreeStore","owner":"wgross","description":"A powershell file system provider for storing simple structured data","archived":false,"fork":false,"pushed_at":"2023-02-24T16:39:28.000Z","size":970,"stargazers_count":6,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2023-10-20T23:47:39.300Z","etag":null,"topics":["powershell","powershell-module","psdrive","treestore"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wgross.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}},"created_at":"2020-01-27T12:25:09.000Z","updated_at":"2023-10-20T23:47:43.188Z","dependencies_parsed_at":null,"dependency_job_id":"ba7aee61-c0fa-42ee-9ce8-4e4e1d46b33f","html_url":"https://github.com/wgross/TreeStore","commit_stats":null,"previous_names":[],"tags_count":6,"template":null,"template_full_name":null,"purl":"pkg:github/wgross/TreeStore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wgross%2FTreeStore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wgross%2FTreeStore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wgross%2FTreeStore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wgross%2FTreeStore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wgross","download_url":"https://codeload.github.com/wgross/TreeStore/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wgross%2FTreeStore/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267571218,"owners_count":24109383,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"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":["powershell","powershell-module","psdrive","treestore"],"created_at":"2025-07-28T19:17:39.993Z","updated_at":"2025-07-28T19:17:44.910Z","avatar_url":"https://github.com/wgross.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TreeStore\nA powershell file system for storing simple structured data. Implementation of the file system provider relies heavily on an extended fork of [beefarinos p2f framework](https://github.com/beefarino/p2f). The fork can be found [here](https://github.com/wgross/p2f). \n\n## Installation\nInstall from PSGallery as an Administrator\n```powershell\nInstall-Module TreeStore \n```\nThe module project targets netstandard 2.0 and is therefore compatible with PowerShell 5 and PowerShell Core.\n\n## Create a TreeStore file system.\nTreeStore provides its own Ccmdlet to create PSDrives for convenience. You can achive the same with New-PsDrive but filling the cmdlet-arguments is more straightforward using the custom cmdlet.\n\nCreate non-persistent (in memory) drive:\n```powershell\nImport-Module TreeStore\nNew-TreeStoreDrive -Name tree\ncd tree:\n```\nCreate a persistent drive based on a LiteDb database.\n```powershell\nImport-Module TreeStore\nNew-TreeStoreDrive -Name tree -TreeStorePath \"c:\\tmp\\data.db\"\ncd tree:\n```\n[more about TreeStore drives...](https://github.com/wgross/TreeStore/wiki/New-TreeStoreDrive)\n\n## Create a Tag\nA Tag defines a simple data structure composed of uniquely named properties. The name of the tag is also unique. To create Tag just create a new item in directory /Tags.\n```powershell\nNew-Item \\Tags\\example_tag\n```\n### Create a Facet Property\nTo add facet properties to a tag just create a new item under the tag.\nThe name must be unique within the Tag. For any property a data type has to be provided.\n```powershell\nNew-Item \\Tags\\example_tag -Name example_property -ValueType Long\n```\nSupported property types are: Bool, DateTime, Decimal, Double, Guid, Long, String. Properties can be renamed or copyed/moved to another tag or removed from a tag with approriate powershell item cmdlets. Since facet properties can exist only with in a tag destinations outside of a tag are not allowed for copying or moving\n\n[more about Tags and Facet Properties...](https://github.com/wgross/TreeStore/wiki/Tags)\n\n## Create an Entity\nAn entity is the main item of a TreeStore file system. All entities are stored under the \\Entities folder.\n```powershell\nNewItem \\Entities\\example_entity\n```\n[more about Entities...](https://github.com/wgross/TreeStore/wiki/Entities)\n\n## Assign Tag to an Entity\nTo assign a Tag 't' to an existing entity 'e' just create a new item named like a tag under the entity:\n```powershell\nNew-Item \\Entities\\example_entity -Name example_tag\n```\nNow properties defined by the Tag can be filled with values. If the name of the tag isn't found in the \\Tags folder the operation will fail.\n\n## Set/Get value of an Entities Facet Property\nA value can be assigned with the Set-ItemProperty cmdlet:\n```powershell\nSet-ItemProperty -Path \\Entities\\example_entity\\example_tag -Name example_property -Value 1\n```\nThe value can be read again using:\n```powershell\nGet-ItemPropertyValue -Path \\Entities\\example_entity\\example_tag -Name example_property\n\n1\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwgross%2Ftreestore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwgross%2Ftreestore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwgross%2Ftreestore/lists"}