{"id":30791854,"url":"https://github.com/bocaletto-luca/web-assistent","last_synced_at":"2025-11-05T04:02:17.404Z","repository":{"id":310833358,"uuid":"1041405300","full_name":"bocaletto-luca/web-assistent","owner":"bocaletto-luca","description":"Web Assistant A self-contained, bilingual web assistant that runs entirely from a single index.html file, loading its phrase library from JSON. Includes an admin.html tool to manage (create, edit, delete, save) the JSON phrase files. SEO metadata is in English only.","archived":false,"fork":false,"pushed_at":"2025-08-20T14:24:31.000Z","size":34,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-20T14:48:14.659Z","etag":null,"topics":["application","assistent","bocaletto-luca","css3","html-css-javascript","html5","javascript","json","multilanguage","opensource","utilities","utility","web-application","web-assistant","webapp"],"latest_commit_sha":null,"homepage":"https://bocaletto-luca.github.io/","language":"HTML","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/bocaletto-luca.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}},"created_at":"2025-08-20T12:45:01.000Z","updated_at":"2025-08-20T14:24:34.000Z","dependencies_parsed_at":"2025-08-20T14:48:17.027Z","dependency_job_id":"70577d3a-9433-4dac-9f2f-e7e772697238","html_url":"https://github.com/bocaletto-luca/web-assistent","commit_stats":null,"previous_names":["bocaletto-luca/web-assistent"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/bocaletto-luca/web-assistent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bocaletto-luca%2Fweb-assistent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bocaletto-luca%2Fweb-assistent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bocaletto-luca%2Fweb-assistent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bocaletto-luca%2Fweb-assistent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bocaletto-luca","download_url":"https://codeload.github.com/bocaletto-luca/web-assistent/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bocaletto-luca%2Fweb-assistent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273774964,"owners_count":25165741,"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-09-05T02:00:09.113Z","response_time":402,"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":["application","assistent","bocaletto-luca","css3","html-css-javascript","html5","javascript","json","multilanguage","opensource","utilities","utility","web-application","web-assistant","webapp"],"created_at":"2025-09-05T15:07:20.858Z","updated_at":"2025-11-05T04:02:12.348Z","avatar_url":"https://github.com/bocaletto-luca.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web Assistant\n\nA self-contained, bilingual web assistant that runs entirely from a single `index.html` file, loading its phrase library from JSON. Includes an `admin.html` tool to manage (create, edit, delete, save) the JSON phrase files. \n\n---\n\n## Features\n\n- Single-page main interface in `index.html`  \n- Two JSON libraries at the root:  \n  - `en.json` for English phrases  \n  - `it.json` for Italian phrases  \n- Bilingual UI: toggle between English and Italian at runtime  \n- SEO-ready metadata in English only  \n- Admin interface in `admin.html` for live editing of both JSON files  \n- No external dependencies or build step—just HTML, CSS, and vanilla JavaScript  \n- Responsive and mobile-first design  \n\n---\n\n## File Structure\n\n| Path          | Description                                                                  |\n|---------------|------------------------------------------------------------------------------|\n| index.html    | Main assistant interface; loads `en.json` or `it.json` based on locale       |\n| admin.html    | JSON editor for adding, modifying, deleting, and saving phrase entries       |\n| en.json       | English phrase library                                                       |\n| it.json       | Italian phrase library                                                       |\n| fr.json       | French phrase library                                                        |\n| es.json       | Spanish phrase library                                                       |\n| de.json       | Germany phrase library                                                       |\n---\n\n## Getting Started\n\n1. Clone the repository  \n   ```\n   git clone https://github.com/bocaletto-luca/web-assistent.git\n   cd web-assistent\n   ```\n\n2. Run a simple local server (to allow JSON fetches)  \n   ```\n   python3 -m http.server 8000\n   ```\n   or any static file server of your choice.\n\n3. Open `http://localhost:8000/index.html` for the assistant, or  \n   `http://localhost:8000/admin.html` for the admin editor.\n\n---\n\n## Usage\n\n- **Switch Language:** Click the language toggle in the header to switch between English and Italian interfaces.  \n- **Ask a Question:** Type your query in the input box and press Send. The assistant looks up the key in the loaded JSON and returns the matching phrase or a default fallback.  \n- **Manage Phrases:** Navigate to `admin.html`, select the target language file (EN or IT), and use the on-page form to add, edit, or remove entries. Click Save to update the JSON file on the server.\n\n---\n\n## Data Model\n\nEach JSON file uses a simple key/value structure:\n\n```json\n{\n  \"greeting\": {\n    \"title\": \"Hello\",\n    \"response\": \"Welcome! How can I assist you today?\"\n  },\n  \"farewell\": {\n    \"title\": \"Goodbye\",\n    \"response\": \"See you soon!\"\n  }\n}\n```\n\n- **Key:** lookup string (lowercased)  \n- **title:** user-facing prompt or label  \n- **response:** assistant reply  \n\nThe admin UI ensures this schema is respected and validates before saving.\n\n---\n\n## SEO and Metadata\n\n`index.html` includes:\n\n- English-only `\u003cmeta\u003e` tags for title, description, Open Graph, and Twitter Cards  \n- A JSON-LD script describing the website and author  \n- Canonical URL pointing to the live English-only landing page  \n\nThe Italian UI does not expose separate SEO metadata.\n\n---\n\n## Contributing\n\n- Open issues for bugs or feature requests  \n- Submit pull requests against the `main` branch  \n- Follow the existing HTML/CSS/JS style and JSON schema  \n- Include meaningful commit messages  \n\n---\n\n## License\n\nMIT License\n\n---\n\n## Author\n\nBocaletto Luca  \nGitHub: https://github.com/bocaletto-luca  \nRepository: web-assistent\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbocaletto-luca%2Fweb-assistent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbocaletto-luca%2Fweb-assistent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbocaletto-luca%2Fweb-assistent/lists"}