{"id":17454745,"url":"https://github.com/fhinkel/type-profile","last_synced_at":"2025-04-05T18:07:56.016Z","repository":{"id":148521166,"uuid":"103047027","full_name":"fhinkel/type-profile","owner":"fhinkel","description":"Collect runtime type information 😻 of your JavaScript code.","archived":false,"fork":false,"pushed_at":"2022-05-21T17:38:48.000Z","size":103,"stargazers_count":525,"open_issues_count":1,"forks_count":15,"subscribers_count":15,"default_branch":"main","last_synced_at":"2025-03-29T17:08:09.189Z","etag":null,"topics":["javascript","nodejs","v8"],"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/fhinkel.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":"2017-09-10T17:11:17.000Z","updated_at":"2024-12-17T08:35:05.000Z","dependencies_parsed_at":"2023-07-04T19:01:55.009Z","dependency_job_id":null,"html_url":"https://github.com/fhinkel/type-profile","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/fhinkel%2Ftype-profile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fhinkel%2Ftype-profile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fhinkel%2Ftype-profile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fhinkel%2Ftype-profile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fhinkel","download_url":"https://codeload.github.com/fhinkel/type-profile/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247378142,"owners_count":20929296,"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":["javascript","nodejs","v8"],"created_at":"2024-10-18T01:41:03.355Z","updated_at":"2025-04-05T18:07:55.991Z","avatar_url":"https://github.com/fhinkel.png","language":"JavaScript","readme":"\n# Runtime Type Information\n\nCollect runtime type information 😻 of your JavaScript code.\n\nThis is a demo how you could use V8's new type information feature.\n\nV8 can now collect type information at runtime. V8 is Google’s open source JavaScript engine. Chrome, Node.js, and many other applications use V8. This type profiler is built into the engine, the information is not statically inferred.\n\nThe [V8 inspector protocol](https://chromedevtools.github.io/devtools-protocol/v8/Profiler/#method-startTypeProfile) provides access to the type information. Since the inspector is available in Node (see [Node Documentation](https://nodejs.org/dist/latest-v8.x/docs/api/inspector.html)), it's easy to write modules that utilize type information. This repo is a very simple demo of this.\n\n![Image of Demo](https://raw.githubusercontent.com/fhinkel/type-profile/master/images/demo.png)\n\nCompare the runtime type information with your TypeScript or Flow annotations. Or use \nthem to find bugs and performance issues. \n\nFor technical details on type profile implementation in V8, see [https://chromium-review.googlesource.com/c/v8/v8/+/508588](https://chromium-review.googlesource.com/c/v8/v8/+/508588) and the [Design Doc](https://docs.google.com/document/d/1JY7pUCAk8gegyi6UkIdln6j_AeJqQucZg92advaMJY4/edit?usp=sharing).\n\n*Demo based on [@hashseed's](https://github.com/hashseed) demo for [code coverage](https://github.com/hashseed/node-coverage-demo).*\n\n## Installation \nRun `npm start`, then open [localhost:8080](http://localhost:8080). \n\n*Note: currently needs Node master, TypeProfile is not in 9.4. You can build from source or download a [nightly build](https://nodejs.org/download/nightly/).* ","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffhinkel%2Ftype-profile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffhinkel%2Ftype-profile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffhinkel%2Ftype-profile/lists"}