{"id":15436120,"url":"https://github.com/hychen/flutter_js_context","last_synced_at":"2026-04-28T08:39:06.003Z","repository":{"id":56829575,"uuid":"428632384","full_name":"hychen/flutter_js_context","owner":"hychen","description":"Enhances the interoperability between Dart and flutter_js.","archived":false,"fork":false,"pushed_at":"2021-11-24T22:27:25.000Z","size":12,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T07:13:16.958Z","etag":null,"topics":["flutter"],"latest_commit_sha":null,"homepage":"","language":"Dart","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/hychen.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-16T11:43:02.000Z","updated_at":"2021-11-24T22:27:28.000Z","dependencies_parsed_at":"2022-09-02T03:51:34.113Z","dependency_job_id":null,"html_url":"https://github.com/hychen/flutter_js_context","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/hychen/flutter_js_context","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hychen%2Fflutter_js_context","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hychen%2Fflutter_js_context/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hychen%2Fflutter_js_context/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hychen%2Fflutter_js_context/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hychen","download_url":"https://codeload.github.com/hychen/flutter_js_context/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hychen%2Fflutter_js_context/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32373514,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"online","status_checked_at":"2026-04-28T02:00:07.250Z","response_time":56,"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":["flutter"],"created_at":"2024-10-01T18:48:26.063Z","updated_at":"2026-04-28T08:39:05.985Z","avatar_url":"https://github.com/hychen.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\nThis README describes the package. If you publish this package to pub.dev,\nthis README's contents appear on the landing page for your package.\n\nFor information about how to write a good package README, see the guide for\n[writing package pages](https://dart.dev/guides/libraries/writing-package-pages).\n\nFor general information about developing packages, see the Dart guide for\n[creating packages](https://dart.dev/guides/libraries/create-library-packages)\nand the Flutter guide for\n[developing packages and plugins](https://flutter.dev/developing-packages).\n--\u003e\n\nThis package enhances the interoperability between Dart and [flutter_js](https://pub.dev/documentation/flutter_js/latest/).\n\n## Features\n\nUse this package to\n\n- Track which variables are defined.\n- Decode evaluated results that the type is assumed as JSON always.\n- Load JavaScript file properly.\n\n## Getting started\n\n```shell\nflutter pub add flutter_js_context\n```\n\n## Usage\n\n```dart\nimport 'package:flutter_js_context/flutter_js_context.dart';\n\nvoid main() {\n  final context = JsContext();\n\n  JsRef obj = JsRef.define(context, 'myvar', '1');\n\n  // equals 'var myvar[ref.key] = 4;' in JavaScript.\n  obj.update(\"4\");\n\n  // plus the object's value which is 4 and 4 in javascript runtime.\n  context.evaluate(\"${obj.toJsCode()} + 4\"); // 8\n\n  // plus the object's value which is 8 and 4 in dart.\n  print(obj.value + 4); // 12\n}\n```\n\nSee `test` for more usage.\n\n##\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhychen%2Fflutter_js_context","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhychen%2Fflutter_js_context","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhychen%2Fflutter_js_context/lists"}