{"id":24466385,"url":"https://github.com/guru322/txt-fyi-api","last_synced_at":"2026-02-14T08:01:31.778Z","repository":{"id":273369549,"uuid":"918168876","full_name":"Guru322/txt-fyi-api","owner":"Guru322","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-21T11:56:38.000Z","size":56,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"Guru","last_synced_at":"2025-11-27T11:59:09.397Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Guru322.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-01-17T11:38:50.000Z","updated_at":"2025-02-21T11:56:42.000Z","dependencies_parsed_at":"2025-01-20T14:36:36.055Z","dependency_job_id":"8ec2d494-9295-4a85-a8ec-775fea914a07","html_url":"https://github.com/Guru322/txt-fyi-api","commit_stats":null,"previous_names":["guru322/txt-fyi-api"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Guru322/txt-fyi-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guru322%2Ftxt-fyi-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guru322%2Ftxt-fyi-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guru322%2Ftxt-fyi-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guru322%2Ftxt-fyi-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Guru322","download_url":"https://codeload.github.com/Guru322/txt-fyi-api/tar.gz/refs/heads/Guru","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guru322%2Ftxt-fyi-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29439820,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T07:24:13.446Z","status":"ssl_error","status_checked_at":"2026-02-14T07:23:58.969Z","response_time":53,"last_error":"SSL_read: 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":[],"created_at":"2025-01-21T06:14:26.688Z","updated_at":"2026-02-14T08:01:31.762Z","avatar_url":"https://github.com/Guru322.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# txt.fyi Utility Functions\n\n[![Node.js Package](https://github.com/Guru322/txt-fyi-api/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/Guru322/txt-fyi-api/actions/workflows/npm-publish.yml)\n## Overview\nThis package provides two main functions for interacting with txt.fyi:\n- `sendsession`: Posts new text content to txt.fyi and returns the URL SLUG as session ID\n- `getsession`: Retrieves existing text content from txt.fyi using session ID\n\n## Installation\n\n```bash\n# Install\nnpm install txt-fyi-api \n\n# Import the functions in your project\nimport sendsession from \"txt-fyi-api\";\nimport getsession from \"txt-fyi-api\";\n```\n\n## Usage Examples\n\n### Posting Content\n```javascript\nconst postExample = async () =\u003e {\n    try {\n        const result = await sendsession(\"Hello, World!\");\n        if (result.success) {\n            console.log(`Post URL: https://txt.fyi/${result.output}`);\n        }\n    } catch (error) {\n        console.error('Failed to post:', error.message);\n    }\n}\n```\n\n### Retrieving Content\n```javascript\nconst getExample = async () =\u003e {\n    try {\n        // Fetch content using a session ID\n        const content = await getsession(\"abc123\");\n        console.log('Retrieved content:', content);\n    } catch (error) {\n        console.error('Failed to retrieve content:', error.message);\n    }\n}\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguru322%2Ftxt-fyi-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguru322%2Ftxt-fyi-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguru322%2Ftxt-fyi-api/lists"}