![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@swyger/client
Advanced tools
Swyger Client JS library is used for Swyger Server as consumer Rest API(authentication,CRUD, Storage...)! Visit the master branch: https://github.com/coorise/swyger-js-client.git
Swyger Client is used for Swyger Server as consumer Rest API. Visit the master branch: https://github.com/coorise/swyger-js-client.git
You can download the swyger database client js library on: https://www.unpkg.com/@swyger/client
then save it somewhere in your directory like "/dist/swyger-client.min.js"
<script type="module">
import SwygerClient from './dist/swyger-client.min.js'
//import SwygerStorageClient from '@swyger/client-storage' //with npm for node module
let config={
//Configure the offline DB
OFFLINE_DB_NAME:{
AUTH:'swyger_auth',
DATABASE:'swyger_database',
STORAGE:'swyger_storage'
},
//Configure the server
HOST_SERVER:{
AUTH:'http://localhost:4100',
DATABASE:'http://localhost:4400',
STORAGE:'http://localhost:4500',
MAIL:'http://localhost:4200',
},
API_VERSION:{
AUTH:'/api/v1',
DATABASE:'/api/v1',
STORAGE:'/api/v1',
MAIL:'/api/v1',
},
AUTO_REFRESH_TOKEN_TIMEOUT:1500000, //in millisecond= 25 minutes
// A Unique Api key for all your servers
API_KEY:your_api_key
}
let client =SwygerClient.init(config)
//now you can do authentication
let auth= client?.auth?.auth()
auth.register({email,password},callback)
//...
//CRUD with database realtime
let ref=client?.database?.database().ref('/your/path/reference') //like firebase
//ref.create({object},callback)
//OR listener
//ref.onValue(callback)
//...
//CRUD with File in realtime
let storageConfig={ //Discord/AWS/Google....
token:'discord-bot-token',
channelId:'discord-channel-id'
}
let location='local' //discord/aws/google
let storageRef=client?.storage?.storage(location,storageConfig).ref('/your/parent/ref')
//storageRef.upload({object},callback)
//...
</script>
Note 0: Clone the repository:
git clone https://github.com/coorise/swyger-js-client.git
Note 1: For more details about how to use our API Consumer, visit the DOC
: https://github.com/coorise/swyger-js-client/tree/master/doc/swyger/api.
Note 2: If you want to modify the entire api (eg:children route,...), you have to work with the main project (installing Node JS with the project dependencies npm i
) then locate the ./src/api/api-route.js
,
once you are done just build it with npm run build
, to get your new library in dist folder.
If you have any suggestion, feature to add ...etc
MIT: You can use it for educational/personal/business purpose!
FAQs
Swyger Client JS library is used for Swyger Server as consumer Rest API(authentication,CRUD, Storage...)! Visit the master branch: https://github.com/coorise/swyger-js-client.git
The npm package @swyger/client receives a total of 3 weekly downloads. As such, @swyger/client popularity was classified as not popular.
We found that @swyger/client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.