{"id":28369817,"url":"https://github.com/dkern/jquery.boilerplate","last_synced_at":"2026-04-28T17:34:07.621Z","repository":{"id":29255441,"uuid":"32788016","full_name":"dkern/jquery.boilerplate","owner":"dkern","description":"My 'perfect' jQuery Plugin Boilerplate, used to kick-start new jQuery Plugins easily.","archived":false,"fork":false,"pushed_at":"2015-03-27T08:37:01.000Z","size":144,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-04-06T16:21:45.735Z","etag":null,"topics":["boilerplate","javascript","jquery","jquery-plugin","jquery-plugin-boilerplate","kick-start"],"latest_commit_sha":null,"homepage":null,"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/dkern.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":"2015-03-24T09:11:36.000Z","updated_at":"2022-01-26T07:37:30.000Z","dependencies_parsed_at":"2022-09-05T15:41:01.625Z","dependency_job_id":null,"html_url":"https://github.com/dkern/jquery.boilerplate","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/dkern/jquery.boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkern%2Fjquery.boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkern%2Fjquery.boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkern%2Fjquery.boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkern%2Fjquery.boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dkern","download_url":"https://codeload.github.com/dkern/jquery.boilerplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkern%2Fjquery.boilerplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32392298,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T14:34:11.604Z","status":"ssl_error","status_checked_at":"2026-04-28T14:32:37.009Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["boilerplate","javascript","jquery","jquery-plugin","jquery-plugin-boilerplate","kick-start"],"created_at":"2025-05-29T05:45:11.503Z","updated_at":"2026-04-28T17:34:07.616Z","avatar_url":"https://github.com/dkern.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## My 'perfect' jQuery Plugin Boilerplate\nI'll use this boilerplate to fast and easy kick-start new plugins for jQuery. This is the 'perfect' solution for my personal needs. :)\n\n## How to Start\nGrab your copy of the normal or extended boilerplate and change the `pluginName`. You're ready to go, only implement whatever your plugin should do or extend own functions.\n\n## Chainable and Instance Related\nThe plugin is available over jQuery and chainable by default:\n```JS\njQuery(\".selector\").PerfectBoilerplate({configuration: \"goes here\"}).chainableFunction();\n```\n\nThe plugin create an own instance for every call. Use this in an object oriented manner to access internal functions like `destroy` or own implementations:\n```JS\nvar pluginInstance = jQuery(\".selector\").PerfectBoilerplate({chainable: false});\npluginInstance.destroy();\n```\n\n## Extended Boilerplate\nThere is a normal and a extended version of this boilerplate. The extended version has support for some more features I'll need very often. Just remove parts you don't need in your project or use the normal boilerplate.\n\n## Extended: Callbacks\nI like to have one central functions in my plugins to trigger a callback function. You can use the internal function `_triggerCallback` to execute e.g. a configurable callback function and pass an optional element to it:\n```JS\nthis._triggerCallback(this.configuration.sampleCallback, $(element));\n```\n\n## Extended: Throttle\nThe `_throttle` function helps to limit executions of a function. Just specify a function to execute and a time delay the function should be executed once in a time. You will receive a new function you can pass to heavily executed events like `scroll` or `resize`:\n```JS\nvar throttledFunction = this._throttle(250, function() {\n\t// will be executed once every 250 milliseconds\n});\n\njQuery(window).on(\"scroll\", throttledFunction);\n```\n\n## Extended: Queueing\nThe build-in queue has different responsibilities. It's usable to late-bind events, execute more prioritized code first or run your whole plugin in a lower priority as your other scripts to create a non-blocking plugin. Put everything you want to execute only when nothing is blocking or you want to run in a lower priority inside the queue. It will executed automatically when nothing else is running. \n```JS\nvar throttledFunction = this._throttle(250, function() {\n    // will be executed once every 250 milliseconds\n    this._addToQueue(function() {\n        // will only be executed when nothing else is executed\n    });\n});\n\njQuery(window).on(\"scroll\", throttledFunction);\n```\n\n## Bugs / Feature request\nPlease [report](http://github.com/eisbehr-/jquery.boilerplate/issues) bugs and feel free to [ask](http://github.com/eisbehr-/jquery.boilerplate/issues) for new features directly on GitHub.\n\n## License\nThis boilerplate is license-free. Just use it as you like. :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkern%2Fjquery.boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdkern%2Fjquery.boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkern%2Fjquery.boilerplate/lists"}