{"id":18761645,"url":"https://github.com/reflex-dev/sidebar-template","last_synced_at":"2025-09-01T17:30:39.016Z","repository":{"id":233114230,"uuid":"781166561","full_name":"reflex-dev/sidebar-template","owner":"reflex-dev","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-23T16:53:16.000Z","size":14,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-07T18:17:08.059Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/reflex-dev.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}},"created_at":"2024-04-02T21:41:11.000Z","updated_at":"2024-10-27T08:07:38.000Z","dependencies_parsed_at":"2024-04-14T00:47:10.526Z","dependency_job_id":"9d6aeef5-d4a5-4b69-9db6-46339a972ea1","html_url":"https://github.com/reflex-dev/sidebar-template","commit_stats":null,"previous_names":["reflex-dev/sidebar-template"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reflex-dev%2Fsidebar-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reflex-dev%2Fsidebar-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reflex-dev%2Fsidebar-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reflex-dev%2Fsidebar-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reflex-dev","download_url":"https://codeload.github.com/reflex-dev/sidebar-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231701590,"owners_count":18413419,"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-11-07T18:17:09.239Z","updated_at":"2024-12-29T04:55:15.998Z","avatar_url":"https://github.com/reflex-dev.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Welcome to Reflex!\n\nThis is the base Reflex template - installed when you run `reflex init`.\n\nIf you want to use a different template, pass the `--template` flag to `reflex init`.\nFor example, if you want a more basic starting point, you can run:\n\n```bash\nreflex init --template blank\n```\n\n## About this Template\n\nThis template has the following directory structure:\n\n```bash\n├── README.md\n├── assets\n├── rxconfig.py\n└── {your_app}\n    ├── __init__.py\n    ├── components\n    │   ├── __init__.py\n    │   └── sidebar.py\n    ├── pages\n    │   ├── __init__.py\n    │   ├── dashboard.py\n    │   ├── index.py\n    │   └── settings.py\n    ├── styles.py\n    ├── templates\n    │   ├── __init__.py\n    │   └── template.py\n    └── {your_app}.py\n```\n\nSee the [Project Structure docs](https://reflex.dev/docs/getting-started/project-structure/) for more information on general Reflex project structure.\n\n### Adding Pages\n\nIn this template, the pages in your app are defined in `{your_app}/pages/`.\nEach page is a function that returns a Reflex component.\nFor example, to edit this page you can modify `{your_app}/pages/index.py`.\nSee the [pages docs](https://reflex.dev/docs/pages/routes/) for more information on pages.\n\nIn this template, instead of using `rx.add_page` or the `@rx.page` decorator,\nwe use the `@template` decorator from `{your_app}/templates/template.py`.\n\nTo add a new page:\n\n1. Add a new file in `{your_app}/pages/`. We recommend using one file per page, but you can also group pages in a single file.\n2. Add a new function with the `@template` decorator, which takes the same arguments as `@rx.page`.\n3. Import the page in your `{your_app}/pages/__init__.py` file and it will automatically be added to the app.\n\n\n### Adding Components\n\nIn order to keep your code organized, we recommend putting components that are\nused across multiple pages in the `{your_app}/components/` directory.\n\nIn this template, we have a sidebar component in `{your_app}/components/sidebar.py`.\n\n### Adding State\n\nAs your app grows, we recommend using [substates](https://reflex.dev/docs/substates/overview/)\nto organize your state.\n\nYou can either define substates in their own files, or if the state is\nspecific to a page, you can define it in the page file itself.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freflex-dev%2Fsidebar-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freflex-dev%2Fsidebar-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freflex-dev%2Fsidebar-template/lists"}