• Stars
    star
    227
  • Rank 169,546 (Top 4 %)
  • Language
    TypeScript
  • Created over 3 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

TypeORM helper library enhancing safety in the compilation level

Safe-TypeORM

logo

GitHub license npm version Downloads Build Status Guide Documents

Make anyorm to be real typeorm.

safe-typeorm is a helper library of typeorm, enhancing type safety like below:

  • When writing SQL query,
    • Errors would be detected in the compilation level
    • Auto Completion would be provided
    • Type Hint would be supported
  • You can implement App-join very conveniently
  • When SELECTing for JSON conversion
    • App-Join with the related entities would be automatically done
    • Exact JSON type would be automatically deduced
    • The performance would be automatically tuned

JoinQueryBuilder

Setup

npm install --save [email protected]
npm install --save safe-typeorm

Just install through npm install command.

Note that, safe-typeorm supports only typeorm v0.2 yet.

Features

About supported features, see Guide Documents

Appendix

Typia

GitHub license npm version Downloads Build Status Guide Documents

// RUNTIME VALIDATORS
export function is<T>(input: unknown | T): input is T; // returns boolean
export function assert<T>(input: unknown | T): T; // throws TypeGuardError
export function validate<T>(input: unknown | T): IValidation<T>; // detailed

// STRICT VALIDATORS
export function equals<T>(input: unknown | T): input is T;
export function assertEquals<T>(input: unknown | T): T;
export function validateEquals<T>(input: unknown | T): IValidation<T>;

// JSON
export function application<T>(): IJsonApplication; // JSON schema
export function assertParse<T>(input: string): T; // type safe parser
export function assertStringify<T>(input: T): string; // safe and faster
    // +) isParse, validateParse 
    // +) stringify, isStringify, validateStringify

Typia is a transformer library of TypeScript, supporting below features:

  • Super-fast Runtime Validators
  • Safe JSON parse and fast stringify functions
  • JSON schema generator

All functions in typia require only one line. You don't need any extra dedication like JSON schema definitions or decorator function calls. Just call typia function with only one line like typia.assert<T>(input).

Also, as typia performs AOT (Ahead of Time) compilation skill, its performance is much faster than other competitive libaries. For an example, when comparing validate function is() with other competitive libraries, typia is maximum 15,000x times faster than class-validator.

Nestia

GitHub license npm version Downloads Build Status Guide Documents

Nestia is a set of helper libraries for NestJS, supporting below features:

  • @nestia/core: 15,000x times faster validation decorators
  • @nestia/sdk: evolved SDK and Swagger generators
    • SDK (Software Development Kit)
      • interaction library for client developers
      • almost same with tRPC
  • nestia: just CLI (command line interface) tool

nestia-sdk-demo

Reactia

Not published yet, but soon

GitHub license Build Status Guide Documents

Reactia is an automatic React components generator, just by analyzing TypeScript type.

  • @reactia/core: Core Library analyzing TypeScript type
  • @reactia/mui: Material UI Theme for core and nest
  • @reactia/nest: Automatic Frontend Application Builder for NestJS

Sample

When you want to automate an individual component, just use @reactia/core.

import ReactDOM from "react-dom";

import typia from "typia";
import { ReactiaComponent } from "@reactia/core";
import { MuiInputTheme } from "@reactia/mui";

const RequestInput = ReactiaComponent<IRequestDto>(MuiInputTheme());
const input: IRequestDto = { ... };

ReactDOM.render(
    <RequestInput input={input} />,
    document.body
);

Otherwise, you can fully automate frontend application development through @reactia/nest.

import React from "react";
import ReactDOM from "react-dom";

import { ISwagger } "@nestia/swagger";
import { MuiApplicationTheme } from "@reactia/mui";
import { ReactiaApplication } from "@reactia/nest";

// swagger.json must be generated by @nestia/sdk
const swagger: ISwagger = await import("./swagger.json");
const App: React.FC = ReactiaApplication(MuiApplicationTheme())(swagger);

ReactDOM.render(
    <App />,
    document.body
);

More Repositories

1

typia

Super-fast/easy runtime validations and serializations through transformation
TypeScript
4,050
star
2

nestia

Make NestJS much faster and easier
TypeScript
1,612
star
3

backend

A template repository for TypeScript backend server
TypeScript
609
star
4

tstl

TypeScript-STL (Standard Template Library, migrated from C++)
TypeScript
585
star
5

payments

Korean Payment System with Mockup servers of PGs
TypeScript
317
star
6

prisma-markdown

Markdown generator of Prisma, including ERD and descriptions
TypeScript
284
star
7

tgrid

TypeScript Grid Computing Framework supporting RFC (Remote Function Call)
TypeScript
119
star
8

fake-iamport-server

Fake Iamport Server with Real SDK
95
star
9

framework

Deprecated, use TGrid instead
C++
71
star
10

resume

CSS
46
star
11

astl

Standard Template Library for AssemblyScript
TypeScript
36
star
12

nestia-helper

NestJS helper with Type level
TypeScript
34
star
13

mutex

Mutex Server using WebSocket
TypeScript
29
star
14

bbs-backend

Simple Bullet-in Board System Backend
TypeScript
19
star
15

sxml

Simple XML Library for TypeScript (JavaScript)
TypeScript
16
star
16

fast-object

Fast object creator, via JSON.parse(), but type safe
TypeScript
16
star
17

nestia-start

Nestia template project installed by "npx nestia start"
TypeScript
15
star
18

websocket-polyfill

WebSocket class from Browser to NodeJS
TypeScript
11
star
19

ecol

Event Collections
TypeScript
9
star
20

samchon

8
star
21

cagen

Number of Case Generator
TypeScript
5
star
22

schedules

Open source development schedule of Samchon
5
star
23

openapi

Type safe OpenAPI definitions
TypeScript
5
star
24

big-associative

Big associative containers who can store over 14M elements.
TypeScript
5
star
25

encrypted-fetcher

Rest API Fetcher with AES Encryption
TypeScript
4
star
26

typedoc-plugin-exclude-references

temporary plug-in
TypeScript
4
star
27

environments

My development environments
4
star
28

import2

lazy import function who can prevent transpiled to require
JavaScript
4
star
29

safeorm

Ultimate Safe ORM for the TypeScript
TypeScript
4
star
30

tgrid.projects.chat

Demo Project - Chat Application
TypeScript
3
star
31

nestia-fetcher

Fetcher library for the Nestia
TypeScript
3
star
32

oss-2019

공개소프트웨어 개발자대회 2019
CSS
2
star
33

URLVariables

URLVariables class for TypeScript
TypeScript
2
star
34

nestjs-custom-decorator-exception-filter

2
star
35

nestia-auto-crud-example

For https://github.com/samchon/nestia/issues/670
TypeScript
1
star
36

nestjs-study-router-module

To support RouterModule in Nestia
TypeScript
1
star
37

prisma-bug-report-postgres-timestampz

A prisma bug reproduction repo for reporting about `timestampz` type in Postgres
1
star
38

tgrid.com

Guide Documents for TGrid
HTML
1
star
39

tgrid.projects.market

Demo Project - Grid Market
TypeScript
1
star
40

gitbook-plugin-hide-navigation-buttons

Gitbook Plugin: Hide Navigation Buttons
CSS
1
star
41

tgrid.examples

Example Source Codes for TGrid
TypeScript
1
star
42

timetable

Hansung Timetable
ActionScript
1
star
43

samchon.github.io

My homepage
HTML
1
star
44

gitbook-plugin-scroll-to-top

JavaScript
1
star
45

ts-patch-typescript-v5.3-test

JavaScript
1
star
46

nestia-sdk-template

Nestia SDK Template Repository for `@nestia/migrate`
TypeScript
1
star