{"id":26301968,"url":"https://github.com/seraprogrammer/ezi","last_synced_at":"2026-01-29T18:46:10.477Z","repository":{"id":281611482,"uuid":"945815141","full_name":"seraprogrammer/ezi","owner":"seraprogrammer","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-10T07:08:27.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T08:22:54.765Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/seraprogrammer.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":"2025-03-10T07:03:47.000Z","updated_at":"2025-03-10T07:08:31.000Z","dependencies_parsed_at":"2025-03-10T08:32:59.536Z","dependency_job_id":null,"html_url":"https://github.com/seraprogrammer/ezi","commit_stats":null,"previous_names":["seraprogrammer/ezi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seraprogrammer%2Fezi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seraprogrammer%2Fezi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seraprogrammer%2Fezi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seraprogrammer%2Fezi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seraprogrammer","download_url":"https://codeload.github.com/seraprogrammer/ezi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243695537,"owners_count":20332629,"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":"2025-03-15T07:17:44.206Z","updated_at":"2026-01-29T18:46:10.433Z","avatar_url":"https://github.com/seraprogrammer.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dynamic Router\n\nA lightweight, client-side dynamic routing system using Ezi.js. This project\nprovides seamless navigation with smooth transitions, loading indicators, and a\nclean syntax for defining routes.\n\n## Features\n\n- **Dynamic Routing**: Load different templates based on the URL.\n- **Smooth Page Transitions**: Fade-in effect for better user experience.\n- **Loading Indicator**: Displays a progress bar when navigating.\n- **404 Handling**: Custom 404 page for undefined routes.\n- **Dark Mode Toggle**: Simple theme switcher in the settings page.\n\n## Installation\n\nNo installation required. Just include Ezi.js from a CDN:\n\n```html\n\u003cscript src=\"//unpkg.com/ezi\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\n### HTML Structure\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n  \u003chead\u003e\n    \u003cmeta charset=\"UTF-8\" /\u003e\n    \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" /\u003e\n    \u003ctitle\u003eDynamic Router\u003c/title\u003e\n    \u003cscript src=\"//unpkg.com/ezi\"\u003e\u003c/script\u003e\n    \u003cstyle\u003e\n      .active {\n        color: #ff5733;\n        font-weight: bold;\n      }\n      .loading {\n        position: fixed;\n        top: 0;\n        left: 0;\n        width: 100%;\n        height: 3px;\n        background: linear-gradient(to right, #ff5733, #ffc300);\n        transform: scaleX(0);\n        transform-origin: left;\n        transition: transform 0.3s ease;\n      }\n      .loading.active {\n        transform: scaleX(1);\n      }\n      .fade-enter {\n        opacity: 0;\n        transform: translateY(10px);\n      }\n      .fade-enter-active {\n        opacity: 1;\n        transform: translateY(0);\n        transition: opacity 0.3s, transform 0.3s;\n      }\n    \u003c/style\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003cdiv id=\"loading-bar\" class=\"loading\"\u003e\u003c/div\u003e\n    \u003cnav\u003e\n      \u003ca href=\"\" data-nav\u003eHome\u003c/a\u003e\n      \u003ca href=\"about\" data-nav\u003eAbout\u003c/a\u003e\n      \u003ca href=\"contact\" data-nav\u003eContact\u003c/a\u003e\n      \u003ca href=\"settings\" data-nav\u003eSettings\u003c/a\u003e\n      \u003ca href=\"404\" data-nav\u003e404\u003c/a\u003e\n    \u003c/nav\u003e\n    \u003ctemplate route=\"\"\u003e\n      \u003ch1\u003eWelcome Home\u003c/h1\u003e\n      \u003cp\u003eThis is the home page\u003c/p\u003e\n    \u003c/template\u003e\n    \u003ctemplate route=\"about\"\u003e\n      \u003ch1\u003eAbout Us\u003c/h1\u003e\n      \u003cp\u003eLearn more about our company\u003c/p\u003e\n    \u003c/template\u003e\n    \u003ctemplate route=\"contact\"\u003e\n      \u003ch1\u003eContact Us\u003c/h1\u003e\n      \u003cform id=\"contact-form\"\u003e\n        \u003cinput type=\"text\" placeholder=\"Name\" required /\u003e\n        \u003cinput type=\"email\" placeholder=\"Email\" required /\u003e\n        \u003cbutton type=\"submit\"\u003eSend\u003c/button\u003e\n      \u003c/form\u003e\n    \u003c/template\u003e\n    \u003ctemplate route=\"settings\"\u003e\n      \u003ch1\u003eSettings\u003c/h1\u003e\n      \u003cdiv\u003e\n        \u003clabel\u003e\n          Dark Mode\n          \u003cinput type=\"checkbox\" id=\"theme-toggle\" /\u003e\n        \u003c/label\u003e\n      \u003c/div\u003e\n    \u003c/template\u003e\n    \u003ctemplate route=\"404\"\u003e\n      \u003ch1\u003e404 - Page Not Found\u003c/h1\u003e\n      \u003cp\u003eSorry, the page you're looking for doesn't exist.\u003c/p\u003e\n      \u003ca href=\"\" data-nav\u003eGo Home\u003c/a\u003e\n    \u003c/template\u003e\n    \u003cdiv id=\"root\"\u003e\u003c/div\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\n## How It Works\n\n- Clicking navigation links updates the URL and dynamically loads the respective\n  template.\n- The `data-nav` attribute enables navigation without full page reloads.\n- A loading indicator (`#loading-bar`) provides visual feedback.\n- The `fade-enter` and `fade-enter-active` classes create smooth transitions.\n\n## License\n\nThis project is open-source and available under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseraprogrammer%2Fezi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseraprogrammer%2Fezi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseraprogrammer%2Fezi/lists"}