{"id":15042278,"url":"https://github.com/typescord/ftee","last_synced_at":"2025-08-04T15:39:04.382Z","repository":{"id":44951191,"uuid":"337692964","full_name":"typescord/ftee","owner":"typescord","description":"Ftee is a fast encoder and decoder for the Erlang External Term Format (version 131) written in TypeScript.","archived":false,"fork":false,"pushed_at":"2022-09-01T18:03:53.000Z","size":3306,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-29T12:38:29.701Z","etag":null,"topics":["discord","erlang","erlpack","etf","ftee","node","nodejs","typescord"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@typescord/ftee","language":"TypeScript","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/typescord.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-10T10:44:47.000Z","updated_at":"2025-03-05T21:18:56.000Z","dependencies_parsed_at":"2022-09-09T20:22:53.603Z","dependency_job_id":null,"html_url":"https://github.com/typescord/ftee","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/typescord/ftee","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typescord%2Fftee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typescord%2Fftee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typescord%2Fftee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typescord%2Fftee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/typescord","download_url":"https://codeload.github.com/typescord/ftee/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typescord%2Fftee/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268717012,"owners_count":24295621,"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-08-04T02:00:09.867Z","response_time":79,"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":["discord","erlang","erlpack","etf","ftee","node","nodejs","typescord"],"created_at":"2024-09-24T20:47:04.802Z","updated_at":"2025-08-04T15:39:04.326Z","avatar_url":"https://github.com/typescord.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ftee (Format Term External Erlang)\n\nFtee is a fast encoder and decoder for the Erlang External Term Format (version 131) written in TypeScript.\n\n**Note:** the decoder does not check the lists' tail marker. _If this is inconvenient, feel free to make an issue/PR._\n\n### Supported terms\n\n- Atoms (decode-only)\n- Booleans\n- [Strings](https://erlang.org/doc/apps/erts/erl_ext_dist.html#binary_ext)\n- Floats\n- Integers\n- Larges and smalls bigs\n- [Map (objects)](https://erlang.org/doc/apps/erts/erl_ext_dist.html#map_ext)\n- [Arrays](https://erlang.org/doc/apps/erts/erl_ext_dist.html#list_ext)\n- Tuples (decode-only)\n- [\"Strings\"](https://erlang.org/doc/apps/erts/erl_ext_dist.html#string_ext) (via Buffer, larges buffers are encoded as lists.)\n\n### How to encode\n\n```js\nconst ftee = require('@typescord/ftee');\n\nconst packed = ftee.encode({ a: true, list: ['of', 3, 'things', 'to', 'pack'] });\nconsole.log(packed);\n```\n\n### How to decode\n\n**Note:** `LARGE_BIG_EXT` or `SMALL_BIG_EXT` are decoded as `string`s (instead of `bigint`s).\n\n```js\nconst ftee = require('@typescord/ftee');\n\nconst packed = Buffer.from('\\u0083\\u006d\\u0000\\u0000\\u0000\\u000bHello world', 'binary');\ntry {\n\tconst unpacked = ftee.decode(packed);\n\tconsole.log(unpacked);\n} catch (error) {\n\tconsole.error(error);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypescord%2Fftee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftypescord%2Fftee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypescord%2Fftee/lists"}