{"id":51689773,"url":"https://github.com/princecodes247/emojwt","last_synced_at":"2026-07-16T01:08:07.560Z","repository":{"id":366777131,"uuid":"1112418222","full_name":"princecodes247/emojwt","owner":"princecodes247","description":"emojwt is a spec-compliant JWT library that maps Base64Url characters 1-to-1 to a curated set of emojis.","archived":false,"fork":false,"pushed_at":"2026-06-23T08:06:12.000Z","size":196,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-23T10:08:10.641Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://emojwt.vercel.app/","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/princecodes247.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-08T15:43:59.000Z","updated_at":"2026-06-23T08:06:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/princecodes247/emojwt","commit_stats":null,"previous_names":["princecodes247/emojwt"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/princecodes247/emojwt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princecodes247%2Femojwt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princecodes247%2Femojwt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princecodes247%2Femojwt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princecodes247%2Femojwt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/princecodes247","download_url":"https://codeload.github.com/princecodes247/emojwt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princecodes247%2Femojwt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35526155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-15T02:00:06.706Z","response_time":131,"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":[],"created_at":"2026-07-16T01:08:06.677Z","updated_at":"2026-07-16T01:08:07.555Z","avatar_url":"https://github.com/princecodes247.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🦁 emojwt 📦.✍️\n\nA fun, colorful, and fully spec-compliant implementation of JSON Web Tokens (JWT) encoded entirely in Emojis. Why look at boring Base64Url characters when you can verify your authentication tokens with a sequence of expressive emojis?\n\n`emojwt` maps the 64 Base64Url characters plus the `=` padding character directly to 65 carefully curated emojis. It is a 1-to-1 mapping, meaning any standard JWT can be converted to an `emojwt` and vice versa.\n\n---\n\n## 🚀 Repository Structure\n\nThis project is a monorepo managed with npm workspaces:\n\n*   **[`packages/node`](file:///Users/codes/Developer/emojwt/packages/node)**: Node.js compatible library for signing, verifying, and decoding emoji JWTs. Powered by Node's native `crypto` module.\n*   **[`packages/browser`](file:///Users/codes/Developer/emojwt/packages/browser)**: Lightweight browser-compatible library for signing, verifying, and decoding emoji JWTs using the Web Crypto API.\n*   **[`apps/web`](file:///Users/codes/Developer/emojwt/apps/web)**: An interactive web-based playground (React + Vite) similar to [jwt.io](https://jwt.io), allowing you to paste, edit, and decode/sign `emojwt`s live in the browser.\n\n---\n\n## 🎨 How it Works\n\nStandard JWTs consist of three parts separated by dots (`.`):\n```\n[Header].[Payload].[Signature]\n```\nEach part is standard Base64Url encoded. `emojwt` translates each character of these Base64Url strings into a corresponding emoji using a lookup table:\n\n*   `A` ➔ `😀`\n*   `B` ➔ `🥳`\n*   ...and so on.\n\nThe final token looks something like this:\n```\n🦁.📦.✍️\n```\n*(where each section is a sequence of emojis separated by literal dots)*\n\n---\n\n## 📦 Installation\n\nTo install the appropriate package for your environment:\n\n### Node.js\n```bash\nnpm install @emojwt/node\n```\n\n### Browser / Frontend\n```bash\nnpm install @emojwt/browser\n```\n\n---\n\n## 💻 Usage Quickstart\n\n### Node.js\n\n```typescript\nimport { sign, verify, decode } from \"@emojwt/node\";\n\nconst secret = \"my-super-secret-key\";\nconst payload = { sub: \"1234567890\", name: \"Alice\", admin: true };\n\n// 1. Sign a token\nconst token = sign(payload, secret);\nconsole.log(\"Your Emoji JWT:\", token);\n// Output: 🦁.📦.✍️ (a string of emojis separated by dots)\n\n// 2. Verify and decode a token\ntry {\n  const verifiedPayload = verify(token, secret);\n  console.log(\"Verified Payload:\", verifiedPayload);\n} catch (err) {\n  console.error(\"Signature verification failed!\", err);\n}\n\n// 3. Decode without verification\nconst decoded = decode(token);\nconsole.log(\"Decoded Payload:\", decoded);\n```\n\n### Browser (Web Crypto API)\n\nThe `@emojwt/browser` package uses async functions since Web Crypto operations are asynchronous:\n\n```typescript\nimport { sign, verify } from \"@emojwt/browser\";\n\nconst secret = \"my-super-secret-key\";\nconst payload = { sub: \"1234567890\", name: \"Alice\" };\n\n// 1. Sign a token\nconst token = await sign(payload, secret);\n\n// 2. Verify a token\nconst verifiedPayload = await verify(token, secret);\n```\n\n---\n\n## 🛠️ Development\n\nTo get started with local development, clone the repository and install dependencies:\n\n```bash\n# Install dependencies for all workspaces\nnpm install\n\n# Run the lint rules\nnpm run lint\n\n# Format the codebase\nnpm run format\n\n# Run tests\nnpm run test\n```\n\n### Running the Web Playground Locally\n\nTo run the interactive playground:\n\n```bash\nnpm run dev -w apps/web\n```\n\n---\n\n## 📜 License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprincecodes247%2Femojwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprincecodes247%2Femojwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprincecodes247%2Femojwt/lists"}