Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show-deno: deno module search & browser #1478

Closed
cdaringe opened this issue Jan 8, 2019 · 10 comments
Closed

show-deno: deno module search & browser #1478

cdaringe opened this issue Jan 8, 2019 · 10 comments

Comments

@cdaringe
Copy link
Contributor

cdaringe commented Jan 8, 2019

problem

deno doesn't have a place to show off available modules in databases.json

proof of concept

image

arch

this is a somewhat hipster stack

  • ui: react [typescript]
  • db: postgres
  • api (gql): koa & postgraphile [typescript] (no, it's not in deno, yet ;)
  • common lib: [typescript]
  • package-scraper: [typescript]

there are ultimately two running artifacts at the moment:

  1. the api. the api embeds the the package scraper and static file server for the UI.
    1. jthe scraper pulls the database.json every N minutes, extracts github metadata, and upserts data on the github projects into postgres.
    2. RLS only allows a protected user to write package meta into the the db
    3. the auto-generated api from postgraphile serves GQL requests from searches from the ui
  2. the db

ui functionality is pretty limited ATM. you can sort, filter, paginate in realtime. full text search isn't actually wired in.

so, ya. deno is rad. i want to contribute. i thought this would be a fun little POC. let's talk if it's something folks would be interested in pursuing. if not or you have a different vision--no sweat. i didn't reach out before i started yesterday. i had a bunch of boilerplate i was able to adapt to whip this up quickly!

@cdaringe
Copy link
Contributor Author

a couple of updates this evening.

  • got rid of the react-table's headers
  • added package license info
  • fixed the CSP errors
  • did a little bit of mobile friendly-ification
  • tried to get releases from github's gql api, but it keeps returning empty arrays 🤔 .

next up is to actually wire in the search bar, expose other "columns" that one can filter and sort on, maybe start a readme harvester.

@cdaringe cdaringe changed the title show-deno: deno package search & browser show-deno: deno module search & browser Jan 20, 2019
@cdaringe
Copy link
Contributor Author

cdaringe commented Feb 3, 2019

added a few more fixes/updates:

  • actually wired in the search bar 🌮
  • added ci 🏁
  • fixed issues w/ github meta icons (w/ helpful patch from @j-f1)
  • fixed module name sort icon
  • refactored things to match patched registry json format
  • renamed usages of package => module

@cdaringe
Copy link
Contributor Author

cdaringe commented Feb 3, 2019

latest mov

@cdaringe
Copy link
Contributor Author

cleaned up tags & fixed the issue where the pagination bar at the bottom went missing :)

@ry
Copy link
Member

ry commented Jun 5, 2019

Very nice - closing this issue tho

@ry ry closed this as completed Jun 5, 2019
@ooker777
Copy link

how does this be different to deno.land/x?

@cdaringe
Copy link
Contributor Author

It didn’t exist at the time.

@ooker777
Copy link

I wonder why you didn't wait for them to make it? That would waste your effort less

@cdaringe
Copy link
Contributor Author

It's open source, friend! Who is them? We are them!

@ooker777
Copy link

So is your code integrated to deno.land/x?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants