GithubHelp home page GithubHelp logo

t4t5 / flamingo Goto Github PK

View Code? Open in Web Editor NEW
36.0 4.0 3.0 388 KB

a Nostr browser extension focused on UX 🦩

Home Page: https://getflamingo.org

License: GNU General Public License v3.0

JavaScript 10.19% TypeScript 88.93% HTML 0.88%

flamingo's Introduction

flamingo's People

Contributors

t4t5 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

flamingo's Issues

Feature : I'm porting the flamingo extension to `Firefox`

Hey @t4t5 I really do love Flamingo extention's look !

Unfortunatelly, the extention itself isn't available in Firefox. So I decided to port the built version to Firefox.
It needs a little tweaking in the manifest file but because you used Web Extensions instead of classic Chrome framework I t was really easy to migrate

You'll find the built version that you can put on Firefox in Debug Mode to test. The package isn't signed by Firefox so you won't be able to use it outside of Developpement mode. I planned to upload it myself on Firefox for now.
For now, the addon can't be published, it needs approval but you'll be able to get it here :
https://addons.mozilla.org/en-US/firefox/addon/flamingo-nostr-extension/

addon.zip

In the `signEvent` method, the `pubkey` of the `event` should be optional?

I'm signing this event:

window.nostr.signEvent({
  kind: 1,
  created_at: Math.floor(Date.now() / 1000),
  tags: [],
  content: 'hello world'
}).then(console.log).catch(console.error)

Flamingo doesn't popup, but Alby does.
After I've added pubkey to the event object:

window.nostr.signEvent({
  kind: 1,
  created_at: Math.floor(Date.now() / 1000),
  pubkey: 'xxx',
  tags: [],
  content: 'hello world'
}).then(console.log).catch(console.error)

Flamingo does popup.

However, according to the NIPS-07:

async window.nostr.signEvent(event: Event): Event // takes an event object, adds `id`, `pubkey` and `sig` and returns it

pubkey is added after calling the signEvent mothod. So I think the pubkey should be optional to the event object passing to the signEvent method.

Error message when trying to post on Brandle

First of all, I don't know if this is a problem with the extension or with the Brandle client.

When I try to post on Brandle (instance: https://nostr.rocks) I get the following error message:

Did not publish: TypeError: hexToBytes: expected string, got object

I think it has to do with the communication between the client and the extension.
Also, I don't see any errors related to the post in Chrome DevTools.

primal.net does not work

Hello there!

This is a little off-topic, but I just wanted to say that the icon you made for this is really pretty!

Now, to what I am actually opening this ticket for: I have tried to send posts from Primal several times while having the Flamingo extension installed. However, I have noticed two things:

  1. Nothing shows up in the console that would explain the error - just that a promise failed, together with a tracelog full of squashed names and identifiers; naturally, because the code is likely minified.
  2. I can click however many times I want on the "Post" button, nothing happens.

Now, one potential contributing factor is that I use Opera GX; Chromium based. Adding Chrome extensions is a supported feature and when I inspect the global namespace, I can see the window.nostr object. In fact, on AstralNinja and iris.to, this works totally fine. Just not on Primal.

Do you have any idea how I could debug this, or instructions on how to build a debug version of the extension so I could attempt debugging by installing that instead to maybe get a bit more output?

Thank you and kind regards,
Ingwie :)

flamingo signEvent timeout not working

I'm getting inconsistent results with signing events with the flamingo app.
Is this extension still being maintained? If so, I'm happy to debug/troubleshoot/provide more info.

Essentially my event message looks something like:

const event = {
    created_at: Math.floor(Date.now() / 1000),
    kind: 27235,
    pubkey: pubkey, //tried adding and removing this to no avail.
    tags: [
        ["u", "https://mygamewebsite.com"],
        ["method", "GET"]
    ],
    content: "",
};

The response is a timeout. I won't get an error or anything.
The odd part is I was able to get this working .. but even after removing and adding back I can't seem to get it to work again.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.