-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
New API #71
Comments
Thanks for pointing that out. I will look at it. However, JLC PCB still offers fewer details and parameters for components, so I still plan to maintain a custom database. Also, we normalize most of the attributes so they can be easily filtered. If we gave the database we would loose all the component attributes and also, we wouldn't be able to perform search. |
Well unlike the old API, it seems this one does allow to filter directly with characteristics, example with a request like this: {
"currentPage": 1,
"pageSize": 10,
"componentSpecification": "0603",
"keyword": "my search",
"componentType": "",
"componentLibraryType": "base",
"searchSource": "search",
"componentBrand": "",
"componentAttributes": [
{
"Illumination Color": "Green"
},
{
"Mounting Type": "Surface Mount"
}
]
} There is also a request to get what filters are available: Yeah being able to redefine categories and all in our custom database is not bad, but maybe to avoid it to be absolutely massive it could be possible to make it dynamical (only request a category when you actually need them) if we get it to be faster to download data that it is right now (with eventually an option to download the entire library). I feel like it's not very convenient right now to have to wait 20min (with a beefy CPU) to generate 3.3GB of database with 99% components I'm never going to search thru... |
The database size and speed will improve drastically once I find time to implement #37. I already migrated the updater to SQLite, and I have a draft of the SQLite-fronted database. All 1'000'000 components can fit within 105 MB. Currently, we use IndexedDB, which was suitable when there were 20k components. It doesn't scale well to 1'000'000 components. |
Hey,
I just wanted to point out that JLCPCB has released a new way to browse thru components available in your account:
https://smt.jlcpcb.com/smtPrivateLibrary?index=1
The new page seems to be working with a (possibly new?) API at:
https://smt.jlcpcb.com/overseasSmtComponentOrder/componentSearch
Example request:
Example answer (click to develop)
I think it could be useful to fetch the components, and maybe an uncached version of this app could be cool? What do you think about it?
The text was updated successfully, but these errors were encountered: