Description
Presentation and transformation layer for data output in RESTful APIs.
Vicis alternatives and similar libraries
Based on the "API" category.
Alternatively, view Vicis alternatives based on common mentions on social networks and blogs.
-
React Query
π€ Powerful asynchronous state management, server-state utilities and data fetching for TS/JS, React, Solid, Svelte and Vue. [Moved to: https://github.com/TanStack/query] -
urql
The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow. -
Apollo and GraphQL for Vue.js
π Apollo/GraphQL integration for VueJS -
Swagger Client
Javascript library to connect to swagger-enabled APIs via browser or nodejs -
Optic
Version Control for APIs. Optic makes it easy to document your APIs, prevent breaking changes, and follow an API style-guide -
Vue Query
Hooks for fetching, caching and updating asynchronous data in Vue -
SapphireDb
SapphireDb Server, a self-hosted, easy to use realtime database for Asp.Net Core and EF Core -
oauth-signature-js
JavaScript OAuth 1.0a signature generator (RFC 5849) for node and the browser -
Bearer.sh
Universal API client that supports OAuth / API Key / Basic / etc. -
Angular Chat App Example
Build a simple group chat application with Angular 7 from scratch -
Bearer API Client for JavaScript
Bearer provides all of the tools to build, run and manage API integrations. -
GazeRecorder
GazeRecorder | Behavior Analytics Made Easy | Website Eye-Tracking Heatmaps
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Vicis or a related project?
README
[Vicis](.github/assets/banner.webp?raw=true "Vicis")
Β« Vicis Β»
Presentation and transformation layer for data output in RESTful APIs.
β’β’ Vicis Documentation β’β’ JavaScript Repository β’β’ Deno Repository β’β’
This is Node.js analogue to these libraries: π Fractal for PHP, π Roar for Ruby, π’ Marshmallow for Python.
π¬ Tl;dr
Code:
import { Vicis } from "vicis";
const configuration = {
cast: { _id: Vicis.INTEGER, registered: Vicis.FLAG },
defaults: { confirmed: false },
exclude: [/(?:password)/gi, /^(?:_)(?:_)?/],
omit: ["createdAt", "updatedAt", "deletedAt"],
rename: { _id: "id", email: "login" },
replace: { url: null }
};
const model = {
_id: "54759309034942804",
email: "[email protected]",
userPassword: "36e80092ff7f1ed72903cda9409b9d2c",
registered: "1",
url: "example.com",
createdAt: "2020-01-01 01:23:45",
__v: 1
};
const serializer = new Vicis(configuration);
serializer.data(model);
console.log(serializer.getData());
Output:
{
"confirmed": false,
"id": 54759309034942804,
"login": "[email protected]",
"registered": true,
"url": null
}
πΊοΈ My other projects
<!-- Badges -->