{"id":41041957,"url":"https://github.com/juev/preview","last_synced_at":"2026-01-22T10:43:51.133Z","repository":{"id":331392952,"uuid":"1037190677","full_name":"juev/preview","owner":"juev","description":"Modern single-page application for viewing formatted source code of web pages","archived":false,"fork":false,"pushed_at":"2026-01-02T00:03:02.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-07T12:34:33.641Z","etag":null,"topics":["javascript","nodejs","web"],"latest_commit_sha":null,"homepage":"https://denis.evsyukov.org","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/juev.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-13T07:45:03.000Z","updated_at":"2026-01-02T00:03:01.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/juev/preview","commit_stats":null,"previous_names":["juev/preview"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/juev/preview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juev%2Fpreview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juev%2Fpreview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juev%2Fpreview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juev%2Fpreview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juev","download_url":"https://codeload.github.com/juev/preview/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juev%2Fpreview/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28661882,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"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":["javascript","nodejs","web"],"created_at":"2026-01-22T10:43:51.044Z","updated_at":"2026-01-22T10:43:51.118Z","avatar_url":"https://github.com/juev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web Page Source Viewer\n\nModern single-page application for viewing formatted source code of web pages.\n\n## Features\n\n- ✨ Clean architecture with vanilla JS without unnecessary dependencies\n- 🎨 Modern responsive design\n- 🔍 Automatic programming language detection\n- 🖼️ Syntax highlighting with Prism.js\n- 🔄 SPA routing via History API\n- 🛡️ Security with Helmet and URL validation\n- 📱 Fully responsive interface\n\n## Installation and Launch\n\n```bash\nnpm install\nnpm start\n```\n\nThe application will be available at: \u003chttp://localhost:3000\u003e\n\n## Project Structure\n\n```\nweb-page-preview/\n├── server/\n│   └── app.js          # Express server with API\n├── public/\n│   ├── index.html      # Main HTML page\n│   ├── app.js          # Frontend logic and routing\n│   └── styles.css      # Application styles\n└── package.json        # Dependencies and scripts\n```\n\n## How to Use\n\n1. Open the main page\n2. Enter a web page URL (e.g., \u003chttps://example.com\u003e)\n3. Click \"View Source\" or press Enter\n4. View the formatted source code with syntax highlighting\n\n## Technologies\n\n- **Backend**: Node.js + Express\n- **Frontend**: Vanilla JavaScript (ES6+)\n- **Code highlighting**: Prism.js\n- **Security**: Helmet, CORS\n- **Styles**: CSS3 with Flexbox/Grid\n\n## API Endpoints\n\n### GET /api/fetch-source?url=\u003cURL\u003e\n\nFetches and formats the source code of the specified page.\n\n**Parameters:**\n\n- `url` - Web page URL for analysis\n\n**Response:**\n\n```json\n{\n  \"url\": \"https://example.com\",\n  \"language\": \"html\",\n  \"content\": \"\u003c!DOCTYPE html\u003e...\",\n  \"formattedCode\": \"\u003cspan class=\\\"token\\\"\u003e...\",\n  \"size\": 1234,\n  \"contentType\": \"text/html\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuev%2Fpreview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuev%2Fpreview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuev%2Fpreview/lists"}