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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@builder.io/memsource-connector

v1.0.3

Published

See [here](src/plugin.tsx) for the React component that powers this plugin

Readme

Builder.io Memsource connector plugin

See here for the React component that powers this plugin

Using this plugin in production code

The idea behind the plugin is to generalize the use of a translation workflow directly connected to memsource.
The requirements to use the plugin are quite simple:

  • Your page model should have a field named locale and it should be an enum.
  • Your page model should have a field named memsourceProxyUrl (which should be hidden) and it should be a text, or rather a stringified URL to your proxy for memsource.

To add it to a page model simply create a new model field, with whichever name, and the type should be Memsource Connector. This will make the translations plugin available in each page created using that model. There are a couple of optional fields:

  • If you have a restriction for not supporting localisation from certain locales, create another enum in your model (also hidden) named allowedLocales. The plugin will read this value and stop anyone from translating from locales not within the allowedLocales.

Simply hit the Localize button, and it should bring up a Dialog divided by two sections:

  • Source locale should only include a display of the page with the current locale
  • Target locales should be a list of selectable locales, which is the product of eliminating the current locale from the enum aforementioned in the locale field.

When requesting localisation jobs

Given memsource disabled CORS, the request will be proxied to a service the user of the plugin will own. The plugin will fire a POST request to the memsourceProxyUrl host, and in the POST body, the following structure is used:

{
    "proxy": {
        "projectName": "string",
        "sourceLocale": "string",
        "targetLocales": ["string-1", ..., "string-n"],
        "payload": {
            "__context": {
                // Key value pair equal to the page options, i.e. title, description and your custom fields
                // Also, a couple of values which add context to the request such as
                "locale": "requested source locale",
                "modelName": "model name",
                "pageId": "page id",
                "pageName": "page name",
                "title": "page title",
                "requestor": "email of the logged user who submitted the localisation job"
            },
            "content": [
                {
                    "__id": "string-builder-block-id",
                    "__optionKey": "string-builder-block-translatable-key",
                    "toTranslate": "string to be translated"
                },
                ...
            ]
        }
    }
}

Notice there are many fields with the double underscore __ prefix, that is to symbolically represent a hidden field for memsource

Creating a new plugin from this example

Install

cd plugins/localization-connector
npm i

Develop

npm run start:dev

NOTE: Loading http:// content on an https:// website will give you a warning. Be sure to click the shield in the top right of your browser and choose "load unsafe scripts" to allow the http content on Builder's https site when devloping locally

Frameworks

Builder.io uses React and Material UI for the UI, and Emotion for styling.

Using these frameworks in Builder plugins ensures best possible experience and performance.