{"id":16321585,"url":"https://github.com/joselion/lynxts","last_synced_at":"2025-03-20T22:31:17.788Z","repository":{"id":185777020,"uuid":"666632491","full_name":"JoseLion/lynxts","owner":"JoseLion","description":"Lynx.ts is a TypeScript-first, lightning fast form provider for React.js and React Native","archived":false,"fork":false,"pushed_at":"2024-07-10T07:13:04.000Z","size":8991,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-16T15:11:51.366Z","etag":null,"topics":["form","react-dom","react-native","reactjs","typescript","validation","yup","zod"],"latest_commit_sha":null,"homepage":"https://joselion.gitbook.io/lynx.ts/","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/JoseLion.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"JoseLion"}},"created_at":"2023-07-15T04:05:23.000Z","updated_at":"2025-03-05T11:02:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"3714979c-4c51-450b-9200-d4cde08f3c5b","html_url":"https://github.com/JoseLion/lynxts","commit_stats":{"total_commits":38,"total_committers":1,"mean_commits":38.0,"dds":0.0,"last_synced_commit":"c7f4faffa83af57c46a9944f1f1e11103e4e6ac6"},"previous_names":["joselion/lynxts"],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoseLion%2Flynxts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoseLion%2Flynxts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoseLion%2Flynxts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoseLion%2Flynxts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JoseLion","download_url":"https://codeload.github.com/JoseLion/lynxts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244085009,"owners_count":20395523,"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":["form","react-dom","react-native","reactjs","typescript","validation","yup","zod"],"created_at":"2024-10-10T22:48:16.288Z","updated_at":"2025-03-20T22:31:17.098Z","avatar_url":"https://github.com/JoseLion.png","language":"TypeScript","funding_links":["https://github.com/sponsors/JoseLion"],"categories":[],"sub_categories":[],"readme":"[![CI](https://github.com/JoseLion/lynxts/actions/workflows/ci.yml/badge.svg)](https://github.com/JoseLion/lynxts/actions/workflows/ci.yml)\n[![CodeQL](https://github.com/JoseLion/lynxts/actions/workflows/codeql.yml/badge.svg)](https://github.com/JoseLion/lynxts/actions/workflows/codeql.yml)\n[![Release](https://github.com/JoseLion/lynxts/actions/workflows/release.yml/badge.svg)](https://github.com/JoseLion/lynxts/actions/workflows/release.yml)\n[![NPM Core version](https://img.shields.io/npm/v/@lynxts/core?logo=npm\u0026label=core)](https://www.npmjs.com/package/@lynxts/core)\n[![NPM Native version](https://img.shields.io/npm/v/@lynxts/native?logo=npm\u0026label=native)](https://www.npmjs.com/package/@lynxts/native)\n[![NPM Web version](https://img.shields.io/npm/v/@lynxts/web?logo=npm\u0026label=web)](https://www.npmjs.com/package/@lynxts/web)\n[![GitHub Release Date](https://img.shields.io/github/release-date/JoseLion/lynxts)](https://github.com/JoseLion/lynxts/releases)\n[![Known Vulnerabilities](https://snyk.io/test/github/JoseLion/lynxts/badge.svg)](https://snyk.io/test/github/JoseLion/lynxts)\n\n\u003cimg alt=\"Lynx.ts Logo\" src=\"https://github.com/JoseLion/lynxts/blob/main/docs/assets/lynxts-logo%40512x512.png?raw=true\" width=\"128\"\u003e\n\n# Lynx.ts\n\nTypeScript-first, lightning fast Forms for React.js and React Native.\n\n## How it works\n\nLynx.ts is a [React Context](https://react.dev/learn/passing-data-deeply-with-context) based Form Provider. However, thanks to the brilliant [use-context-selector](https://github.com/dai-shi/use-context-selector) the re-renders caused by changes in the context are drastically reduced. The `use-context-selector` hook implements [React's RFC context selector](https://github.com/reactjs/rfcs/pull/119) in user land, this way we can specifically select what we need from the context and avoid unnecessary re-renders when unused parts of the context change.\n\nBeing a TypeScript-first library, you'll find type-safety on every turn: validation, simple/array/nested fields, form submision, etc. The codebase also follows a [full memoization principle](https://attardi.org/why-we-memo-all-the-things/), which makes Lynx.ts fast and performant on small or big projects.\n\n## Compatibility\n\nLynx.ts is based on context and hooks, so you'll need a minimun version of `v16.8.0` on React.js. TypeScript is not necessary to use it, it works on plain JavaScript too! However, TS will give you a better dev experience and static check safety, so it's recommended.\n\n## Usage\n\nLynx.ts is split three packages for convinience:\n\n- **[@lynxts/core](./packages/core/README.md):** Main functionalities, can be used in any kind of React.js environment.\n- **[@lynxts/native](./packages/native/README.md):** React Native specific abstractions and helpers.\n- **[@lynxts/web](./packages/web/README.md):** DOM specific abstractions and helpers.\n\nCheck each package documentation for more details on how to use them.\n\n## Design and next steps\n\nValidation is a crutial part of forms in most cases. For Lynx.ts validation is always required, but because it can be a whole project out on its own, validation is supported through 3rd-party libraries. Both [Yup](https://github.com/jquense/yup) and [Zod](https://zod.dev/) schemas are supported out-of-the-box, but you can use any other library by just implementing an `Adapter\u003cT\u003e` which tells the form how to validate the schema. Check the Core package documentation for more details on [custom validation adapters](./packages/core/README.md#validation-adapters). In the remote case you don't need to validate your forms, we provide a `noValidate()` adapter which you can use as well.\n\nErrors are present only if the **field was touched or the form submitted**. Adding other behaviors to how errors show will be based on requests and their use cases. Feel free to open an issue and share yours!\n\n## Something's missing?\n\nSuggestions are always welcome! Please create an [issue](https://github.com/JoseLion/lynxts/issues/new) describing the request, feature, or bug. We'll try to look into it as soon as possible 🙂\n\n## Contributions\n\nContributions are very welcome! To do so, please fork this repository and open a Pull Request to the `main` branch.\n\n## License\n\n[MIT License](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoselion%2Flynxts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoselion%2Flynxts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoselion%2Flynxts/lists"}