{"id":48470459,"url":"https://github.com/jacobstephens2/artifact-manager-web-app","last_synced_at":"2026-04-07T06:05:12.897Z","repository":{"id":45829870,"uuid":"409749823","full_name":"JacobStephens2/artifact-manager-web-app","owner":"JacobStephens2","description":"A PHP/MySQL web app for tracking personal belongings using the Minimalists' 90/90 rule — log when you use items and identify what to declutter. 5 years of active development with 95 PHPUnit tests.","archived":false,"fork":false,"pushed_at":"2026-03-31T14:07:19.000Z","size":11693,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-31T15:26:01.897Z","etag":null,"topics":["decluttering","inventory-management","javascript","minimalism","mysql","php","phpunit","rest-api"],"latest_commit_sha":null,"homepage":"https://artifact.stephens.page","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JacobStephens2.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-09-23T21:34:31.000Z","updated_at":"2026-03-31T14:07:47.000Z","dependencies_parsed_at":"2023-02-09T14:16:25.845Z","dependency_job_id":"de29a491-d114-450b-8494-2bc437c37dcc","html_url":"https://github.com/JacobStephens2/artifact-manager-web-app","commit_stats":null,"previous_names":["jacobstephens2/artifact-manager-web-app"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/JacobStephens2/artifact-manager-web-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobStephens2%2Fartifact-manager-web-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobStephens2%2Fartifact-manager-web-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobStephens2%2Fartifact-manager-web-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobStephens2%2Fartifact-manager-web-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JacobStephens2","download_url":"https://codeload.github.com/JacobStephens2/artifact-manager-web-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JacobStephens2%2Fartifact-manager-web-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31501903,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["decluttering","inventory-management","javascript","minimalism","mysql","php","phpunit","rest-api"],"created_at":"2026-04-07T06:05:12.188Z","updated_at":"2026-04-07T06:05:12.889Z","avatar_url":"https://github.com/JacobStephens2.png","language":"PHP","readme":"# Artifact Manager\n\nA web app for tracking artifact usage and operationalizing the [Minimalists' 90/90 Rule](https://www.theminimalists.com/ninety/) — if you haven't used something in the last 90 days and won't in the next 90, it's time to let it go.\n\nLive at [artifact.stewardgoods.com](https://artifact.stewardgoods.com/).\n\n## Tech Stack\n\n- **Backend**: PHP / MySQL (MySQLi) / Apache\n- **Frontend**: Vanilla HTML/CSS/JavaScript\n- **Auth**: JWT tokens + session-based auth with bcrypt\n- **Email**: PHPMailer via SendGrid\n- **Testing**: PHPUnit 10\n- **Dependencies**: Composer (`firebase/php-jwt`, `phpmailer/phpmailer`)\n\n## Features\n\n### Artifact Tracking\n\n- Create and manage artifacts across types: board games, books, films, equipment, toys, instruments, food, drinks, and more\n- Track acquisition dates, player counts, complexity, ratings\n- Organize into primary/secondary collections or archive\n- Candidate/exploration status for items under consideration\n\n### Interaction Logging\n\n- Record usage events with dates, notes, and participants\n- Multi-player support per interaction\n- Sweet spot tracking (ideal player counts per artifact)\n- Per-artifact frequency overrides\n\n### Usage Analysis\n\n- Calculate \"use-by\" dates based on configurable interaction frequency\n- List artifacts ordered by next due date to prioritize what to use next\n- Default and per-artifact interval settings\n\n### Player \u0026 Playgroup Management\n\n- Player profiles with priority and menu ordering\n- Playgroup selection for defining active participants\n- Aversion tracking\n\n### REST API\n\n- JWT + API key authentication\n- CRUD endpoints for artifacts, uses, types, and users\n- Cursor-based and offset-based pagination\n- Search and filtering\n- Rate limiting (60 requests/minute per IP)\n- Structured request logging\n\n### Multi-Tenant\n\n- Each user manages their own artifacts, players, and data\n- User roles (regular, admin)\n- Registration, login, and password reset flows\n\n## Project Structure\n\n```\nui/                         Web-accessible frontend\n├── artifacts/              Artifact CRUD pages\n├── uses/                   Interaction recording\n├── players/                Player management\n├── playgroup/              Playgroup selection\n├── types/                  Artifact type management\n├── users/                  User management\n├── settings/               User settings\n├── explore/                Candidate exploration\n├── aversions/              Aversion tracking\n├── shared/                 Header/footer templates\n└── style.css               Global stylesheet\n\napi/                        REST API endpoints\n├── artifact.php            Single artifact CRUD\n├── artifacts.php           Artifact listing/search\n├── uses.php                Interaction recording\n├── types.php               Artifact types\n├── users.php               User management\n└── private/                API-specific initialization\n\nprivate/                    Backend logic (not web-accessible)\n├── initialize.php          App bootstrap \u0026 constants\n├── database.php            Database connection\n├── environment_variables.php  Config (git-ignored)\n├── functions.php           CSRF \u0026 utility helpers\n├── validation_functions.php   Input validation\n├── auth_functions.php      Authentication logic\n├── rate_limiter.php        Rate limiting\n├── cache.php               File-based caching\n├── app_logger.php          Structured logging\n├── classes/                OOP data access layer\n│   ├── DatabaseObject.class.php\n│   ├── Artifact.class.php\n│   └── User.class.php\n├── query_functions/        Domain-specific query modules\n├── crons/                  Scheduled tasks\n└── oneTimeScripts/         Migration scripts\n\ntests/                      PHPUnit test suite\ndocs/                       DATABASE_SCHEMA.md with ERD\n```\n\n## Setup\n\n### Prerequisites\n\n- PHP 7.x+ with MySQLi extension\n- MySQL / MariaDB\n- Apache with mod_rewrite\n- Composer\n\n### Installation\n\n```bash\n# Install dependencies\ncomposer install\ncd private \u0026\u0026 composer install\ncd ../api/private \u0026\u0026 composer install\n\n# Configure environment\ncp private/environment_variables_template.php private/environment_variables.php\n# Edit with your DB credentials, SendGrid key, JWT secret, etc.\n\n# Set up database (see docs/DATABASE_SCHEMA.md)\n\n# Ensure logs/ and cache/ are writable\nchmod 777 logs/ cache/\n```\n\n### Configuration\n\n`private/environment_variables.php` defines:\n\n| Constant | Purpose |\n|---|---|\n| `DB_SERVER`, `DB_USER`, `DB_PASS`, `DB_NAME` | Database connection |\n| `SENDGRID_API_KEY` | Email delivery |\n| `ARTIFACTS_API_KEY` | API authentication key |\n| `JWT_SECRET` | JWT signing key |\n| `ARTIFACTS_DOMAIN` | Application domain |\n| `API_ORIGIN` | API domain for CORS |\n| `APP_ENV` | `development` or `production` |\n\n### Running Tests\n\n```bash\n./vendor/bin/phpunit\n```\n\n## Acknowledgments\n\nThe following LinkedIn Learning courses by Kevin Skoglund were very helpful in the development of this app: _PHP Essential Training_, _PHP with MySQL Essential Training: 1 The Basics_, and _PHP with MySQL Essential Training 2: Build a CMS_.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacobstephens2%2Fartifact-manager-web-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacobstephens2%2Fartifact-manager-web-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacobstephens2%2Fartifact-manager-web-app/lists"}