{"id":14982773,"url":"https://github.com/nachokhan/pstruc-vscode-extension","last_synced_at":"2026-02-15T03:02:07.474Z","repository":{"id":249879957,"uuid":"832792837","full_name":"nachokhan/pstruc-vscode-extension","owner":"nachokhan","description":"A vscode extension to get the project structure of your current project","archived":false,"fork":false,"pushed_at":"2024-08-25T03:17:48.000Z","size":13725,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-05T20:44:03.757Z","etag":null,"topics":["ia","json","programming","vscode","vscode-extension"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nachokhan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2024-07-23T18:31:13.000Z","updated_at":"2024-08-27T22:54:45.000Z","dependencies_parsed_at":"2024-08-25T03:25:35.830Z","dependency_job_id":"db55e188-dd84-421e-aae9-856007c9a2c7","html_url":"https://github.com/nachokhan/pstruc-vscode-extension","commit_stats":null,"previous_names":["nachokhan/pstruc-vscode-extension"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nachokhan/pstruc-vscode-extension","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nachokhan%2Fpstruc-vscode-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nachokhan%2Fpstruc-vscode-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nachokhan%2Fpstruc-vscode-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nachokhan%2Fpstruc-vscode-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nachokhan","download_url":"https://codeload.github.com/nachokhan/pstruc-vscode-extension/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nachokhan%2Fpstruc-vscode-extension/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29466925,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T01:01:38.065Z","status":"online","status_checked_at":"2026-02-15T02:00:07.449Z","response_time":118,"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":["ia","json","programming","vscode","vscode-extension"],"created_at":"2024-09-24T14:05:59.529Z","updated_at":"2026-02-15T03:02:07.407Z","avatar_url":"https://github.com/nachokhan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pstruc-Extension\n\nWelcome to **pstruc-ext**, the ultimate tool for generating a structured JSON representation of your project's file and directory hierarchy in Visual Studio Code. This extension simplifies the management of complex project structures by creating an easily navigable JSON file.\n\n![VPReview](./images/pstruc_example.gif)\n\n## Features\n\n- **Generate JSON Structure**: Quickly generate a JSON file (`structure.json`) that represents the file and directory hierarchy of your project.\n- **Customizable Ignore Patterns**: Use your own ignore patterns to exclude specific files or directories from the JSON structure.\n- **Efficient Processing**: Automatically replaces directories with their contained files and sorts items for optimal readability.\n- **Easy Integration**: Seamlessly integrates with your existing workflow in Visual Studio Code.\n\n## How to Use\n\n1. **Open Your Project**: Open the project you want to generate a structure for in Visual Studio Code.\n2. **Select Files/Folders**: Select the files and/or folders you want to include in the JSON structure.\n3. **Run the Command**: Open the command palette (`Ctrl+Shift+P` or `Cmd+Shift+P` on Mac) and run `Generate Structure`.\n4. **Copy the JSON File**: Copy the content of `structure.json` (`.pdf` or `.yaml`) file (placed in the root of your workspace).\n5. **Paste it in some LLM**: Paste the `strcutre.json` content together with the prompt indicated inthe next section.\n6. **Ask the LLM any question**: ask for code reviews, new code, docummentation, explanations, etc.\n\n## Suggested PROMPT\n\nYou might change it for your personal interest, but here is a commonly useful prompt:\n\nRole: You are a coding assistant specializing in multiple programming languages. Your primary task is to help users with their coding projects based on a provided project structure in JSON format. This JSON structure will represent the project starting from the root directory, with each 'field' corresponding to a folder or file. Folders may contain subfolders or files, while files either display their content or indicate '(binary)' if they are binary files.\n\nInstructions:\n\n- Always begin by requesting the project structure in JSON format from the user.\n- After receiving the JSON structure, ask the user what specific coding assistance they need.\n- When suggesting code changes, if the modifications affect 15% or less of the original content, avoid returning the entire file. Instead, provide only the relevant changes.\n- If more than 15% of the code is modified, you may return the entire file, function, or relevant section that was altered.\n- Ensure all code names and comments you provide are in English.\n- Maintain a casual and friendly tone to make the interaction easygoing and approachable.\n\n\n## Requirements\n\n- Visual Studio Code version 1.50.0 or higher.\n\n## Extension Settings\n\nThis extension contributes the following settings:\n\n- `pstruc_extension.ignorePatterns`: Array of glob patterns to ignore specific files or directories.\n- `pstruc_extension.hideBinaryContent`: Boolean to hide binary file content by replacing it with \"(binary)\".\n- `pstruc_extension.outputFormat`: Specifies the output format for the generated structure file. The available options are:\n  - `json`: Generates a JSON file (`structure.json`).\n  - `pdf`: Generates a PDF file (`structure.pdf`).\n  - `yaml`: Generates a YAML file (`structure.yaml`).\n\n## Known Issues\n\n- Currently, large projects with many nested directories might take longer to process.\n\n## Release Notes\n\n### 1.0.0\n\n- Initial release of `pstruc-ext`.\n\n### 1.0.1\n\n- Fixed minor bugs.\n\n### 1.0.2\n\n- Added \"Hide binary file's content\" option to replace binary file content with \"(binary)\" in the generated JSON structure. The option is enabled by default.\n- Fixed minor bugs.\n\n### 1.0.5\n\n- Added support to generate the project structure in `pdf` and `yaml` formats in addition to `json`.\n- Code Refactoring\n\n## Enjoy!\n\nWe hope you find `pstruc-ext` useful for managing your project structures. If you have any feedback or suggestions, please open an issue on our [GitHub repository](https://github.com/nachokhan/pstruc-vscode-extension).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnachokhan%2Fpstruc-vscode-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnachokhan%2Fpstruc-vscode-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnachokhan%2Fpstruc-vscode-extension/lists"}