{"id":20339144,"url":"https://github.com/nealfennimore/stripe-api-node-express","last_synced_at":"2026-04-06T21:31:23.454Z","repository":{"id":141678737,"uuid":"85268481","full_name":"nealfennimore/stripe-api-node-express","owner":"nealfennimore","description":"Express server for stripe api","archived":false,"fork":false,"pushed_at":"2018-06-18T23:24:08.000Z","size":17,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-04T10:53:50.506Z","etag":null,"topics":["express","json-web-token","nodejs","stripe-api"],"latest_commit_sha":null,"homepage":"","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/nealfennimore.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-17T03:48:19.000Z","updated_at":"2017-08-21T06:29:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"aefb37d1-c749-457d-92fc-6affce5cac08","html_url":"https://github.com/nealfennimore/stripe-api-node-express","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nealfennimore/stripe-api-node-express","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nealfennimore%2Fstripe-api-node-express","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nealfennimore%2Fstripe-api-node-express/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nealfennimore%2Fstripe-api-node-express/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nealfennimore%2Fstripe-api-node-express/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nealfennimore","download_url":"https://codeload.github.com/nealfennimore/stripe-api-node-express/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nealfennimore%2Fstripe-api-node-express/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31491096,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-06T17:22:55.647Z","status":"ssl_error","status_checked_at":"2026-04-06T17:22:54.741Z","response_time":112,"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":["express","json-web-token","nodejs","stripe-api"],"created_at":"2024-11-14T21:15:32.270Z","updated_at":"2026-04-06T21:31:23.433Z","avatar_url":"https://github.com/nealfennimore.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stripe API Express Server\n\nA simple express api server for creating Stripe charges.\n\n## Installation\n\n```sh\nnpm install\nnpm install -g foreman # Install foreman globally\n```\n\n### .env File Example\n\nUpdate your `.env` file to look similar.\n\n```js\n{\n    \"server\": {\n        \"ip\": \"0.0.0.0\",\n        \"port\": 3000\n    },\n    \"auth\": {\n        \"secret\": \"\",\n        \"algorithm\": \"HS256\"\n    },\n    \"stripe\": {\n        \"publishable_key\": \"\",\n        \"secret_key\": \"\"\n    }\n}\n```\n\n### Generate Keys\n\nWe'll use a either a secret key or RSA public key for verifying using JSON Web Tokens for certain API requests.\nGenerate a private and public key using the below commands for RS256.\n\n```sh\n# RS256 key\nopenssl genrsa -out keys/priv.pem 1024\nopenssl rsa -pubout -in keys/priv.pem -out keys/pub.pem\n```\n\n## Get Access Token\n\nGenerate an access token and use it for authenticated API requests.\n\n```js\n# RS256\nconst privateKey = fs.readFileSync('keys/priv.pem');\nconst RS_256_ACCESS_TOKEN = jwt.sign({}, privateKey, { algorithm: 'RS256'})\n\n# HS256\nconst HS256_ACCESS_TOKEN = jwt.sign({}, AUTH_SECRET);\n```\n\nThe token should be in the `Authorization` Header.\n\n```js\n// Authorization: Bearer \u003ctoken\u003e\nreq.headers['authorization'];\n```\n\n## Starting API Server\n\n```sh\nnpm run start\nnpm run develop # With nodemon\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnealfennimore%2Fstripe-api-node-express","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnealfennimore%2Fstripe-api-node-express","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnealfennimore%2Fstripe-api-node-express/lists"}