{"id":32118997,"url":"https://github.com/r37r0m0d3l/deno-vicis","last_synced_at":"2026-05-17T03:44:27.453Z","repository":{"id":62421497,"uuid":"276224903","full_name":"r37r0m0d3l/deno-vicis","owner":"r37r0m0d3l","description":"Presentation and transformation layer for data output in RESTful APIs.","archived":false,"fork":false,"pushed_at":"2020-08-13T12:38:35.000Z","size":68,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-20T17:52:08.901Z","etag":null,"topics":["api","json","json-api","responder","responder-chain","response","rest","serialization","transformer"],"latest_commit_sha":null,"homepage":"https://vicis.js.org","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/r37r0m0d3l.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"ko_fi":"r37r0m0d3l","open_collective":"r37r0m0d3l"}},"created_at":"2020-06-30T22:49:42.000Z","updated_at":"2025-02-22T07:16:54.000Z","dependencies_parsed_at":"2022-11-01T17:32:33.240Z","dependency_job_id":null,"html_url":"https://github.com/r37r0m0d3l/deno-vicis","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/r37r0m0d3l/deno-vicis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r37r0m0d3l%2Fdeno-vicis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r37r0m0d3l%2Fdeno-vicis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r37r0m0d3l%2Fdeno-vicis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r37r0m0d3l%2Fdeno-vicis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r37r0m0d3l","download_url":"https://codeload.github.com/r37r0m0d3l/deno-vicis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r37r0m0d3l%2Fdeno-vicis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280135884,"owners_count":26278444,"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-10-20T02:00:06.978Z","response_time":62,"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":["api","json","json-api","responder","responder-chain","response","rest","serialization","transformer"],"created_at":"2025-10-20T17:52:52.896Z","updated_at":"2025-10-20T17:52:53.893Z","avatar_url":"https://github.com/r37r0m0d3l.png","language":"JavaScript","funding_links":["https://ko-fi.com/r37r0m0d3l","https://opencollective.com/r37r0m0d3l","https://buymeacoffee.com/r37r0m0d3l"],"categories":[],"sub_categories":[],"readme":"![Vicis](.github/assets/banner.webp?raw=true \"Vicis\")\n\n# « Vicis 🧮 🦕 »\n\nPresentation and transformation layer for data output in RESTful APIs.\n\n•• [Vicis Documentation](https://vicis.js.org) •• [JavaScript Repository](https://github.com/r37r0m0d3l/vicis) •• [Deno Repository](https://github.com/r37r0m0d3l/deno-vicis) ••\n\nThis is Deno analogue to these libraries: 🐘 [Fractal](https://fractal.thephpleague.com/) for PHP, 💎 [Roar](https://github.com/trailblazer/roar) for Ruby, 🍢 [Marshmallow](https://marshmallow.readthedocs.io/en/stable/) for Python.\n\n[![Buy Me A Coffee][buymeacoffee-img]][buymeacoffee-url]\n![Tests](https://github.com/r37r0m0d3l/deno-vicis/workflows/Tests/badge.svg)\n\n---\n\n## 💬 Tl;dr\n\nCode:\n\n```js\nimport { Vicis } from \"vicis\";\nconst configuration = {\n  cast: { _id: Vicis.INTEGER, registered: Vicis.FLAG },\n  defaults: { confirmed: false },\n  exclude: [/(?:password)/gi, /^(?:_)(?:_)?/],\n  omit: [\"createdAt\", \"updatedAt\", \"deletedAt\"],\n  rename: { _id: \"id\", email: \"login\" },\n  replace: { url: null }\n};\nconst model = {\n  _id: \"54759309034942804\",\n  email: \"johnwick@gmail.com\",\n  userPassword: \"36e80092ff7f1ed72903cda9409b9d2c\",\n  registered: \"1\",\n  url: \"example.com\",\n  createdAt: \"2020-01-01 01:23:45\",\n  __v: 1\n};\nconst serializer = new Vicis(configuration);\nserializer.data(model);\nconsole.log(serializer.getData());\n```\n\nOutput:\n\n```json\n{\n  \"confirmed\": false,\n  \"id\": 54759309034942804,\n  \"login\": \"johnwick@gmail.com\",\n  \"registered\": true,\n  \"url\": null\n}\n```\n\n## ⚙️Install\n\n### Import from URL\n\n```typescript\n// From URL\nimport { Vicis } from \"https://deno.land/x/vicis/mod.ts\";\n// Bundled from URL\nimport { Vicis } from \"https://deno.land/x/vicis/vicis.bundle.js\";\n```\n\n### Import from \"importmap.json\"\n\n```json\n{\n  \"imports\": {\n    \"vicis\": \"https://deno.land/x/vicis/mod.ts\"\n  }\n}\n```\n\n```typescript\nimport { Vicis } from \"vicis\";\n```\n\n```bash\ndeno run --importmap=importmap.json --unstable your-script.js\n```\n\n## 🗺️ My other projects\n\n[Full list here](https://r37r0m0d3l.icu/open_source_map)\n\n\u003cimg src=\"https://raw.githubusercontent.com/r37r0m0d3l/r37r0m0d3l/master/osmap.svg\" width=\"960\" height=\"520\" style=\"display:block;height:auto;margin-left:auto;margin-right:auto;min-height:520px;min-width:960px;width:100%;\"\u003e\n\n\u003c!-- Badges --\u003e\n\n[buymeacoffee-url]: https://buymeacoffee.com/r37r0m0d3l\n[buymeacoffee-img]: https://img.shields.io/badge/support-buymeacoffee-1E90FF.svg?\u0026logo=buy-me-a-coffee\u0026label=support\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr37r0m0d3l%2Fdeno-vicis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr37r0m0d3l%2Fdeno-vicis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr37r0m0d3l%2Fdeno-vicis/lists"}