{"id":16125710,"url":"https://github.com/dy/fps-indicator","last_synced_at":"2025-06-14T20:14:56.183Z","repository":{"id":57241256,"uuid":"65690388","full_name":"dy/fps-indicator","owner":"dy","description":"Tiny fps indicator for demo or tests","archived":false,"fork":false,"pushed_at":"2018-11-25T23:25:34.000Z","size":18,"stargazers_count":31,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-12T06:07:47.444Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://dy.github.io/fps-indicator/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dy.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-14T23:05:54.000Z","updated_at":"2024-11-06T22:59:08.000Z","dependencies_parsed_at":"2022-09-07T23:13:13.842Z","dependency_job_id":null,"html_url":"https://github.com/dy/fps-indicator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dy/fps-indicator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Ffps-indicator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Ffps-indicator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Ffps-indicator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Ffps-indicator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dy","download_url":"https://codeload.github.com/dy/fps-indicator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dy%2Ffps-indicator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259490490,"owners_count":22865762,"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-10-09T21:30:52.689Z","updated_at":"2025-06-14T20:14:56.097Z","avatar_url":"https://github.com/dy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fps-indicator [![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)\n\nMicro fps indicator for demo/tests.\n\n[![fps-indicator](https://raw.githubusercontent.com/dy/fps-indicator/gh-pages/preview.png \"fps-indicator\")](http://dy.github.io/fps-indicator/)\n\n## Usage\n\n[![npm install fps-indicator](https://nodei.co/npm/fps-indicator.png?mini=true)](https://npmjs.org/package/fps-indicator/)\n\n```js\nconst createFps = require('fps-indicator');\nlet fps = createFps();\n```\n\n## API\n\n### var fps = createFps(container|options?)\n\nCreate fps indicator from `position` string or `options` object:\n\n| Option | Description |\n|---|---|\n| `container` | Selector or element to append, by default `document.body`. |\n| `period` | Update period in ms, defaults to `500`. |\n| `max` | Max value of FPS, corresponding to upper bound, default is `90`. |\n| `color` | Color of indicator, by default is inherited. |\n| `position` | `top-left`, `top-right`, `bottom-left` (default), `bottom-right`. |\n| `style` | CSS style string or [css object](https://npmjs.org/package/to-css). Eg. `fps({style: 'padding: 20px; text-shadow: 0 0 2px black'})` |\n\n## Similar\n\n\u003e [stats.js](https://www.npmjs.com/package/stats.js) — oldschool fps meter for apps, no colors customization.\u003cbr/\u003e\n\u003e [fpsmeter](http://darsa.in/fpsmeter/) — good-looking fps meter, but no npm package.\u003cbr/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdy%2Ffps-indicator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdy%2Ffps-indicator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdy%2Ffps-indicator/lists"}