{"id":26891158,"url":"https://github.com/noahwillson/butter-framework","last_synced_at":"2025-09-11T02:32:33.431Z","repository":{"id":285296603,"uuid":"957646937","full_name":"noahwillson/butter-framework","owner":"noahwillson","description":"Butter is Nodejs Framework that is provide basic auth and user management functionalities","archived":false,"fork":false,"pushed_at":"2025-03-30T21:28:11.000Z","size":751,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-03T19:50:36.838Z","etag":null,"topics":["framework","http","nodejs","proxy"],"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/noahwillson.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":"2025-03-30T21:25:54.000Z","updated_at":"2025-03-30T21:30:54.000Z","dependencies_parsed_at":"2025-03-30T22:26:35.593Z","dependency_job_id":null,"html_url":"https://github.com/noahwillson/butter-framework","commit_stats":null,"previous_names":["noahwillson/butter-framework"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/noahwillson/butter-framework","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noahwillson%2Fbutter-framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noahwillson%2Fbutter-framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noahwillson%2Fbutter-framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noahwillson%2Fbutter-framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noahwillson","download_url":"https://codeload.github.com/noahwillson/butter-framework/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noahwillson%2Fbutter-framework/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273010876,"owners_count":25030367,"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","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["framework","http","nodejs","proxy"],"created_at":"2025-03-31T22:32:57.953Z","updated_at":"2025-08-31T16:39:33.892Z","avatar_url":"https://github.com/noahwillson.png","language":"JavaScript","readme":"# HTTP Server with Authentication and Post Management\n\nThis project is a simple HTTP server built using a custom framework called `Butter`. It provides basic authentication, user management, and post management functionalities. The server is designed to handle JSON-based API requests and serve static files for a front-end application.\n\n## Features\n\n- **User Authentication**:\n\n  - Login with username and password to receive a session token.\n  - Logout to invalidate the session token.\n\n- **User Management**:\n\n  - Retrieve user information.\n  - Update user details (username, name, and optionally password).\n\n- **Post Management**:\n\n  - Retrieve a list of posts with author information.\n  - Create new posts.\n\n- **Static File Serving**:\n\n  - Serve `index.html`, `styles.css`, and `scripts.js` for the front-end.\n\n- **Middleware**:\n  - JSON body parsing for API requests.\n  - Authentication middleware to protect specific routes.\n\n## API Endpoints\n\n### Authentication Routes\n\n- **POST `/api/login`**  \n  Logs in a user and returns a session token.  \n  **Request Body**:\n  ```json\n  {\n    \"username\": \"liam23\",\n    \"password\": \"string\"\n  }\n  ```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoahwillson%2Fbutter-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoahwillson%2Fbutter-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoahwillson%2Fbutter-framework/lists"}