{"id":30823216,"url":"https://github.com/arnvjshi/unreactpjs","last_synced_at":"2025-09-11T17:02:24.332Z","repository":{"id":313477286,"uuid":"1050654525","full_name":"arnvjshi/unreactpjs","owner":"arnvjshi","description":"A react framework that isn't like react","archived":false,"fork":false,"pushed_at":"2025-09-05T20:29:13.000Z","size":79,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-06T11:17:07.961Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arnvjshi.png","metadata":{"files":{"readme":"README copy.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-04T18:29:16.000Z","updated_at":"2025-09-05T23:30:28.000Z","dependencies_parsed_at":"2025-09-06T11:17:12.458Z","dependency_job_id":null,"html_url":"https://github.com/arnvjshi/unreactpjs","commit_stats":null,"previous_names":["arnvjshi/unreactpjs"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/arnvjshi/unreactpjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnvjshi%2Funreactpjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnvjshi%2Funreactpjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnvjshi%2Funreactpjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnvjshi%2Funreactpjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arnvjshi","download_url":"https://codeload.github.com/arnvjshi/unreactpjs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnvjshi%2Funreactpjs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274201600,"owners_count":25240318,"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-09-08T02:00:09.813Z","response_time":121,"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":[],"created_at":"2025-09-06T11:02:38.299Z","updated_at":"2025-09-08T14:45:26.372Z","avatar_url":"https://github.com/arnvjshi.png","language":"JavaScript","readme":"# unreact Framework\n\nunreact is a modern JavaScript framework that combines the best features of React and Angular, providing a powerful and flexible environment for building user interfaces. It introduces a unique approach to state management and component communication, allowing for seamless parent-child interactions and a more intuitive development experience.\n\n## Features\n\n- **State Management**: Centralized state management with a simple API for getting, setting, and subscribing to state changes.\n- **Component Lifecycle**: A robust lifecycle management system for components, enabling developers to hook into various stages of a component's life.\n- **Bidirectional Communication**: Facilitates parent-child communication, allowing child components to send data back to their parents, enhancing the interactivity of applications.\n- **Modular Design**: Extensible architecture that allows developers to create and integrate custom modules easily.\n- **Type Safety**: Built with TypeScript, ensuring type safety and better tooling support.\n\n## Installation\n\nTo install unreact, you can use npm:\n\n```bash\nnpm install unreact\n```\n\n## Usage\n\nHere’s a simple example of how to create a component using unreact:\n\n```typescript\nimport { Component } from 'unreact';\n\nclass MyComponent extends Component {\n    constructor() {\n        super();\n        this.state = { count: 0 };\n    }\n\n    increment() {\n        this.setState({ count: this.state.count + 1 });\n    }\n\n    render() {\n        return `\u003cdiv\u003e\n                    \u003cp\u003eCount: ${this.state.count}\u003c/p\u003e\n                    \u003cbutton onclick=\"${this.increment.bind(this)}\"\u003eIncrement\u003c/button\u003e\n                \u003c/div\u003e`;\n    }\n}\n```\n\n## API Reference\n\n### State\n\n- `getState()`: Retrieves the current state.\n- `setState(newState)`: Updates the state and triggers re-renders.\n- `subscribe(callback)`: Subscribes to state changes.\n\n### Component\n\n- `render()`: Renders the component.\n- `componentDidMount()`: Lifecycle method called after the component is mounted.\n- `componentWillUnmount()`: Lifecycle method called before the component is unmounted.\n\n### Communication\n\n- `sendToParent(data)`: Sends data from child to parent component.\n- `receiveFromChild(callback)`: Sets up a listener for data from child components.\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request for any enhancements or bug fixes.\n\n## License\n\nThis project is licensed under the MIT License. See the LICENSE file for details.","funding_links":[],"categories":["Angular-Inspired Solutions"],"sub_categories":["Wrappers"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnvjshi%2Funreactpjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farnvjshi%2Funreactpjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnvjshi%2Funreactpjs/lists"}