{"id":17440909,"url":"https://github.com/david-torres/agent-resources","last_synced_at":"2026-04-11T18:03:13.761Z","repository":{"id":258019231,"uuid":"870118603","full_name":"david-torres/agent-resources","owner":"david-torres","description":"Agent Resources is a web app for the TTRPG Enclave","archived":false,"fork":false,"pushed_at":"2025-03-22T23:52:06.000Z","size":248,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-23T00:23:33.373Z","etag":null,"topics":["bulma","express","handlebars","htmx","htmx-app","moment-timezone","momentjs","supabase","supabase-auth","supabase-js"],"latest_commit_sha":null,"homepage":"","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/david-torres.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}},"created_at":"2024-10-09T13:27:55.000Z","updated_at":"2025-03-22T23:52:09.000Z","dependencies_parsed_at":"2025-02-12T20:31:46.075Z","dependency_job_id":"232c29ab-2bb1-4373-98cd-da5d87da7a9d","html_url":"https://github.com/david-torres/agent-resources","commit_stats":{"total_commits":41,"total_committers":1,"mean_commits":41.0,"dds":0.0,"last_synced_commit":"7b13f9ccebfb0553382174b53588ccfd104fa18e"},"previous_names":["david-torres/agent-resources"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/david-torres%2Fagent-resources","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/david-torres%2Fagent-resources/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/david-torres%2Fagent-resources/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/david-torres%2Fagent-resources/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/david-torres","download_url":"https://codeload.github.com/david-torres/agent-resources/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245960667,"owners_count":20700777,"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","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":["bulma","express","handlebars","htmx","htmx-app","moment-timezone","momentjs","supabase","supabase-auth","supabase-js"],"created_at":"2024-10-17T15:05:12.025Z","updated_at":"2026-04-11T18:03:13.756Z","avatar_url":"https://github.com/david-torres.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Agent Resources\n\nAgent Resources is a web application for managing Enclave characters, finding\ngames, and more!\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Dependencies](#dependencies)\n- [Enclave](#enclave)\n- [License](#license)\n\n## Installation\n\n1. Clone the repository:\n   ```sh\n   git clone https://github.com/david-torres/agent-resources.git\n   cd agent-resources\n   ```\n\n2. Install the dependencies:\n   ```sh\n   npm install\n   ```\n\n3. Create a `.env` file based on `.env.dist` and fill in the required\n   environment variables.\n\n## Usage\n\nTo start the application in development mode:\n\n```sh\nnpm run dev\n```\n\nTo start the application in production mode:\n\n```sh\nnpm run start\n```\n\n## Agent Tokens\n\nLong-lived personal access tokens can be created per user for agent integrations.\n\n- `POST /profile/agent-tokens` with `{ \"name\": \"My agent\" }` creates a token and returns the raw token once.\n- `GET /profile/agent-tokens` lists active tokens for the signed-in user.\n- `DELETE /profile/agent-tokens/:id` revokes a token.\n- `GET /api/agent/me` verifies a token sent via `X-Agent-Token` or `Authorization: Bearer ...`.\n- `GET /api/agent/classes` returns the class list visible to that user.\n- `GET /api/agent/classes/:id` returns full details or teaser-only details based on the same release/unlock rules as the web app.\n\nServer-side agent routes should use `SUPABASE_SERVICE_ROLE_KEY` so token-authenticated requests can evaluate ownership and unlock state without a Supabase browser session.\n\n## Dependencies\n\nThis project is built using:\n\n- [Express](https://github.com/expressjs/express)\n- [Handlebars](https://github.com/handlebars-lang/handlebars.js)\n- [Supabase](https://github.com/supabase/supabase)\n- [Htmx](https://github.com/bigskysoftware/htmx)\n- [Bulma](https://github.com/jgthms/bulma)\n\n## Enclave\n\nNew to the Enclave? Watch the video:\n\n[![Watch the video](https://img.youtube.com/vi/aBVeIi6s6rE/0.jpg)](https://www.youtube.com/watch?v=aBVeIi6s6rE)\n\n[Learn more about the Enclave](https://www.kickstarter.com/projects/757240159/enclave-a-tableless-roleplaying-game)\n\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavid-torres%2Fagent-resources","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavid-torres%2Fagent-resources","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavid-torres%2Fagent-resources/lists"}