Create a polymer SDK for Drupal

Created on 30 September 2016, almost 9 years ago
Updated 15 July 2025, 19 days ago

Why?

To make it easy for front-end developers to create a fully decoupled app without having to write their own integration.

Why polymer?

It works (with polyfill) pretty good across all browsers and most of it can be done by writing only HTML and css.

Example using api-d7 as an example, once GraphQL is ready it can use that as a backend

<link rel="import" href="../bower_components/polymer/polymer.html">
<link rel="import" href="../drupal-app.html">
<link rel="import" href="../drupal-entity.html">

<dom-module id="my-test">
  <template>
    <style include="shared-styles">
      :host {
        display: block;
      }
    </style>

    <div class="card">
      <drupal-app url="https://www.drupal.org/api-d7/"></drupal-app>
      <drupal-entity uuid="2547919" entity-type="node" entity="{{entity}}"></drupal-entity>
      <h2>{{entity.title}}</h2>
      <div>{{entity.body}}></div>
    </div>
  </template>

  <script>
    Polymer({
      is: 'my-test'
    });
  </script>
</dom-module>

🌱 Plan
Status

Postponed

Version

11.0 πŸ”₯

Component

theme system

Created by

πŸ‡§πŸ‡ͺBelgium attiks

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡³πŸ‡ΏNew Zealand quietone

    The core ideas project is deprecated.

    The meta issue in #11 is in the core issue queue so I am moving this issue to core.

  • πŸ‡ΊπŸ‡ΈUnited States cosmicdreams Minneapolis/St. Paul

    In addition the natural successor for this idea would be to retarget for something like Lit. Polymer is long since dead.

  • πŸ‡¬πŸ‡§United Kingdom longwave UK

    Given the speed of the JavaScript ecosystem I think any attempt to support something like this is likely better off in contrib, unless there is a clear winner that we could support in core - right now I assume that doesn't exist.

    Anyone is free to create such a contrib module, and if it gains traction it may be possible to move it to core eventually. Until then I'm closing this issue as won't fix.

Production build 0.71.5 2024