Git Product home page Git Product logo

mensong / miniblink Goto Github PK

View Code? Open in Web Editor NEW
12.0 4.0 8.0 92.5 MB

a lighter, faster browser kernel of blink to integrate HTML UI in your app. 一个小巧、轻量的浏览器内核。forked from https://github.com/weolar/miniblink49

License: Apache License 2.0

JavaScript 3.99% CSS 0.12% Python 0.95% HTML 0.05% C++ 77.00% C 11.68% Batchfile 0.02% Objective-C 0.01% CMake 0.03% Objective-C++ 0.05% Makefile 0.55% Assembly 4.15% Shell 0.07% Perl 1.20% DIGITAL Command Language 0.08% XS 0.01% M4 0.04% eC 0.01% Scheme 0.01% Prolog 0.01%

miniblink's Introduction

简介 Abstract

miniblink is a open source, one file, small browser widget base on chromium.

By using C interface, you can create a browser just some line code.

more information at https://weolar.github.io/miniblink/ or http://miniblink.net


miniblink是一个开源的、单文件、且目前已知的最小的基于chromium的,浏览器控件。

通过其导出的纯C接口,几行代码即可创建一个浏览器控件。

您可以通过官网https://weolar.github.io/miniblink/http://miniblink.net 来获取更多的关于miniblink的信息。


特性 Features

  • 极致小巧的体积 (small size)
  • C++,C#,Delphi等语言调用 (support C++,C#,Delphi language to call)
  • 内嵌Nodejs,支持electron (with Nodejs, can run electron)
  • 随心所欲的定制功能、模拟环境 (simulate other browser environment)
  • 支持Windows xp、npapi (support windows xp and npapi)
  • 完善的HTML5支持,对各种前端库友好 (support HTML5, and friendly to front framework)
  • 关闭跨域开关后,可以使用各种跨域功能 (support cross domain)
  • 网络资源拦截,替换任意网站任意js为本地文件 (network intercept, you can replace any resource to local file)
  • headless模式,极大节省资源,适用于爬虫 (headless mode, be suitable for Web Crawler)

文档 Document

https://github.com/gergul/MiniBlink-blog


使用 Usage

请前往https://github.com/weolar/miniblink49/releases 下载最新编译后的SDK,里面的demo_src是个完整的用例。

或者前往 https://github.com/weolar/mb-demo 下载

最简单的创建一个窗口:

Usage

// 无边框窗体 borderless window
wkeWebView window = wkeCreateWebWindow(WKE_WINDOW_TYPE_TRANSPARENT, NULL, 0, 0, 640, 480);  
wkeLoadURLW(window, L"miniblink.net");

demo-1

编译 Build

直接打开“build\vs2015.bat”编译即可。注:若要编译64位MiniBlink,不能直接双击“miniblink.sln”打开工程,否则会出现“在第 2 遍中编译器的堆空间不足”这样的错误,参考:https://blog.csdn.net/andr0id/article/details/83899973


mini-electron

mini-electron项目是一个基于miniblink的独立项目,旨在创建一个更小的electron运行环境。目前已经实现了这一目标。

通过替换mini-electron,打包完后的文件仅仅6m左右。


联系方式

大家有问题可以选择:


致谢 Thanks

特别感谢网友zero,他是miniblink的代码的重要贡献者。

感谢网友core,感谢网友“大清知府”。

感谢网友boxue( https://www.zhihu.com/people/coltor/ ),他致力于对miniblink架构的研究及推广。

miniblink's People

Contributors

mensong avatar

Stargazers

GreenYoshi (Wang Han) avatar Liu Wenyuan avatar 人間工作 avatar Lv Yitian avatar  avatar  avatar  avatar  avatar  avatar  avatar FF avatar

Watchers

James Cloos avatar  avatar Lv Yitian avatar  avatar

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.