1.0.0 • Published 8 months ago

myfacade v1.0.0

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
8 months ago

node

npm i blakprint@latest

import { define } from "blakprint";

export const myProgram = define<any, Array, Error>( => {
  const dataCall = await useDatasource;
  store.savedataCall;
  return dataCall;
});

const programResults = myProgram.value;
import { ImageType, NavBarType, FooterType } from "blakprint";

export type MyImageProps = ImageType<{
  isFullscreen?: boolean;
}>;

import { definePage, defineComponent } from "blakprint";

const HomePage = definePage({
  metaData: {
    title: "Home",
  },
  data: {
    hero: async  => await {},
  },
});

const Header = defineComponent({
  render: (props: any, inner: any) => {
    return `<header>
                 ${inner}
               </header>`;
  },
});

An extensible meta-module for authoring arbituary closures through Definitions.

Definitions is an attempt to describe an extensible, light-weight encapsulation for closures, or syntactic quanta, that provide a transparent & functional abstraction for every kind of datam. Though the paradigm doesn't have a language syntax yet, this library was made from the growing need to standarize mixed-paradigmed computational solutions that was able to be:

  • Read //given memory space
  • Evaluated //given execution space
  • Mutated //change either spaces

Effectors are complementary and neccesary to Definitions in order to describe Evaluations & Mutations on datams. Basically, high-level descriptions of synchrnous & asynchronous actions.

type TypeParams = null
type MetaParams = null
type ErrorParams = null
type ReturnParams = null 

enum DEFAULT_TYPE_PARAMS_TYPES
enum DEFAULT_RETURN_PARAMS_TYPES
enum DEFAULT_META_PARAMS_TYPES
enum DEFAULT_ERROR_PARAMS_TYPES

type ValidClosure = string | number | Function | Future<ValidClosure> | Object | null | Error | Array 

type Effector<TypeParams=DEFAULT_TYPE_PARAMS_TYPES, 
              MetaParams=DEFAULT_META_PARAMS_TYPES,        
              ReturnParams=DEFAULT_RETURN_PARAMS_TYPES,
              ErrorParams=DEFAULT_ERROR_PARAMS_TYPES> {

    (...args: TypeParams[]) => ReturnParams | ErrorParams & MetaParams
}


type Definition<TypeParams=DEFAULT_TYPE_PARAMS_TYPES,
                ReturnParams=DEFAULT_RETURN_PARAMS_TYPES, 
                MetaParams=DEFAULT_META_PARAMS_TYPES> {
   value: Effector<TypeParams, ReturnParams, ErrorParams, MetaParams>,
   log: Effector<MetaParams>,
   closure: Effector<ValidClosure>,
   
   meta: Effector<MetaParams>,
   generate: Effector<TypeParams>,
   redefine: Effector<Definition<TypeParams, ReturnParams, MetaParams>>
}

Engineers who love to generalize.

Yes && No. The library is just a collection of small typescript modules, types, and plugins commonly used for making M.V.C and generalized for. It is very extensible, and is extremely high-level. There is no fancy-shmancy engine or compiler (technically, the default effector functor uses Effect but its not required, the simplified option uses a generically typed identity function to abstract definition methods.

Not yet! - but we'd love that. The idea is simple, without bloating the end-developer memory space, load and define as many computations and data-sets as humanly possible while another contributing team generalize the build process for other lower interfaces (WebAssembly, Rust, DeviceScript, etc...).

Email us | dev@desirable.solutions

coming soon...

Email us | dev@desirable.solutions

Fund us | Buy us a coffee!

🎉v13.2.2

lib

  • cursed Definition library had long-standing NPM alias issue with vite, making it unusable. This has been fixed.

v13.2.1

lib

  • stable Definition library had long-standing NPM alias issue with vite, making it unusable. This has been fixed.
  • stable Adding dependecy injections for definitions & extensions is corrected & stable.
  • stable Type & Type helpers for generating definitions.

v13.2.0

lib

  • stable Definition library had long-standing NPM alias issue with vite, making it unusable. This has been fixed.
  • stable Adding dependecy injections for definitions & extensions is corrected & stable.
  • stable Type & Type helpers for generating definitions.

v13.0.0

lib

  • removed Definition utility package in favor of dependecy injection from the core library.
  • corrected Identity closures for definitions. Simplified interface abstraction to dependecy injection.

v12.5.0

lib

  • corrected type query definition errors with Definition
  • stable: base definition functor.
  • stable: base typings system.
  • stable: simple class definitions, mostly identity functions.
  • stable: base effector functor.
  • stable: base effector type.
  • to-do: create hook functor for plugins.
  • to-do: use hook functor to create Effect Effector hook.
  • to-do integrate generative test suite.

v12.3.0

lib

  • corrected type query definition errors with Definition
  • stable: base definition functors and some plugins.
  • stable: base typings system and unwrapping API.

v12.2.0

lib

  • corrected type query definition errors with Definition
  • stable: base definition functors and some plugins.
  • stable: base typings system and unwrapping API.

v12.1.0

lib

  • stable: base definition functors and some plugins.
  • stable: base typings system and unwrapping API.

v11.0.1

lib

  • testing define function with parameterized type defintions and single responsibility.
  • testing GPT-4 Integration for Intelligent Terminal Assitance failed

©️ Desirable Solutions 2023. All Rights Reserved.

This project is under the GPL version 3.0 (the "License"). ☂️