{"id":32258114,"url":"https://github.com/lil-js/http","last_synced_at":"2026-02-21T07:01:48.415Z","repository":{"id":19625720,"uuid":"22877495","full_name":"lil-js/http","owner":"lil-js","description":"Tiny, embeddable HTTP client with simple API for the browser","archived":false,"fork":false,"pushed_at":"2018-12-17T14:10:21.000Z","size":131,"stargazers_count":24,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-23T21:20:06.144Z","etag":null,"topics":["ajax","client","embed","embeddable","http","http-client","javascript","tiny","xhr"],"latest_commit_sha":null,"homepage":"http://lil-js.github.io/","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/lil-js.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}},"created_at":"2014-08-12T13:04:49.000Z","updated_at":"2025-08-27T12:06:15.000Z","dependencies_parsed_at":"2022-08-31T00:00:55.040Z","dependency_job_id":null,"html_url":"https://github.com/lil-js/http","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/lil-js/http","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lil-js%2Fhttp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lil-js%2Fhttp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lil-js%2Fhttp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lil-js%2Fhttp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lil-js","download_url":"https://codeload.github.com/lil-js/http/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lil-js%2Fhttp/sbom","scorecard":{"id":589766,"data":{"date":"2025-08-11","repo":{"name":"github.com/lil-js/http","commit":"0b94b348ee73f921a6f8439a22655b727eee2450"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T21:32:50.413Z","repository_id":19625720,"created_at":"2025-08-20T21:32:50.413Z","updated_at":"2025-08-20T21:32:50.413Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29675913,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T06:23:40.028Z","status":"ssl_error","status_checked_at":"2026-02-21T06:23:39.222Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["ajax","client","embed","embeddable","http","http-client","javascript","tiny","xhr"],"created_at":"2025-10-22T19:43:10.793Z","updated_at":"2026-02-21T07:01:48.405Z","avatar_url":"https://github.com/lil-js.png","language":"JavaScript","readme":"# [lil](http://lil-js.github.io)'-http [![Build Status](https://api.travis-ci.org/lil-js/http.svg?branch=master)][travis] [![Stories in Ready](https://badge.waffle.io/lil-js/http.png?label=ready\u0026title=Ready)](https://waffle.io/lil-js/http) [![Code Climate](https://codeclimate.com/github/lil-js/uri/badges/gpa.svg)](https://codeclimate.com/github/lil-js/http) [![Gitter chat](https://badges.gitter.im/lil-js/http.png)](https://gitter.im/lil-js/http)\n\n\u003cimg align=\"center\" height=\"150\" src=\"http://lil-js.github.io/img/liljs-logo.png\" /\u003e\n\nTiny, lightweight, full featured HTTP client for the browser.\n\n\u003ctable\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cb\u003eName\u003c/b\u003e\u003c/td\u003e\u003ctd\u003ehttp\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cb\u003eVersion\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e0.1.17\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cb\u003eSize\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e3 KB / 1 KB (gzipped)\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cb\u003eEnvironment\u003c/b\u003e\u003c/td\u003e\u003ctd\u003eBrowser\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n## Features\n\n- Simple fully configurable API\n- Support any HTTP verb\n- Built-in error handling\n- Binary response handling support\n- Content-Type autodiscovery\n- Support auth credentials\n- Request progress status report\n- Support passing custom headers\n- Transparent support for CORS (in IE)\n- Simple request state handling based on callback\n- Transparent payload JSON serializer\n\n## Installation\n\nVia [Bower](http://bower.io)\n```bash\nbower install lil-http\n```\n\nVia [Component](https://github.com/component/component)\n```bash\ncomponent install lil-js/http\n```\n\nOr loading the script remotely\n```html\n\u003cscript src=\"//cdn.rawgit.com/lil-js/http/0.1.17/http.js\"\u003e\u003c/script\u003e\n```\n\n### Environments\n\n- Chrome \u003e= 5\n- Firefox \u003e= 3\n- Safari \u003e= 5\n- Opera \u003e= 10\n- IE \u003e= 9\n\n### Usage\n\nYou could fetch de module via `require()` if it's available.\nOtherwise, global fallback will be used, exposed via `lil.http`\n\n##### Sample GET request\n```js\nlil.http.get('/sample.json', {\n  auth: { user: 'Tom', password: 'p@s$w0rD' }\n  headers: { 'X-Version': '0.1.0' }\n}, function (err, res)) {\n  if (err) throw new Error('Cannot perform the request: ' + err.status)\n  if (res.status === 200) {\n    console.log(res.data)\n  }\n})\n```\n\n##### Sample POST request\n```js\nlil.http.post('/register', {\n  data: { user: 'Tom' },\n  headers: { 'API-Key': '8c1c4180-36b5-11e4-8510-0800200c9a66' }\n}, function (err, res)) {\n  if (err) throw new Error('Cannot register: ' + err.status)\n  if (res.status === 200) {\n    console.log('Registered!')\n  }\n})\n```\n\n### Config options\n\n- **url** `string` - Server request URL\n- **data** `mixed` - Payload data to send as body request. See [MDN][sendXHR] for more information\n- **params** `object` - Map of key-value query string params\n- **headers** `object` - Map of strings representing HTTP headers to send to the server\n- **timeout** `number` - Request maximum timeout in milliseconds. Default to 30 seconds\n- **auth** `object` -  Authentication credentials to the server. Object must have the `user` and `password` properties with `string` values\n- **withCredentials** `boolean` - Whether to set the withCredentials flag on the XHR object. See [MDN][withcredentials] for more information\n- **method** `string` - Request HTTP method. Default to `GET`\n- **responseType** `string` - Define how to handle the response data. Allowed values are: `text`, `arraybuffer`, `blob` or `document`\n\n### Response/error object\n\n- **data** `mixed` - Body response. If the MIME type is `JSON-compatible`, it will be transparently parsed\n- **status** `number` - HTTP response status code\n- **headers** `object` - Response headers\n- **xhr** `object` - Original XHR instance\n- **error** `mixed` - Error info, usually an `Error` instance (in case that an error happens)\n\n## API\n\n#### http(url, options, cb, [ progressCb ])\n\n#### http.get(url, options, cb, [ progressCb ])\n\n#### http.post(url, options, cb, [ progressCb ])\n\n#### http.put(url, options, cb, [ progressCb ])\n\n#### http.delete(url, options, cb, [ progressCb ])\n\n#### http.patch(url, options, cb, [ progressCb ])\n\n#### http.head(url, options, cb, [ progressCb ])\n\n#### http.defaults\nType: `object`\n\nDefault client config object\n\n#### http.defaultContent\nType: `string` Value: `text/plain`\n\nDefault `Content-Type` request header value\n\n#### http.VERSION\n\n## Contributing\n\nWanna help? Cool! It will be appreciated :)\n\nYou must add new test cases for any new feature or refactor you do,\nalways following the same design/code patterns that already exist\n\n### Development\n\nOnly [node.js](http://nodejs.org) is required for development\n\nClone the repository\n```bash\n$ git clone https://github.com/lil-js/http.git \u0026\u0026 cd http\n```\n\nInstall dependencies\n```bash\n$ npm install\n```\n\nGenerate browser bundle source\n```bash\n$ make browser\n```\n\nRun tests\n```bash\n$ make test\n```\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT) © Tomas Aparicio\n\n[withcredentials]: https://developer.mozilla.org/es/docs/Web/HTTP/Access_control_CORS#Requests_with_credentials\n[sendXHR]: https://developer.mozilla.org/es/docs/XMLHttpRequest#send()\n[travis]: http://travis-ci.org/lil-js/http\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flil-js%2Fhttp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flil-js%2Fhttp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flil-js%2Fhttp/lists"}