Deno: show-deno: deno module search & browser

Created on 8 Jan 2019  路  5Comments  路  Source: denoland/deno

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!

Most helpful comment

latest mov

All 5 comments

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.

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

latest mov

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

Very nice - closing this issue tho

Was this page helpful?
0 / 5 - 0 ratings

Related issues

davidbarratt picture davidbarratt  路  3Comments

ry picture ry  路  3Comments

watilde picture watilde  路  3Comments

xueqingxiao picture xueqingxiao  路  3Comments

somombo picture somombo  路  3Comments