npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

bekender-remote-config

v0.0.9

Published

### detail documentation

Downloads

238

Readme

Bekender Remote Config from BEKENDER.RU 🍺

detail documentation

DOC.BEKENDER.RU 📊

Remote config Pricing 📊

installation

yarn add bekender-remote-config

or

npm i bekender-remote-config

usage

for javascript typescript app projects:


import {bekenderRemoteConfig} from "bekender-remote-config"

window.addEventListener('load', async ()=>{
    //fetch variables once from remote side when app is opened
    const isFetched = await bekenderRemoteConfig.initFetch({
        //platform: '',
        //remote_config_project_id: '',
        //api_key: 'd100f647a8ac41c98...',
        //user_uniq_id: '1234',
        //lang_key: 'ru',
        //version: 1
    })
    console.log({isFetched})
    
    //use received variables in sync mode (example variable name: "landing_url")
    //you can configure your own variables in https://cloud.bekender.ru
    const landingUrl = bekenderRemoteConfig.getString('landing_url');
    console.log({landingUrl})
})

for html js projects:


<!--bekender remote config connect to web site - add it before closing </body> tag on your site -->
<script src="https://s3.timeweb.cloud/c14a1252-bekender-files/cdn_libraries/bekender-remote-config.cjs.js"></script>

<!--any other your script-->
<script>
    window.addEventListener('load', async ()=>{
        //fetch variables once from remote side when app is opened
        const isFetched = await bekenderRemoteConfig.initFetch({
            //platform: '',
            //remote_config_project_id: '',
            //api_key: 'd100f647a8ac41c98...',
            //user_uniq_id: '1234',
            //lang_key: 'ru',
            //version: 1
        })
        console.log({isFetched})

        //use received variables in sync mode (example variable name: "landing_url")
        //you can configure your own variables in https://cloud.bekender.ru
        const landingUrl = bekenderRemoteConfig.getString('landing_url');
        console.log({landingUrl})
    })
</script>

for other platforms projects usage:


curl --location 'https://api.bekender.ru/remote_config_records/fetch_user_remote_config_records' \
--header 'Content-Type: application/json' \
--header 'Authorization: ••••••' \
--data '{
  "api_key": "c367298e218d0bf58**********",
  "remote_config_project_id": "6705ba9262688a65********",
  "lang_key": "ru",
  "platform": "WEB",
  "version": 1
}'

FAQ

Where is the API key ("api_key"):

  • get your own api key from your BEKENDER account settings here: https://cloud.bekender.ru/settings

Where is the "remote_config_project_id":

  • get your "remote config scheme project id" (ex: id конфигурации: 6705ba9262688a6******)

what these parameters mean: "platform", "user_uniq_id", "lang_key", "version":

  • these parameters are optional parameters that can be used for condition variables configuration of a user. The fetched variables list is going to be different for different users base on these parameters.

possible platform values:

  • WEB | ANDROID | IOS | DESKTOP

possible lang key values:

  • use any lang key that used for your project

Contacts

No-Code & Business & Analytics Cloud Platform BEKENDER.RU

Platform Console CLOUD.BEKENDER.RU

Platform documentation DOC.BEKENDER.RU