{"id":16601928,"url":"https://github.com/ecmel/refable-light","last_synced_at":"2025-12-05T00:04:49.549Z","repository":{"id":142652107,"uuid":"613863810","full_name":"ecmel/refable-light","owner":"ecmel","description":"Lighter version of Refable.","archived":false,"fork":false,"pushed_at":"2024-01-29T08:10:05.000Z","size":70,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-17T07:45:01.068Z","etag":null,"topics":["framework","npm-package"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/refable-light","language":"TypeScript","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/ecmel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"ecmel","custom":"https://www.buymeacoffee.com/ecmel"}},"created_at":"2023-03-14T12:28:00.000Z","updated_at":"2024-10-18T02:56:18.000Z","dependencies_parsed_at":"2024-01-03T21:28:11.346Z","dependency_job_id":"ac2f039b-d811-4893-912c-2e2a2fcc1790","html_url":"https://github.com/ecmel/refable-light","commit_stats":null,"previous_names":["ecmel/jcontrol"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecmel%2Frefable-light","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecmel%2Frefable-light/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecmel%2Frefable-light/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecmel%2Frefable-light/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ecmel","download_url":"https://codeload.github.com/ecmel/refable-light/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242650956,"owners_count":20163611,"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":["framework","npm-package"],"created_at":"2024-10-12T00:19:43.741Z","updated_at":"2025-12-05T00:04:49.517Z","avatar_url":"https://github.com/ecmel.png","language":"TypeScript","readme":"# Refable Light\n\nLighter version of [Refable](https://github.com/ecmel/refable)\n\n## Installation\n\n```bash\nnpm install refable-light --save-dev\n```\n\n## Application\n\nApplication is the main class for bootstrapping. Controllers are registered on an application instance. For registering glob of controllers please refer to your bundler's documentation.\n\n```ts\nimport { Application } from \"refable-light\";\nimport Search from \"./controllers/search\";\n\nconst application = new Application();\n\napplication.register(\"search\", Search);\n\napplication.run();\n```\n\n## Controllers\n\nControllers are instances of classes that you register in your application. Each controller class inherits from the Controller base class.\n\n```html\n\u003cdiv data-controller=\"search\"\u003e\u003c/div\u003e\n```\n\n```ts\nimport { Controller } from \"refable-light\";\n\nexport default class extends Controller {\n  created() {\n    //\n  }\n\n  connected() {\n    //\n  }\n\n  disconnected() {\n    //\n  }\n}\n```\n\nController classes are templated so more specific elements can be used if needed.\n\n```ts\nimport { Controller } from \"refable-light\";\n\nexport default class extends Controller\u003cHTMLElement\u003e {\n  //\n}\n```\n","funding_links":["https://github.com/sponsors/ecmel","https://www.buymeacoffee.com/ecmel"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecmel%2Frefable-light","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fecmel%2Frefable-light","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecmel%2Frefable-light/lists"}