{"id":19142504,"url":"https://github.com/eldoy/hyperaktiv","last_synced_at":"2025-09-11T12:34:05.078Z","repository":{"id":139868197,"uuid":"493454649","full_name":"eldoy/hyperaktiv","owner":"eldoy","description":"Reactive data structures based on proxies","archived":false,"fork":false,"pushed_at":"2022-05-18T12:29:42.000Z","size":147,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-03T15:29:04.452Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/eldoy.png","metadata":{"files":{"readme":"README.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}},"created_at":"2022-05-18T00:27:00.000Z","updated_at":"2022-06-04T21:48:46.000Z","dependencies_parsed_at":"2024-08-01T10:19:09.580Z","dependency_job_id":null,"html_url":"https://github.com/eldoy/hyperaktiv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Fhyperaktiv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Fhyperaktiv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Fhyperaktiv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Fhyperaktiv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eldoy","download_url":"https://codeload.github.com/eldoy/hyperaktiv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240223771,"owners_count":19767631,"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-09T07:27:26.790Z","updated_at":"2025-02-22T19:22:13.651Z","avatar_url":"https://github.com/eldoy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hyperactiv\n\nReactive data structures based on proxies.\n\nThis is a fork of the [hyperactiv](https://github.com/elbywan/hyperactiv) reactive library.\n\n### Install\n\n```\nnpm i hyperaktiv\n```\n\n### Usage\n\n**Observe**\n```js\n/**\n * @typedef {Object} Options - Observe options.\n * @property {string[]} [prop] - Observe only the properties listed.\n * @property {string[]} [ignore] - Ignore the properties listed.\n * @property {boolean | number} [batch] -\n *  Batch computed properties calls, wrapping them in a setTimeout and\n *  executing them in a new context and preventing excessive calls.\n *  If batch is an integer greater than zero, the calls will be debounced by the value in milliseconds.\n * @prop {number} [deep] - Recursively observe nested objects and when setting new properties.\n * @prop {number} [bind] - Automatically bind methods to the observed object.\n */\n\n/**\n * Observes an object or an array and returns a proxified version which reacts on mutations.\n *\n * @template O\n * @param {O} obj - The object to observe.\n * @param {Options} options - Options\n * @returns {O} - A proxy wrapping the object.\n */\n```\n\n**Computed**\n```js\n/**\n * @typedef {Object} ComputedArguments - Computed Arguments.\n * @property {(fun: () =\u003e void) =\u003e void} computeAsync -\n * Will monitor the dependencies of the function passed as an argument. Useful when dealing with asynchronous computations.\n */\n\n/**\n * @typedef {Object} Options - Computed Options.\n * @property {boolean} [autoRun] -\n * If false, will not run the function argument when calling computed(function).\n * The computed function must be called **at least once** to calculate its dependencies.\n * @property {() =\u003e void} [callback] -\n * Specify a callback that will be re-runned each time a dependency changes instead of the computed function.\n */\n\n/**\n * Wraps a function and captures observed properties which are accessed during the function execution.\n * When those properties are mutated, the function is called to reflect the changes.\n *\n * @param {(args: ComputedArguments) =\u003e void} wrappedFunction\n * @param {Options} options\n */\n```\n\n**Dispose**\n```js\n/**\n* Will remove the computed function from the reactive Maps (the next time an bound observer property is called) allowing garbage collection.\n*\n* @param {Function} computedFunction\n*/\n```\n\n\nMIT licensed. Enjoy!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldoy%2Fhyperaktiv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feldoy%2Fhyperaktiv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldoy%2Fhyperaktiv/lists"}